Drop old pre-generic-board code
cover Drop old pre-generic-board code
The deadline for converting boards passed long ago. It is time to convert the two remaining architectures (openrisc and sh) and remove the old code.
Both of these architectures will likely need work to get them running again. If this doesn't happen we could consider removing the code at some point.
This series completes this migration.
Simon Glass (12):
openrisc: Drop the arch-specific board init Remove/update old generic-board documentation and warning
board_f: Don't require CONFIG_SYS_MONITOR_BASE
sh: Fix build errors for generic board
sh: Drop the arch-specific board init
avr32: Drop unused code in u-boot.h
m68k: Drop unused code in u-boot.h
mips: Drop unused code in u-boot.h
powerpc: Drop unused code related to generic board Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot Drop references to CONFIG_SYS_GENERIC_BOARD in config files Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options
Makefile | 14 --- README | 10 -- arch/Kconfig | 32 ------- arch/avr32/include/asm/u-boot.h | 20 ---- arch/m68k/include/asm/u-boot.h | 39 -------- arch/mips/include/asm/u-boot.h | 16 ---- arch/openrisc/lib/Makefile | 1 - arch/openrisc/lib/board.c | 140 --------------------------- arch/powerpc/cpu/mpc5xxx/start.S | 3 +- arch/powerpc/cpu/ppc4xx/cpu_init.c | 7 -- arch/powerpc/cpu/ppc4xx/start.S | 4 - arch/powerpc/include/asm/u-boot.h | 104 -------------------- arch/powerpc/lib/Makefile | 5 - arch/sh/cpu/sh2/cpu.c | 6 ++ arch/sh/cpu/sh2/start.S | 7 +- arch/sh/cpu/sh3/cpu.c | 6 ++ arch/sh/cpu/sh3/start.S | 7 +- arch/sh/cpu/sh4/cpu.c | 6 ++ arch/sh/cpu/sh4/start.S | 7 +- arch/sh/cpu/u-boot.lds | 1 + arch/sh/include/asm/u-boot.h | 12 +-- arch/sh/lib/Makefile | 1 - arch/sh/lib/board.c | 189 ------------------------------------- board/renesas/sh7752evb/u-boot.lds | 1 + board/renesas/sh7753evb/u-boot.lds | 1 + board/renesas/sh7757lcr/u-boot.lds | 1 + board/sandbox/README.sandbox | 3 +- common/Makefile | 4 +- common/board_f.c | 2 +- common/main.c | 6 -- doc/README.fdt-control | 6 -- doc/README.generic-board | 69 ++------------ include/configs/gr_cpci_ax2000.h | 1 - include/configs/gr_ep2s60.h | 1 - include/configs/gr_xc3s_1500.h | 1 - include/configs/grsim.h | 1 - include/configs/grsim_leon2.h | 1 - include/configs/openrisc-generic.h | 1 - include/watchdog.h | 3 +- 39 files changed, 49 insertions(+), 690 deletions(-) delete mode 100644 arch/openrisc/lib/board.c delete mode 100644 arch/sh/lib/board.c
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 1/12 openrisc: Drop the arch-specific board init
It is well past the deadline for conversion to generic board init. Remove the old code.
Stefan, can you test this please and perhaps send a follow-up patch if needed?
---
arch/openrisc/lib/Makefile | 1 - arch/openrisc/lib/board.c | 140 ------------------------------------- include/configs/openrisc-generic.h | 1 + 3 files changed, 1 insertion(+), 141 deletions(-) delete mode 100644 arch/openrisc/lib/board.c
arch/openrisc/lib/Makefile +0 -1
@@ -5,6 +5,5 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-y += board.o obj-$(CONFIG_CMD_BOOTM) += bootm.o obj-y += timer.o
arch/openrisc/lib/board.c deleted +0 -140
140 lines not on this page · raw message
include/configs/openrisc-generic.h +1 -0
@@ -10,6 +10,7 @@/* * BOARD/CPU */ +#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_SYS_CLK_FREQ 50000000#define CONFIG_SYS_RESET_ADDR 0x00000100
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 1/12 openrisc: Drop the arch-specific board init
Quoted 6 lines · Simon Glass
It is well past the deadline for conversion to generic board init. Remove the old code.
Stefan, can you test this please and perhaps send a follow-up patch if needed?
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/40a33857/attachment.sig>
PATCH 2/12 Remove/update old generic-board documentation and warning
In reply to Simon GlassRemove the warning from the Makefile, since boards that do not use generic board will no longer build. Also update documentation.
---
Makefile | 14 --------- README | 10 ------- board/sandbox/README.sandbox | 3 +- doc/README.fdt-control | 6 ---- doc/README.generic-board | 69 +++++--------------------------------------- 5 files changed, 8 insertions(+), 94 deletions(-)
Makefile +0 -14
@@ -801,13 +801,6 @@ quiet_cmd_pad_cat = CAT $@ cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@ all: $(ALL-y) -ifneq ($(CONFIG_SYS_GENERIC_BOARD),y) - @echo "===================== WARNING ======================" - @echo "Please convert this board to generic board." - @echo "Otherwise it will be removed by the end of 2014." - @echo "See doc/README.generic-board for further information" - @echo "====================================================" -endif ifeq ($(CONFIG_DM_I2C_COMPAT),y) @echo "===================== WARNING ======================" @echo "This board uses CONFIG_DM_I2C_COMPAT. Please remove"
@@ -1257,13 +1250,6 @@ prepare2: prepare3 outputmakefile prepare1: prepare2 $(version_h) $(timestamp_h) \ include/config/auto.conf -ifeq ($(CONFIG_HAVE_GENERIC_BOARD),) -ifeq ($(CONFIG_SYS_GENERIC_BOARD),y) - @echo >&2 " Your architecture does not support generic board." - @echo >&2 " Please undefine CONFIG_SYS_GENERIC_BOARD in your board config file." - @/bin/false -endif -endif ifeq ($(wildcard $(LDSCRIPT)),) @echo >&2 " Could not find linker script." @/bin/false
README +0 -10
@@ -4043,16 +4043,6 @@ Configuration Settings: If defined, don't allow the -f switch to env set override variable access flags. -- CONFIG_SYS_GENERIC_BOARD - This selects the architecture-generic board system instead of the - architecture-specific board files. It is intended to move boards - to this new framework over time. Defining this will disable the - arch/foo/lib/board.c file and use common/board_f.c and - common/board_r.c instead. To use this option your architecture - must support it (i.e. must select HAVE_GENERIC_BOARD in arch/Kconfig). - If you find problems enabling this option on your board please report - the problem and send patches! - - CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC (OMAP only) This is set by OMAP boards for the max time that reset should be asserted. See doc/README.omap-reset-time for details on how
board/sandbox/README.sandbox +1 -2
@@ -186,8 +186,7 @@ U-Boot sandbox supports these emulations: A wide range of commands is implemented. Filesystems which use a block device are supported. -Also sandbox uses generic board (CONFIG_SYS_GENERIC_BOARD) and supports -driver model (CONFIG_DM) and associated commands. +Also sandbox supports driver model (CONFIG_DM) and associated commands. Linux RAW Networking Bridge
doc/README.fdt-control +0 -6
@@ -33,12 +33,6 @@ the features of each board in the device tree file, and have a single generic source base. To enable this feature, add CONFIG_OF_CONTROL to your board config file. -It is currently supported on ARM, x86 and Microblaze - other architectures -will need to add code to their arch/xxx/lib/board.c file to locate the -FDT. Alternatively you can enable generic board support on your board -(with CONFIG_SYS_GENERIC_BOARD) if this is available (as it is for -PowerPC). For ARM, Tegra and Exynos5 have device trees available for -common devices. What is a Flat Device Tree?
doc/README.generic-board +7 -62
94 lines not on this page · raw message
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 2/12 Remove/update old generic-board documentation and warning
Quoted 5 lines · Simon Glass
Remove the warning from the
Makefile, since boards that do not use generic
board will no longer build. Also update documentation.Signed-off-by Simon Glass <[email protected]>
Quoted 219 lines
---
Makefile | 14 --------- README | 10 ------- board/sandbox/README.sandbox | 3 +- doc/README.fdt-control | 6 ---- doc/README.generic-board | 69 +++++--------------------------------------- 5 files changed, 8 insertions(+), 94 deletions(-)Makefile +0
-11@@ -801,13 +801,6 @@ quiet_cmd_pad_cat = CAT $@ cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@ all: $(ALL-y) -ifneq ($(CONFIG_SYS_GENERIC_BOARD),y) - @echo "===================== WARNING ======================" - @echo "Please convert this board to generic board." - @echo "Otherwise it will be removed by the end of 2014." - @echo "See doc/README.generic-board for further information" - @echo "====================================================" -endif ifeq ($(CONFIG_DM_I2C_COMPAT),y) @echo "===================== WARNING ======================" @echo "This board uses CONFIG_DM_I2C_COMPAT. Please remove"@@ -1257,13 +1250,6 @@ prepare2: prepare3 outputmakefile prepare1: prepare2 $(version_h) $(timestamp_h) \ include/config/auto.conf -ifeq ($(CONFIG_HAVE_GENERIC_BOARD),) -ifeq ($(CONFIG_SYS_GENERIC_BOARD),y) - @echo >&2 " Your architecture does not support generic board." - @echo >&2 " Please undefine CONFIG_SYS_GENERIC_BOARD in your boardconfig file."
Makefile +0
-3- @/bin/false -endif -endif ifeq ($(wildcard $(LDSCRIPT)),) @echo >&2 " Could not find linker script." @/bin/falseREADME +0
-7@@ -4043,16 +4043,6 @@ Configuration Settings: If defined, don't allow the -f switch to env set override variable access flags. -- CONFIG_SYS_GENERIC_BOARD - This selects the architecture-generic board system instead of the - architecture-specific board files. It is intended to move boards - to this new framework over time. Defining this will disable the - arch/foo/lib/board.c file and use common/board_f.c and - common/board_r.c instead. To use this option your architecture - must support it (i.e. must select HAVE_GENERIC_BOARD in
arch/Kconfig).README +0
-3- If you find problems enabling this option on your board please report - the problem and send patches! - - CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC (OMAP only) This is set by OMAP boards for the max time that reset should be asserted. See doc/README.omap-reset-time for details on howboard/sandbox/README.sandbox +0
-1@@ -186,8 +186,7 @@ U-Boot sandbox supports these emulations: A wide range of commands is implemented. Filesystems which use a block device are supported. -Also sandbox uses generic board (CONFIG_SYS_GENERIC_BOARD) andsupports
board/sandbox/README.sandbox +1
-1-driver model (CONFIG_DM) and associated commands. +Also sandbox supports driver model (CONFIG_DM) and associatedcommands.
Linux RAW Networking Bridge
doc/README.fdt-control +0
-0@@ -33,12 +33,6 @@ the features of each board in the device tree file,and have a single
generic source base.To enable this feature, add
CONFIG_OF_CONTROLto your board config
file.
-It is currently supported on ARM, x86 and Microblaze - other architecturesdoc/README.fdt-control +0
-5-will need to add code to their arch/xxx/lib/board.c file to locate the -FDT. Alternatively you can enable generic board support on your board -(with CONFIG_SYS_GENERIC_BOARD) if this is available (as it is for -PowerPC). For ARM, Tegra and Exynos5 have device trees available for -common devices. What is a Flat Device Tree?doc/README.generic-board +0
-3@@ -5,29 +5,22 @@ # SPDX-License-Identifier: GPL-2.0+ # -DEPRECATION NOTICE FOR arch/<arch>/lib/board.c - -For board maintainers: Please submit patches for boards you maintainbefore
doc/README.generic-board +0
-7-July 2014, to make them use generic board. - -For architecture maintainers: Please submit patches to remove your -architecture-specific board.c file before October 2014. - - Background ---------- -U-Boot has traditionally had a board.c file for each architecture.This has
-introduced quite a lot of duplication, with each architecture tending to do
+U-Boot traditionally had aboard.cfile for each architecture. This introduced
+quite a lot of duplication, with each architecture tending to do
initialisation slightly differently. To address this, a new 'generic
board
-init' feature was introduced a year ago in March 2013 (further motivation isdoc/README.generic-board +3
-1+init' feature was introduced in March 2013 (further motivation is provided in the cover letter below). +All boards and architectures have moved to this as of mid 2016. + What has changed? ----------------- -The main change is that the arch/<arch>/lib/board.c file is beingremoved in
+The main change is that the arch/<arch>/lib/board.c file is removed in
favour ofcommon/board_f.c(for pre-relocation init) andcommon/board_r.c
(for post-relocation init).doc/README.generic-board +0
-0@@ -36,55 +29,6 @@ fields which are common to all architectures.Architecture-specific fields
have been moved to separate structures.doc/README.generic-board +0
-4-Supported Architectures ------------------------- - -If you are unlucky then your architecture may not support genericboard.
doc/README.generic-board +0
-23-The following architectures are supported now: - - arc - arm - avr32 - blackfin - m68k - microblaze - mips - nios2 - powerpc - sandbox - x86 - -If your architecture is not supported, you need to select -HAVE_GENERIC_BOARD in arch/Kconfig -and test it with a suitable board, as follows. - - -Adding Support for your Board ------------------------------ - -To enable generic board for your board, define
CONFIG_SYS_GENERIC_BOARDindoc/README.generic-board +0
-4-your board config header file. - -Test that U-Boot still functions correctly on your board, and fix any -problems you find. Don't be surprised if there are no problems -generic
doc/README.generic-board +0
-7-board has had a reasonable amount of testing with common boards. - - -DeadLine --------- - -Please don't take this the wrong way - there is no intent to make yourlife
-miserable, and we have the greatest respect and admiration for U-Boot users.
-However, with any migration there has to be a period where the old way is
-deprecated and removed. Every patch to the deprecated code introduces adoc/README.generic-board +1
-8-potential breakage in the new unused code. Therefore: - -Boards or architectures not converted over to general board by the -end of 2014 may be forcibly changed over (potentially causing run-time -breakage) or removed. - - - Further Background ------------------@@ -190,3 +134,4 @@ convenience. Simon Glass, sjg at chromium.org March 2014 +Updated after final removal, May 2016
PATCH 2/12 Remove/update old generic-board documentation and warning
In reply to Simon GlassQuoted 5 lines · Simon Glass
Remove the warning from the
Makefile, since boards that do not use generic board will no longer build. Also update documentation.Signed-off-by Simon Glass <[email protected]>Reviewed-by Andreas Bie?mann <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/75cb9211/attachment.sig>
PATCH 3/12 board_f: Don't require CONFIG_SYS_MONITOR_BASE
In reply to Simon GlassAllow this to be unset, such that gd->mon_len is invalid. This seems to be what the sh architecture does.
---
common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/board_f.c +1 -1
@@ -274,7 +274,7 @@ static int setup_mon_len(void) gd->mon_len =CONFIG_SYS_MONITOR_LEN ;#elif defined(CONFIG_NDS32 ) gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start); -#else +#elif defined(CONFIG_SYS_MONITOR_BASE )/* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */ gd->mon_len = (ulong )&__bss_end -CONFIG_SYS_MONITOR_BASE ;#endif
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 3/12 board_f: Don't require CONFIG_SYS_MONITOR_BASE
Hi Simon,
Quoted 15 lines · Simon Glass
Allow this to be unset, such that
gd->mon_lenis invalid. This seems to be
what the sh architecture does.Signed-off-by Simon Glass <[email protected]>---
common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/board_f.c +0
-0
common/board_f.c static int setup_mon_len(void) · line 279
Quoted 7 lines
common/board_f.c +1
-1@@ -274,7 +274,7 @@ static int setup_mon_len(void) gd->mon_len =CONFIG_SYS_MONITOR_LEN ;#elif defined(CONFIG_NDS32 ) gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start); -#else +#elif defined(CONFIG_SYS_MONITOR_BASE )/* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */ gd->mon_len = (ulong )&__bss_end -CONFIG_SYS_MONITOR_BASE ;
before this produced an compile error for undefiend CONFIG_SYS_MONITOR_BASE, now it will be silently ignored. Why not leave the else case and use the TODO statement instead?
At best we should equalize the linker files and remove the whole ifdiffery here.
Andreas
PATCH 3/12 board_f: Don't require CONFIG_SYS_MONITOR_BASE
In reply to Simon GlassHi Simon,
Quoted 15 lines · Simon Glass
Allow this to be unset, such that
gd->mon_lenis invalid. This seems to be
what the sh architecture does.Signed-off-by Simon Glass <[email protected]>---
common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/board_f.c +0
-0
common/board_f.c static int setup_mon_len(void) · line 279
Quoted 7 lines
common/board_f.c +1
-1@@ -274,7 +274,7 @@ static int setup_mon_len(void) gd->mon_len =CONFIG_SYS_MONITOR_LEN ;#elif defined(CONFIG_NDS32 ) gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start); -#else +#elif defined(CONFIG_SYS_MONITOR_BASE )/* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */ gd->mon_len = (ulong )&__bss_end -CONFIG_SYS_MONITOR_BASE ;
before this produced an compile error for undefiend CONFIG_SYS_MONITOR_BASE, now it will be silently ignored. Why not leave the else case and use the TODO statement instead?
At best we should equalize the linker files and remove the whole ifdiffery here.
Andreas
PATCH 3/12 board_f: Don't require CONFIG_SYS_MONITOR_BASE
Hi Andreas,
Quoted 22 lines · Andreas Bie?mann
Hi Simon,
Quoted 19 lines · Simon Glass
Allow this to be unset, such that
gd->mon_lenis invalid. This seems to be what the sh architecture does.Signed-off-by Simon Glass <[email protected]>---
common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/board_f.c +0
-1@@ -274,7 +274,7 @@ static int setup_mon_len(void) gd->mon_len =CONFIG_SYS_MONITOR_LEN ;#elif defined(CONFIG_NDS32 ) gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start); -#else
Quoted 8 lines
common/board_f.c static int setup_mon_len(void) · line 279
Quoted 3 lines
common/board_f.c +1
-0+#elif defined(CONFIG_SYS_MONITOR_BASE )/* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */ gd->mon_len = (ulong )&__bss_end -CONFIG_SYS_MONITOR_BASE ;before this produced an compile error for undefiend
CONFIG_SYS_MONITOR_BASE, now it will be silently ignored. Why not leave the else case and use the TODO statement instead?
Yes that seems better. I'm a bit tired of the complexity here. Perhaps I should add #error for the #else case?
Quoted 2 lines
At best we should equalize the linker files and remove the whole ifdiffery here.
Yes that needs to be done. More people should contribute to this sort of clean-up. It's a bit tedious but not super-hard.
Regards,
Simon
PATCH 3/12 board_f: Don't require CONFIG_SYS_MONITOR_BASE
In reply to Simon GlassQuoted 4 lines · Simon Glass
Allow this to be unset, such that
gd->mon_lenis invalid. This seems to be what the sh architecture does.Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/fce89834/attachment.sig>
PATCH 4/12 sh: Fix build errors for generic board
In reply to Simon GlassThis includes the following fixes:
- Define needed __init_end symbol - see initr_reloc_global_data()
- Drop SH-specific struct bd_info
- Add an empty relocate_code() function
This prevents build errors with generic board, but the code will still need work. Perhaps this is a better alternative than deleting the code.
---
arch/sh/cpu/sh2/cpu.c | 6 ++++++ arch/sh/cpu/sh2/start.S | 7 ++++--- arch/sh/cpu/sh3/cpu.c | 6 ++++++ arch/sh/cpu/sh3/start.S | 7 ++++--- arch/sh/cpu/sh4/cpu.c | 6 ++++++ arch/sh/cpu/sh4/start.S | 7 ++++--- arch/sh/cpu/u-boot.lds | 1 + arch/sh/include/asm/u-boot.h | 12 ++---------- board/renesas/sh7752evb/u-boot.lds | 1 + board/renesas/sh7753evb/u-boot.lds | 1 + board/renesas/sh7757lcr/u-boot.lds | 1 + 11 files changed, 36 insertions(+), 19 deletions(-)
arch/sh/cpu/sh2/cpu.c +6 -0
@@ -83,3 +83,9 @@ int dcache_status(void) {return 0 ; } + +void relocate_code (ulong start_addr_sp,gd_t *new_gd,ulong relocaaddr) +{ +/* TODO(sh maintainer): Implement this */ +while (1 ); +}
arch/sh/cpu/sh2/start.S +4 -3
@@ -46,8 +46,9 @@ _init: mov.l ._gd_init, r13 /* global data */ mov.l ._stack_init, r15 /* stack */ - mov.l ._sh_generic_init, r0 - jsr @r0 + #TODO(sh maintainer): Fix this up to call the correct code + #mov.l ._sh_generic_init, r0 + #jsr @r0 nop loop:
@@ -62,4 +63,4 @@ loop: ._bss_end: .long bss_end ._gd_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE) ._stack_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) -._sh_generic_init: .long sh_generic_init +#._sh_generic_init: .long sh_generic_init
arch/sh/cpu/sh3/cpu.c +6 -0
@@ -66,3 +66,9 @@ int dcache_status(void) {return 0 ; } + +void relocate_code (ulong start_addr_sp,gd_t *new_gd,ulong relocaaddr) +{ +/* TODO(sh maintainer): Implement this */ +while (1 ); +}
arch/sh/cpu/sh3/start.S +4 -3
@@ -45,8 +45,9 @@ _sh_start: mov.l ._gd_init, r13 /* global data */ mov.l ._stack_init, r15 /* stack */ - mov.l ._sh_generic_init, r0 - jsr @r0 + #TODO(sh maintainer): Fix this up to call the correct code + #mov.l ._sh_generic_init, r0 + #jsr @r0 nop loop:
@@ -61,4 +62,4 @@ loop: ._bss_end: .long bss_end ._gd_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE) ._stack_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) -._sh_generic_init: .long sh_generic_init +#._sh_generic_init: .long sh_generic_init
arch/sh/cpu/sh4/cpu.c +6 -0
@@ -75,3 +75,9 @@ int cpu_eth_init(bd_t *bis)#endif return 0 ; } + +void relocate_code (ulong start_addr_sp,gd_t *new_gd,ulong relocaaddr) +{ +/* TODO(sh maintainer): Implement this */ +while (1 ); +}
arch/sh/cpu/sh4/start.S +4 -3
@@ -42,8 +42,9 @@ _sh_start: mov.l ._gd_init, r13 /* global data */ mov.l ._stack_init, r15 /* stack */ - mov.l ._sh_generic_init, r0 - jsr @r0 + #TODO(sh maintainer): Fix this up to call the correct code + #mov.l ._sh_generic_init, r0 + #jsr @r0 nop loop:
@@ -58,4 +59,4 @@ loop: ._bss_end: .long bss_end ._gd_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE) ._stack_init: .long (_sh_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) -._sh_generic_init: .long sh_generic_init +#._sh_generic_init: .long sh_generic_init
arch/sh/cpu/u-boot.lds +1 -0
@@ -67,6 +67,7 @@ SECTIONS KEEP(*(SORT(.u_boot_list*))); } + PROVIDE (__init_end = .); PROVIDE (reloc_dst_end = .); /* _reloc_dst_end = .; */
arch/sh/include/asm/u-boot.h +2 -10
@@ -12,16 +12,8 @@#ifndef __ASM_SH_U_BOOT_H_#define __ASM_SH_U_BOOT_H_ -typedef struct bd_info { -unsigned long bi_memstart;/* start of DRAM memory */ -phys_size_t bi_memsize;/* size of DRAM memory in bytes */ -unsigned long bi_flashstart;/* start of FLASH memory */ -unsigned long bi_flashsize;/* size of FLASH memory */ -unsigned long bi_flashoffset;/* reserved area for startup monitor */ -unsigned long bi_sramstart;/* start of SRAM memory */ -unsigned long bi_sramsize;/* size of SRAM memory */ -unsigned long bi_boot_params;/* where this board expects params */ -}bd_t ; +/* Use the generic board which requires a unified bd_info */ +#include <asm-generic/u-boot.h> /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_SH
board/renesas/sh7752evb/u-boot.lds +1 -0
@@ -65,6 +65,7 @@ SECTIONS KEEP(*(SORT(.u_boot_list*))); } + PROVIDE (__init_end = .); PROVIDE (reloc_dst_end = .); /* _reloc_dst_end = .; */
board/renesas/sh7753evb/u-boot.lds +1 -0
@@ -65,6 +65,7 @@ SECTIONS KEEP(*(SORT(.u_boot_list*))); } + PROVIDE (__init_end = .); PROVIDE (reloc_dst_end = .); /* _reloc_dst_end = .; */
board/renesas/sh7757lcr/u-boot.lds +1 -0
@@ -66,6 +66,7 @@ SECTIONS KEEP(*(SORT(.u_boot_list*))); } + PROVIDE (__init_end = .); PROVIDE (reloc_dst_end = .); /* _reloc_dst_end = .; */
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 4/12 sh: Fix build errors for generic board
Quoted 9 lines · Simon Glass
This includes the following fixes:
- Define needed__init_endsymbol - seeinitr_reloc_global_data()
- Drop SH-specific structbd_info
- Add an emptyrelocate_code()functionThis prevents build errors with generic board, but the code will still need work. Perhaps this is a better alternative than deleting the code.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/488b4c67/attachment-0001.sig>
PATCH 5/12 sh: Drop the arch-specific board init
In reply to Simon GlassIt is well past the deadline for conversion to generic board init. Remove the old code.
Please test this and perhaps send a follow-up patch if needed.
---
arch/sh/include/asm/config.h | 2 + arch/sh/lib/Makefile | 1 - arch/sh/lib/board.c | 189 ------------------------------------------- 3 files changed, 2 insertions(+), 190 deletions(-) delete mode 100644 arch/sh/lib/board.c
arch/sh/include/asm/config.h +2 -0
@@ -7,4 +7,6 @@#ifndef _ASM_CONFIG_H_#define _ASM_CONFIG_H_ +#define CONFIG_SYS_GENERIC_BOARD +#endif
arch/sh/lib/Makefile +0 -1
@@ -6,7 +6,6 @@ # -obj-y += board.o obj-$(CONFIG_CMD_BOOTM) += bootm.o ifeq ($(CONFIG_CPU_SH2),y) obj-y += time_sh2.o
arch/sh/lib/board.c deleted +0 -189
189 lines not on this page · raw message
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 5/12 sh: Drop the arch-specific board init
Quoted 6 lines · Simon Glass
It is well past the deadline for conversion to generic board init. Remove the old code.
Please test this and perhaps send a follow-up patch if needed.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/213e7bcd/attachment.sig>
PATCH 6/12 avr32: Drop unused code in u-boot.h
In reply to Simon GlassSince generic board init is enabled, this is not used. Drop it.
---
arch/avr32/include/asm/u-boot.h | 20 -------------------- 1 file changed, 20 deletions(-)
arch/avr32/include/asm/u-boot.h +0 -20
@@ -6,28 +6,8 @@#ifndef __ASM_U_BOOT_H__#define __ASM_U_BOOT_H__ 1 -#ifdef CONFIG_SYS_GENERIC_BOARD /* Use the generic board which requires a unified bd_info */ #include <asm-generic/u-boot.h> -#else - -typedef struct bd_info { -unsigned char bi_phy_id[4 ]; -unsigned long bi_board_number; -void *bi_boot_params; -struct { -unsigned long start; -unsigned long size; - } bi_dram[CONFIG_NR_DRAM_BANKS ]; -unsigned long bi_flashstart; -unsigned long bi_flashsize; -unsigned long bi_flashoffset; -}bd_t ; - -#define bi_memstart bi_dram[0].start -#define bi_memsize bi_dram[0].size - -#endif /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_AVR32
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 6/12 avr32: Drop unused code in u-boot.h
Quoted 3 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Quoted 39 lines
---
arch/avr32/include/asm/u-boot.h | 20 -------------------- 1 file changed, 20 deletions(-)arch/avr32/include/asm/u-boot.h +0
-20@@ -6,28 +6,8 @@#ifndef __ASM_U_BOOT_H__#define __ASM_U_BOOT_H__ 1 -#ifdef CONFIG_SYS_GENERIC_BOARD /* Use the generic board which requires a unified bd_info */ #include <asm-generic/u-boot.h> -#else - -typedef struct bd_info { -unsigned char bi_phy_id[4 ]; -unsigned long bi_board_number; -void *bi_boot_params; -struct { -unsigned long start; -unsigned long size; - } bi_dram[CONFIG_NR_DRAM_BANKS ]; -unsigned long bi_flashstart; -unsigned long bi_flashsize; -unsigned long bi_flashoffset; -}bd_t ; - -#define bi_memstart bi_dram[0].start -#define bi_memsize bi_dram[0].size - -#endif /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_AVR32
PATCH 6/12 avr32: Drop unused code in u-boot.h
In reply to Simon GlassQuoted 4 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>Acked-by Andreas Bie?mann <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/b9772c11/attachment.sig>
PATCH 7/12 m68k: Drop unused code in u-boot.h
In reply to Simon GlassSince generic board init is enabled, this is not used. Drop it.
---
arch/m68k/include/asm/u-boot.h | 39 --------------------------------------- 1 file changed, 39 deletions(-)
arch/m68k/include/asm/u-boot.h +0 -39
@@ -14,47 +14,8 @@#ifndef __U_BOOT_H__#define __U_BOOT_H__ -/* -* Board information passed to Linux kernel from U-Boot -* -* include/asm-ppc/u-boot.h -*/ - -#ifdef CONFIG_SYS_GENERIC_BOARD /* Use the generic board which requires a unified bd_info */ #include <asm-generic/u-boot.h> -#else - -#ifndef __ASSEMBLY__ - -typedef struct bd_info { -unsigned long bi_memstart;/* start of DRAM memory */ -phys_size_t bi_memsize;/* size of DRAM memory in bytes */ -unsigned long bi_flashstart;/* start of FLASH memory */ -unsigned long bi_flashsize;/* size of FLASH memory */ -unsigned long bi_flashoffset;/* reserved area for startup monitor */ -unsigned long bi_sramstart;/* start of SRAM memory */ -unsigned long bi_sramsize;/* size of SRAM memory */ -unsigned long bi_mbar_base;/* base of internal registers */ -unsigned long bi_bootflags;/* boot / reboot flag (for LynxOS) */ -unsigned long bi_boot_params;/* where this board expects params */ -unsigned short bi_ethspeed;/* Ethernet speed in Mbps */ -unsigned long bi_intfreq;/* Internal Freq, in MHz */ -unsigned long bi_busfreq;/* Bus Freq, in MHz */ -#ifdef CONFIG_PCI -unsigned long bi_pcifreq;/* pci Freq in MHz */ -#endif -#ifdef CONFIG_EXTRA_CLOCK -unsigned long bi_inpfreq;/* input Freq in MHz */ -unsigned long bi_vcofreq;/* vco Freq in MHz */ -unsigned long bi_flbfreq;/* Flexbus Freq in MHz */ -#endif -}bd_t ; - -#endif /* __ASSEMBLY__ */ - -#endif /* !CONFIG_SYS_GENERIC_BOARD */ -/* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_M68K
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 7/12 m68k: Drop unused code in u-boot.h
Quoted 8 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>---
arch/m68k/include/asm/u-boot.h | 39 --------------------------------------- 1 file changed, 39 deletions(-)
PATCH 7/12 m68k: Drop unused code in u-boot.h
In reply to Simon GlassQuoted 4 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/4fcffe7f/attachment.sig>
PATCH 8/12 mips: Drop unused code in u-boot.h
In reply to Simon GlassSince generic board init is enabled, this is not used. Drop it.
---
arch/mips/include/asm/u-boot.h | 16 ---------------- 1 file changed, 16 deletions(-)
arch/mips/include/asm/u-boot.h +0 -16
@@ -15,25 +15,9 @@#ifndef _U_BOOT_H_#define _U_BOOT_H_ 1 -#ifdef CONFIG_SYS_GENERIC_BOARD -/* Use the generic board which requires a unified bd_info */ #include <asm-generic/u-boot.h> -#else /* !CONFIG_SYS_GENERIC_BOARD */ - -typedef struct bd_info { -unsigned long bi_arch_number;/* unique id for this board */ -unsigned long bi_boot_params;/* where this board expects params */ -unsigned long bi_memstart;/* start of DRAM memory */ -phys_size_t bi_memsize;/* size of DRAM memory in bytes */ -unsigned long bi_flashstart;/* start of FLASH memory */ -unsigned long bi_flashsize;/* size of FLASH memory */ -unsigned long bi_flashoffset;/* reserved area for startup monitor */ -}bd_t ; - -#endif /* !CONFIG_SYS_GENERIC_BOARD */ -/* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_MIPS
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 8/12 mips: Drop unused code in u-boot.h
Am 15.05.2016 um 02:49 schrieb Simon Glass:
Quoted 3 lines
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Quoted 36 lines
---
arch/mips/include/asm/u-boot.h | 16 ---------------- 1 file changed, 16 deletions(-)arch/mips/include/asm/u-boot.h +0
-16@@ -15,25 +15,9 @@#ifndef _U_BOOT_H_#define _U_BOOT_H_ 1 -#ifdef CONFIG_SYS_GENERIC_BOARD -/* Use the generic board which requires a unified bd_info */ #include <asm-generic/u-boot.h> -#else /* !CONFIG_SYS_GENERIC_BOARD */ - -typedef struct bd_info { -unsigned long bi_arch_number;/* unique id for this board */ -unsigned long bi_boot_params;/* where this board expects params */ -unsigned long bi_memstart;/* start of DRAM memory */ -phys_size_t bi_memsize;/* size of DRAM memory in bytes */ -unsigned long bi_flashstart;/* start of FLASH memory */ -unsigned long bi_flashsize;/* size of FLASH memory */ -unsigned long bi_flashoffset;/* reserved area for startup monitor */ -}bd_t ; - -#endif /* !CONFIG_SYS_GENERIC_BOARD */ -/* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_MIPS
Signature · 9 lines
- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160518/b738f5db/attachment-0001.sig>
PATCH 8/12 mips: Drop unused code in u-boot.h
In reply to Simon GlassQuoted 4 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/35ceff48/attachment.sig>
PATCH 9/12 powerpc: Drop unused code related to generic board
In reply to Simon GlassSince generic board init is enabled, this is not used. Drop it.
---
arch/powerpc/cpu/mpc5xxx/start.S | 3 +- arch/powerpc/cpu/ppc4xx/cpu_init.c | 7 --- arch/powerpc/cpu/ppc4xx/start.S | 4 -- arch/powerpc/include/asm/u-boot.h | 104 ------------------------------------- arch/powerpc/lib/Makefile | 5 -- 5 files changed, 1 insertion(+), 122 deletions(-)
arch/powerpc/cpu/mpc5xxx/start.S +1 -2
@@ -83,8 +83,7 @@ _start: * This function is called when the platform is build with SPL * support from the main (full-blown) U-Boot. And the GD needs * to get cleared (again) so that the following generic - * board support code, defined via CONFIG_SYS_GENERIC_BOARD, - * initializes all variables correctly. + * board support code initializes all variables correctly. */ mr r3, r2 /* parameter 1: GD pointer */ li r4,0 /* parameter 2: value to fill */
arch/powerpc/cpu/ppc4xx/cpu_init.c +0 -7
@@ -449,13 +449,6 @@ cpu_init_f (void)mtdcr (PLB4A1_ACR , (mfdcr (PLB4A1_ACR ) & ~PLB4Ax_ACR_RDP_MASK) | PLB4Ax_ACR_RDP_4DEEP);#endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */ - -#ifndef CONFIG_SYS_GENERIC_BOARD - gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR +CONFIG_SYS_GBL_DATA_OFFSET ); - -/* Clear initial global data */ -memset ((void *)gd,0 ,sizeof (gd_t)); -#endif }/*
arch/powerpc/cpu/ppc4xx/start.S +0 -4
@@ -760,7 +760,6 @@ _start: #endif bl cpu_init_f /* run low-level CPU init code (from Flash) */ -#ifdef CONFIG_SYS_GENERIC_BOARD mr r3, r1 bl board_init_f_alloc_reserve mr r1, r3
@@ -768,7 +767,6 @@ _start: li r0,0 stwu r0, -4(r1) stwu r0, -4(r1) -#endif li r3, 0 bl board_init_f /* NOTREACHED - board_init_f() does not return */
@@ -1037,14 +1035,12 @@ _start: GET_GOT /* initialize GOT access */ bl cpu_init_f /* run low-level CPU init code (from Flash) */ -#ifdef CONFIG_SYS_GENERIC_BOARD mr r3, r1 bl board_init_f_alloc_reserve mr r1, r3 bl board_init_f_init_reserve stwu r0, -4(r1) stwu r0, -4(r1) -#endif li r3, 0 bl board_init_f /* run first part of init code (from Flash) */ /* NOTREACHED - board_init_f() does not return */
arch/powerpc/include/asm/u-boot.h +0 -104
112 lines not on this page · raw message
arch/powerpc/lib/Makefile +0 -5
@@ -29,11 +29,6 @@ obj-y += ticks.o obj-y += reloc.o obj-$(CONFIG_BAT_RW) += bat_rw.o -ifndef CONFIG_SPL_BUILD -ifndef CONFIG_SYS_GENERIC_BOARD -obj-y += board.o -endif -endif obj-$(CONFIG_CMD_BOOTM) += bootm.o obj-y += cache.o obj-y += extable.o
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 9/12 powerpc: Drop unused code related to generic board
Quoted 3 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/df3f4bcc/attachment.sig>
PATCH 9/12 powerpc: Drop unused code related to generic board
In reply to Simon GlassQuoted 3 lines · Simon Glass
Since generic board init is enabled, this is not used. Drop it.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/f9464949/attachment.sig>
PATCH 10/12 Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot
In reply to Simon GlassThis option is always enabled and is about to be removed. Drop references to it.
---
common/Makefile | 4 ++-- common/main.c | 6 ------ include/watchdog.h | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-)
common/Makefile +2 -2
@@ -26,8 +26,8 @@ obj-y += bootretry.o endif # boards -obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o -obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o +obj-y += board_f.o +obj-y += board_r.o obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
common/main.c +0 -6
@@ -47,12 +47,6 @@ void main_loop(void)bootstage_mark_name (BOOTSTAGE_ID_MAIN_LOOP ,"main_loop" ); -#ifndef CONFIG_SYS_GENERIC_BOARD -puts ("Warning: Your board does not use generic board. Please read\n" ); -puts ("doc/README.generic-board and take action. Boards not\n" ); -puts ("upgraded by the late 2014 may break or be removed.\n" ); -#endif -#ifdef CONFIG_VERSION_VARIABLE setenv ("ver" , version_string);/* set version variable */ #endif /* CONFIG_VERSION_VARIABLE */
include/watchdog.h +1 -2
@@ -21,8 +21,7 @@int init_func_watchdog_reset (void );#endif -#if defined(CONFIG_SYS_GENERIC_BOARD ) && \ - (defined(CONFIG_WATCHDOG ) || defined(CONFIG_HW_WATCHDOG )) +#if defined(CONFIG_WATCHDOG ) || defined(CONFIG_HW_WATCHDOG )#define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init,#define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset,#else
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 10/12 Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot
Quoted 5 lines · Simon Glass
This option is always enabled and is about to be removed. Drop references
to it.Signed-off-by Simon Glass <[email protected]>
Quoted 54 lines
---
common/Makefile | 4 ++-- common/main.c | 6 ------ include/watchdog.h | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-)common/Makefile +2
-2@@ -26,8 +26,8 @@ obj-y += bootretry.o endif # boards -obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o -obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o +obj-y += board_f.o +obj-y += board_r.o obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.ocommon/main.c +0
-6@@ -47,12 +47,6 @@ void main_loop(void)bootstage_mark_name (BOOTSTAGE_ID_MAIN_LOOP ,"main_loop" ); -#ifndef CONFIG_SYS_GENERIC_BOARD -puts ("Warning: Your board does not use generic board. Please read\n"); -puts ("doc/README.generic-board and take action. Boards not\n" ); -puts ("upgraded by the late 2014 may break or be removed.\n" ); -#endif -#ifdef CONFIG_VERSION_VARIABLE setenv ("ver" , version_string);/* set version variable */ #endif /*
CONFIG_VERSION_VARIABLE*/include/watchdog.h +1
-2@@ -21,8 +21,7 @@int init_func_watchdog_reset (void );#endif -#if defined(CONFIG_SYS_GENERIC_BOARD ) && \ - (defined(CONFIG_WATCHDOG ) || defined(CONFIG_HW_WATCHDOG )) +#if defined(CONFIG_WATCHDOG ) || defined(CONFIG_HW_WATCHDOG )#define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init,#define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset,#else
PATCH 10/12 Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot
In reply to Simon GlassQuoted 5 lines · Simon Glass
This option is always enabled and is about to be removed. Drop references to it.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Andreas Bie?mann <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/1b516e1b/attachment.sig>
PATCH 11/12 Drop references to CONFIG_SYS_GENERIC_BOARD in config files
In reply to Simon GlassThis option is no longer used so need not be enabled.
---
arch/sh/include/asm/config.h | 2 -- include/configs/gr_cpci_ax2000.h | 1 - include/configs/gr_ep2s60.h | 1 - include/configs/gr_xc3s_1500.h | 1 - include/configs/grsim.h | 1 - include/configs/grsim_leon2.h | 1 - include/configs/openrisc-generic.h | 2 -- 7 files changed, 9 deletions(-)
arch/sh/include/asm/config.h +0 -2
@@ -7,6 +7,4 @@#ifndef _ASM_CONFIG_H_#define _ASM_CONFIG_H_ -#define CONFIG_SYS_GENERIC_BOARD -#endif
include/configs/gr_cpci_ax2000.h +0 -1
@@ -14,7 +14,6 @@#ifndef __CONFIG_H__#define __CONFIG_H__ -#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_DISPLAY_BOARDINFO /*
include/configs/gr_ep2s60.h +0 -1
@@ -15,7 +15,6 @@#ifndef __CONFIG_H__#define __CONFIG_H__ -#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_DISPLAY_BOARDINFO /*
include/configs/gr_xc3s_1500.h +0 -1
@@ -13,7 +13,6 @@#ifndef __CONFIG_H__#define __CONFIG_H__ -#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_DISPLAY_BOARDINFO /*
include/configs/grsim.h +0 -1
@@ -13,7 +13,6 @@#ifndef __CONFIG_H__#define __CONFIG_H__ -#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_DISPLAY_BOARDINFO /*
include/configs/grsim_leon2.h +0 -1
@@ -12,7 +12,6 @@#ifndef __CONFIG_H__#define __CONFIG_H__ -#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_DISPLAY_BOARDINFO /*
include/configs/openrisc-generic.h +0 -2
@@ -10,8 +10,6 @@/* * BOARD/CPU */ -#define CONFIG_SYS_GENERIC_BOARD -#define CONFIG_SYS_CLK_FREQ 50000000#define CONFIG_SYS_RESET_ADDR 0x00000100
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 11/12 Drop references to CONFIG_SYS_GENERIC_BOARD in config files
Quoted 3 lines · Simon Glass
This option is no longer used so need not be enabled.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/f6d5edfb/attachment.sig>
PATCH 12/12 Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options
In reply to Simon GlassThese are no longer used. The migration is complete. Drop these options.
---
arch/Kconfig | 32 -------------------------------- 1 file changed, 32 deletions(-)
arch/Kconfig +0 -32
@@ -1,13 +1,6 @@ config CREATE_ARCH_SYMLINK bool -config HAVE_GENERIC_BOARD - bool - -config SYS_GENERIC_BOARD - bool - depends on HAVE_GENERIC_BOARD - choice prompt "Architecture select" default SANDBOX
@@ -15,57 +8,39 @@ choice config ARC bool "ARC architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config ARM bool "ARM architecture" select CREATE_ARCH_SYMLINK select HAVE_PRIVATE_LIBGCC if !ARM64 - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config AVR32 bool "AVR32 architecture" select CREATE_ARCH_SYMLINK - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config BLACKFIN bool "Blackfin architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config M68K bool "M68000 architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config MICROBLAZE bool "MicroBlaze architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config MIPS bool "MIPS architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config NDS32 bool "NDS32 architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config NIOS2 bool "Nios II architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select OF_CONTROL select DM
@@ -77,14 +52,10 @@ config OPENRISC config PPC bool "PowerPC architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config SANDBOX bool "Sandbox" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select DM select DM_SPI_FLASH
@@ -99,15 +70,12 @@ config SH config SPARC bool "SPARC architecture" - select HAVE_GENERIC_BOARD select CREATE_ARCH_SYMLINK config X86 bool "x86 architecture" select CREATE_ARCH_SYMLINK select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select DM select DM_SERIAL
Signature · 1 line
2.8.0.rc3.226.g39d4020
PATCH 12/12 Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options
Quoted 7 lines · Simon Glass
These are no longer used. The migration is complete. Drop these options.
Signed-off-by Simon Glass <[email protected]>---
arch/Kconfig | 32 -------------------------------- 1 file changed, 32 deletions(-)
PATCH 12/12 Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options
In reply to Simon GlassQuoted 4 lines · Simon Glass
These are no longer used. The migration is complete. Drop these options.
Signed-off-by Simon Glass <[email protected]>
Quoted 112 lines
---
arch/Kconfig | 32 -------------------------------- 1 file changed, 32 deletions(-)arch/Kconfig +0
-32@@ -1,13 +1,6 @@ config CREATE_ARCH_SYMLINK bool -config HAVE_GENERIC_BOARD - bool - -config SYS_GENERIC_BOARD - bool - depends on HAVE_GENERIC_BOARD - choice prompt "Architecture select" default SANDBOX@@ -15,57 +8,39 @@ choice config ARC bool "ARC architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config ARM bool "ARM architecture" select CREATE_ARCH_SYMLINK select HAVE_PRIVATE_LIBGCC if !ARM64 - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config AVR32 bool "AVR32 architecture" select CREATE_ARCH_SYMLINK - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config BLACKFIN bool "Blackfin architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config M68K bool "M68000 architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config MICROBLAZE bool "MicroBlaze architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config MIPS bool "MIPS architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config NDS32 bool "NDS32 architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD config NIOS2 bool "Nios II architecture" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select OF_CONTROL select DM@@ -77,14 +52,10 @@ config OPENRISC config PPC bool "PowerPC architecture" select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL config SANDBOX bool "Sandbox" - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select DM select DM_SPI_FLASH@@ -99,15 +70,12 @@ config SH config SPARC bool "SPARC architecture" - select HAVE_GENERIC_BOARD select CREATE_ARCH_SYMLINK config X86 bool "x86 architecture" select CREATE_ARCH_SYMLINK select HAVE_PRIVATE_LIBGCC - select HAVE_GENERIC_BOARD - select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL select DM select DM_SERIAL
PATCH 12/12 Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options
In reply to Simon GlassQuoted 5 lines · Simon Glass
These are no longer used. The migration is complete. Drop these options.
Signed-off-by Simon Glass <[email protected]>Acked-by Andreas Bie?mann <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/37dc19d5/attachment.sig>