Blackfin: POST: revive, sync to main stream, cleanup.
PATCH 2/2 Blackfin: POST: revive, sync to main stream, cleanup.
1) post/post.c instead of arch/blackfin/lib/post.c
2) Alternative post_list support.
Suggested-by Wolfgang Denk <[email protected]>
Signed-off-by Michael Zaidman <[email protected]>
--- arch/blackfin/lib/Makefile | 2 +- arch/blackfin/lib/board.c | 1 - arch/blackfin/lib/post.c | 421 ------------------------------------- board/bf537-stamp/Makefile | 2 +- include/common.h | 3 + include/configs/bfin_adi_common.h | 1 + post/Makefile | 3 +- 7 files changed, 8 insertions(+), 425 deletions(-) delete mode 100644 arch/blackfin/lib/post.c
arch/blackfin/lib/Makefile +1 -1
@@ -46,7 +46,7 @@ COBJS-y += clocks.o COBJS-$(CONFIG_CMD_CACHE_DUMP) += cmd_cache_dump.o COBJS-$(CONFIG_CMD_KGDB) += kgdb.o COBJS-y += muldi3.o -COBJS-$(CONFIG_POST) += post.o tests.o +COBJS-$(CONFIG_POST_ALT_LIST) += tests.o COBJS-y += string.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
arch/blackfin/lib/board.c +0 -1
@@ -321,7 +321,6 @@ void board_init_r(gd_t * id, ulong dest_addr)#if defined(CONFIG_POST )post_output_backlog (); -post_reloc ();#endif /* initialize malloc() area */
arch/blackfin/lib/post.c deleted +0 -421
421 lines not on this page · raw message
board/bf537-stamp/Makefile +1 -1
@@ -32,7 +32,7 @@ LIB = $(obj)lib$(BOARD).a COBJS-y := $(BOARD).o cmd_bf537led.o COBJS-$(CONFIG_BFIN_IDE) += ide-cf.o COBJS-$(CONFIG_CMD_EEPROM) += spi_flash.o -COBJS-$(CONFIG_POST) += post.o post-memory.o +COBJS-$(CONFIG_HAS_POST) += post.o post-memory.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(COBJS-y))
include/common.h +3 -0
@@ -728,6 +728,9 @@ int cpu_release(int nr, int argc, char *argv[]);#ifdef CONFIG_POST #define CONFIG_HAS_POST +#ifndef CONFIG_POST_ALT_LIST +#define CONFIG_POST_STD_LIST +#endif #endif #ifdef CONFIG_INIT_CRITICAL
include/configs/bfin_adi_common.h +1 -0
@@ -50,6 +50,7 @@# endif # ifdef CONFIG_POST # define CONFIG_CMD_DIAG +# define CONFIG_POST_ALT_LIST # endif # ifdef CONFIG_RTC_BFIN # define CONFIG_CMD_DATE
post/Makefile +2 -1
@@ -26,7 +26,8 @@ include $(OBJTREE)/include/autoconf.mk LIB = libpost.a GPLIB-$(CONFIG_HAS_POST) += libgenpost.a -COBJS-$(CONFIG_HAS_POST) += post.o tests.o +COBJS-$(CONFIG_HAS_POST) += post.o +COBJS-$(CONFIG_POST_STD_LIST) += tests.o SPLIB-$(CONFIG_HAS_POST) = drivers/libpostdrivers.a SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d lib_$(ARCH) ]; then echo \
Signature · 1 line
1.6.3.3