[U-Boot] [PATCH] board: cogent: include header files in a more natural way

Signed-off-by: Masahiro Yamada yamada.m@jp.panasonic.com --- Note: I built cogent_mpc8260 and cogent_mpc8xx boards and confirmed that the same binaries were still generated with the changes in this commit.
board/cogent/config.mk | 12 ------------ board/cogent/dipsw.c | 2 +- board/cogent/flash.c | 2 +- board/cogent/lcd.c | 2 +- board/cogent/mb.c | 10 +++++----- board/cogent/serial.c | 2 +- 6 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 board/cogent/config.mk
diff --git a/board/cogent/config.mk b/board/cogent/config.mk deleted file mode 100644 index 1452d46..0000000 --- a/board/cogent/config.mk +++ /dev/null @@ -1,12 +0,0 @@ -# -# (C) Copyright 2000 -# Wolfgang Denk, DENX Software Engineering, wd@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -# -# Cogent Modular Architecture -# - -PLATFORM_CPPFLAGS += -I$(TOPDIR) diff --git a/board/cogent/dipsw.c b/board/cogent/dipsw.c index d2027c9..ecfbc25 100644 --- a/board/cogent/dipsw.c +++ b/board/cogent/dipsw.c @@ -1,5 +1,5 @@ #include <common.h> -#include <board/cogent/dipsw.h> +#include "dipsw.h"
unsigned char dipsw_raw(void) diff --git a/board/cogent/flash.c b/board/cogent/flash.c index d4ae4d0..1da8f10 100644 --- a/board/cogent/flash.c +++ b/board/cogent/flash.c @@ -6,7 +6,7 @@ */
#include <common.h> -#include <board/cogent/flash.h> +#include "flash.h" #include <linux/compiler.h>
flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */ diff --git a/board/cogent/lcd.c b/board/cogent/lcd.c index 76f5ad1..8e90f98 100644 --- a/board/cogent/lcd.c +++ b/board/cogent/lcd.c @@ -48,7 +48,7 @@
#include <common.h> #include <stdarg.h> -#include <board/cogent/lcd.h> +#include "lcd.h"
static char lines[2][LCD_LINE_LENGTH+1]; static int curline; diff --git a/board/cogent/mb.c b/board/cogent/mb.c index 603f123..3eea47d 100644 --- a/board/cogent/mb.c +++ b/board/cogent/mb.c @@ -6,11 +6,11 @@ */
#include <common.h> -#include <board/cogent/dipsw.h> -#include <board/cogent/lcd.h> -#include <board/cogent/rtc.h> -#include <board/cogent/par.h> -#include <board/cogent/pci.h> +#include "dipsw.h" +#include "lcd.h" +#include "rtc.h" +#include "par.h" +#include "pci.h"
/* ------------------------------------------------------------------------- */
diff --git a/board/cogent/serial.c b/board/cogent/serial.c index 20631d1..f0d6b22 100644 --- a/board/cogent/serial.c +++ b/board/cogent/serial.c @@ -4,7 +4,7 @@ */
#include <common.h> -#include <board/cogent/serial.h> +#include "serial.h" #include <serial.h> #include <linux/compiler.h>

On Mon, Nov 11, 2013 at 10:30:20AM +0900, Masahiro Yamada wrote:
Signed-off-by: Masahiro Yamada yamada.m@jp.panasonic.com
Note: I built cogent_mpc8260 and cogent_mpc8xx boards and confirmed that the same binaries were still generated with the changes in this commit.
Applied to u-boot/master, thanks!
participants (2)
-
Masahiro Yamada
-
Tom Rini