image: push default arch values to arch headers
Subsystems (9)
PATCH 1/1 image: push default arch values to arch headers
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
--- arch/arm/include/asm/u-boot.h | 3 ++ arch/avr32/include/asm/u-boot.h | 3 ++ arch/blackfin/include/asm/u-boot.h | 3 ++ arch/m68k/include/asm/u-boot.h | 3 ++ arch/microblaze/include/asm/u-boot.h | 2 + arch/mips/include/asm/u-boot.h | 3 ++ arch/nios2/include/asm/u-boot.h | 2 + arch/powerpc/include/asm/u-boot.h | 4 ++ arch/sh/include/asm/u-boot.h | 3 ++ arch/sparc/include/asm/u-boot.h | 4 ++ arch/x86/include/asm/u-boot.h | 3 ++ common/cmd_bootm.c | 26 +-------------- include/image.h | 58 +-------------------------------- 13 files changed, 36 insertions(+), 81 deletions(-)
arch/arm/include/asm/u-boot.h +3 -0
@@ -48,4 +48,7 @@ typedef struct bd_info { } bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_ARM +#endif /* _U_BOOT_H_ */
arch/avr32/include/asm/u-boot.h +3 -0
@@ -40,4 +40,7 @@ typedef struct bd_info {#define bi_memstart bi_dram[0].start#define bi_memsize bi_dram[0].size +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_AVR32 +#endif /* __ASM_U_BOOT_H__ */
arch/blackfin/include/asm/u-boot.h +3 -0
@@ -45,4 +45,7 @@ typedef struct bd_info { unsigned long bi_sclk; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_BLACKFIN +#endif /* _U_BOOT_H_ */
arch/m68k/include/asm/u-boot.h +3 -0
@@ -64,4 +64,7 @@ typedef struct bd_info {#endif /* __ASSEMBLY__ */ +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_M68K +#endif /* __U_BOOT_H__ */
arch/microblaze/include/asm/u-boot.h +2 -0
@@ -44,5 +44,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MICROBLAZE#endif /* _U_BOOT_H_ */
arch/mips/include/asm/u-boot.h +3 -0
@@ -43,4 +43,7 @@ typedef struct bd_info { unsigned long bi_flashoffset; /* reserved area for startup monitor */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MIPS +#endif /* _U_BOOT_H_ */
arch/nios2/include/asm/u-boot.h +2 -0
@@ -43,5 +43,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_NIOS2#endif /* __ASM_NIOS2_U_BOOT_H_ */
arch/powerpc/include/asm/u-boot.h +4 -0
@@ -143,4 +143,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_PPC +#endif /* __U_BOOT_H__ */
arch/sh/include/asm/u-boot.h +3 -0
@@ -38,4 +38,7 @@ typedef struct bd_info { unsigned long bi_boot_params; /* where this board expects params */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SH +#endif
arch/sparc/include/asm/u-boot.h +4 -0
@@ -59,4 +59,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SPARC +#endif /* __U_BOOT_H__ */
arch/x86/include/asm/u-boot.h +3 -0
@@ -58,4 +58,7 @@ typedef struct bd_info { }bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_I386 +#endif /* _U_BOOT_H_ */
common/cmd_bootm.c +1 -25
@@ -165,31 +165,7 @@ void __arch_preboot_os(void) }void arch_preboot_os (void ) __attribute__((weak,alias ("__arch_preboot_os" ))); -#if defined(__ARM__) -#define IH_INITRD_ARCH IH_ARCH_ARM -#elif defined(__avr32__) -#define IH_INITRD_ARCH IH_ARCH_AVR32 -#elif defined(__bfin__) -#define IH_INITRD_ARCH IH_ARCH_BLACKFIN -#elif defined(__I386__) -#define IH_INITRD_ARCH IH_ARCH_I386 -#elif defined(__M68K__) -#define IH_INITRD_ARCH IH_ARCH_M68K -#elif defined(__microblaze__) -#define IH_INITRD_ARCH IH_ARCH_MICROBLAZE -#elif defined(__mips__) -#define IH_INITRD_ARCH IH_ARCH_MIPS -#elif defined(__nios2__) -#define IH_INITRD_ARCH IH_ARCH_NIOS2 -#elif defined(__PPC__) -#define IH_INITRD_ARCH IH_ARCH_PPC -#elif defined(__sh__) -#define IH_INITRD_ARCH IH_ARCH_SH -#elif defined(__sparc__) -#define IH_INITRD_ARCH IH_ARCH_SPARC -#else -# error Unknown CPU type -#endif +#define IH_INITRD_ARCH IH_ARCH_DEFAULTstatic void bootm_start_lmb (void ) {
include/image.h +2 -56
70 lines not on this page · raw message
Signature · 1 line
1.7.6.1
PATCH 1/1 image: push default arch values to arch headers
Dear Mike Frysinger,
Quoted 2 lines · In message <[email protected]> you wrote:
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
I appreciate this change in general, but ...
...
include/image.h void fit_conf_print (const void *fit, int noffset, const char *p); · line 612
Quoted 7 lines
include/image.h +1
-6-#else -# error Unknown CPU type -#endif -return 0 ; - -return 1 ; + return !fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT));
...here you change a compile time error check into a runtim error.
Please fix this.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Ahead warp factor 1" - Captain Kirk
PATCH 1/1 image: push default arch values to arch headers
Quoted 8 lines · On Monday, September 26, 2011 02:08:51 Wolfgang Denk wrote:
Quoted 2 lines · Mike Frysinger
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
I appreciate this change in general, but ...
...
Quoted 9 lines
include/image.h void fit_conf_print (const void *fit, int noffset, const char *p); · line 612
Quoted 7 lines
include/image.h +1
-6-#else -# error Unknown CPU type -#endif -return 0 ; - -return 1 ; + return !fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT));...here you change a compile time error check into a runtim error.
no, it'll still be a build time error as IH_ARCH_DEFAULT will be undefined
it just might not be as clean an error ... gcc will complain about IH_ARCH_DEFAULT not being defined rather than a helpful "Unknown CPU type" message.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110926/b156156c/attachment.pgp
PATCH 1/1 image: push default arch values to arch headers
Dear Mike Frysinger,
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 2 lines
...here you change a compile time error check into a runtim error.
no, it'll still be a build time error as
IH_ARCH_DEFAULTwill be undefinedit just might not be as clean an error ... gcc will complain about
IH_ARCH_DEFAULTnot being defined rather than a helpful "Unknown CPU type"
Should it not be trivial to add a
#ifndef IH_ARCH_DEFAULT # error Unknown CPU type: IH_ARCH_DEFAULT not set #endif
or similar to include/image.h ?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Children are natural mimics who act like their parents despite every effort to teach them good manners.
PATCH 1/1 image: push default arch values to arch headers
Quoted 10 lines · On Monday, September 26, 2011 13:58:59 Wolfgang Denk wrote:
Quoted 8 lines · Mike Frysinger
Quoted 1 line
...here you change a compile time error check into a runtim error.
no, it'll still be a build time error as
IH_ARCH_DEFAULTwill be undefinedit just might not be as clean an error ... gcc will complain about
IH_ARCH_DEFAULTnot being defined rather than a helpful "Unknown CPU type"
Quoted 7 lines
Should it not be trivial to add a
#ifndef IH_ARCH_DEFAULT # error Unknown CPU type: IH_ARCH_DEFAULT not set #endifor similar to
include/image.h?
it'd certainly be easy to do. i just pointed out that you still get a build failure after my change :). so if you want the #error, i'll resend w/it. -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110926/9a1f3d90/attachment.pgp
PATCH 1/1 image: push default arch values to arch headers
Dear Mike Frysinger,
Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 8 lines
Should it not be trivial to add a
#ifndef IH_ARCH_DEFAULT # error Unknown CPU type: IH_ARCH_DEFAULT not set #endifor similar to
include/image.h?it'd certainly be easy to do. i just pointed out that you still get a build failure after my change :). so if you want the #error, i'll resend w/it.
Yes, please do. I think it's easier to decode for most people.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Whoever undertakes to set himself up as a judge of Truth and Know- ledge is shipwrecked by the laughter of the gods." - Albert Einstein
PATCH v2 1/1 image: push default arch values to arch headers
In reply to Mike FrysingerThis pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
---
v2
- add a friendly #error when the define is missing
arch/arm/include/asm/u-boot.h | 3 ++ arch/avr32/include/asm/u-boot.h | 3 ++ arch/blackfin/include/asm/u-boot.h | 3 ++ arch/m68k/include/asm/u-boot.h | 3 ++ arch/microblaze/include/asm/u-boot.h | 2 + arch/mips/include/asm/u-boot.h | 3 ++ arch/nios2/include/asm/u-boot.h | 2 + arch/powerpc/include/asm/u-boot.h | 4 ++ arch/sh/include/asm/u-boot.h | 3 ++ arch/sparc/include/asm/u-boot.h | 4 ++ arch/x86/include/asm/u-boot.h | 3 ++ common/cmd_bootm.c | 26 +-------------- include/image.h | 59 ++------------------------------- 13 files changed, 38 insertions(+), 80 deletions(-)
arch/arm/include/asm/u-boot.h +3 -0
@@ -48,4 +48,7 @@ typedef struct bd_info { } bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_ARM +#endif /* _U_BOOT_H_ */
arch/avr32/include/asm/u-boot.h +3 -0
@@ -40,4 +40,7 @@ typedef struct bd_info {#define bi_memstart bi_dram[0].start#define bi_memsize bi_dram[0].size +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_AVR32 +#endif /* __ASM_U_BOOT_H__ */
arch/blackfin/include/asm/u-boot.h +3 -0
@@ -45,4 +45,7 @@ typedef struct bd_info { unsigned long bi_sclk; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_BLACKFIN +#endif /* _U_BOOT_H_ */
arch/m68k/include/asm/u-boot.h +3 -0
@@ -64,4 +64,7 @@ typedef struct bd_info {#endif /* __ASSEMBLY__ */ +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_M68K +#endif /* __U_BOOT_H__ */
arch/microblaze/include/asm/u-boot.h +2 -0
@@ -44,5 +44,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MICROBLAZE#endif /* _U_BOOT_H_ */
arch/mips/include/asm/u-boot.h +3 -0
@@ -43,4 +43,7 @@ typedef struct bd_info { unsigned long bi_flashoffset; /* reserved area for startup monitor */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MIPS +#endif /* _U_BOOT_H_ */
arch/nios2/include/asm/u-boot.h +2 -0
@@ -43,5 +43,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_NIOS2#endif /* __ASM_NIOS2_U_BOOT_H_ */
arch/powerpc/include/asm/u-boot.h +4 -0
@@ -143,4 +143,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_PPC +#endif /* __U_BOOT_H__ */
arch/sh/include/asm/u-boot.h +3 -0
@@ -38,4 +38,7 @@ typedef struct bd_info { unsigned long bi_boot_params; /* where this board expects params */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SH +#endif
arch/sparc/include/asm/u-boot.h +4 -0
@@ -59,4 +59,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SPARC +#endif /* __U_BOOT_H__ */
arch/x86/include/asm/u-boot.h +3 -0
@@ -58,4 +58,7 @@ typedef struct bd_info { }bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_I386 +#endif /* _U_BOOT_H_ */
common/cmd_bootm.c +1 -25
@@ -165,31 +165,7 @@ void __arch_preboot_os(void) }void arch_preboot_os (void ) __attribute__((weak,alias ("__arch_preboot_os" ))); -#if defined(__ARM__) -#define IH_INITRD_ARCH IH_ARCH_ARM -#elif defined(__avr32__) -#define IH_INITRD_ARCH IH_ARCH_AVR32 -#elif defined(__bfin__) -#define IH_INITRD_ARCH IH_ARCH_BLACKFIN -#elif defined(__I386__) -#define IH_INITRD_ARCH IH_ARCH_I386 -#elif defined(__M68K__) -#define IH_INITRD_ARCH IH_ARCH_M68K -#elif defined(__microblaze__) -#define IH_INITRD_ARCH IH_ARCH_MICROBLAZE -#elif defined(__mips__) -#define IH_INITRD_ARCH IH_ARCH_MIPS -#elif defined(__nios2__) -#define IH_INITRD_ARCH IH_ARCH_NIOS2 -#elif defined(__PPC__) -#define IH_INITRD_ARCH IH_ARCH_PPC -#elif defined(__sh__) -#define IH_INITRD_ARCH IH_ARCH_SH -#elif defined(__sparc__) -#define IH_INITRD_ARCH IH_ARCH_SPARC -#else -# error Unknown CPU type -#endif +#define IH_INITRD_ARCH IH_ARCH_DEFAULTstatic void bootm_start_lmb (void ) {
include/image.h +4 -55
72 lines not on this page · raw message
Signature · 1 line
1.7.6.1
PATCH v2 1/1 image: push default arch values to arch headers
Hi Mike,
Quoted 7 lines · Mike Frysinger
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
Signed-off-by Mike Frysinger<[email protected]>---
v2
- add a friendly #error when the define is missing
Compiled and tested on nios2 boards using gcc4 and gcc3 with McNutt's "Add missing header for gcc3" patch applied. Thanks.
Best regards,
Thomas
PATCH v3 1/1 image: push default arch values to arch headers
In reply to Mike FrysingerThis pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
---
v3
- fix typo in fdt-specific code path
arch/arm/include/asm/u-boot.h | 3 ++ arch/avr32/include/asm/u-boot.h | 3 ++ arch/blackfin/include/asm/u-boot.h | 3 ++ arch/m68k/include/asm/u-boot.h | 3 ++ arch/microblaze/include/asm/u-boot.h | 2 + arch/mips/include/asm/u-boot.h | 3 ++ arch/nios2/include/asm/u-boot.h | 2 + arch/powerpc/include/asm/u-boot.h | 4 ++ arch/sh/include/asm/u-boot.h | 3 ++ arch/sparc/include/asm/u-boot.h | 4 ++ arch/x86/include/asm/u-boot.h | 3 ++ common/cmd_bootm.c | 26 +-------------- include/image.h | 59 ++------------------------------- 13 files changed, 38 insertions(+), 80 deletions(-)
arch/arm/include/asm/u-boot.h +3 -0
@@ -48,4 +48,7 @@ typedef struct bd_info { } bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_ARM +#endif /* _U_BOOT_H_ */
arch/avr32/include/asm/u-boot.h +3 -0
@@ -40,4 +40,7 @@ typedef struct bd_info {#define bi_memstart bi_dram[0].start#define bi_memsize bi_dram[0].size +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_AVR32 +#endif /* __ASM_U_BOOT_H__ */
arch/blackfin/include/asm/u-boot.h +3 -0
@@ -45,4 +45,7 @@ typedef struct bd_info { unsigned long bi_sclk; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_BLACKFIN +#endif /* _U_BOOT_H_ */
arch/m68k/include/asm/u-boot.h +3 -0
@@ -64,4 +64,7 @@ typedef struct bd_info {#endif /* __ASSEMBLY__ */ +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_M68K +#endif /* __U_BOOT_H__ */
arch/microblaze/include/asm/u-boot.h +2 -0
@@ -44,5 +44,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MICROBLAZE#endif /* _U_BOOT_H_ */
arch/mips/include/asm/u-boot.h +3 -0
@@ -43,4 +43,7 @@ typedef struct bd_info { unsigned long bi_flashoffset; /* reserved area for startup monitor */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_MIPS +#endif /* _U_BOOT_H_ */
arch/nios2/include/asm/u-boot.h +2 -0
@@ -43,5 +43,7 @@ typedef struct bd_info { unsigned long bi_baudrate; /* Console Baudrate */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_NIOS2#endif /* __ASM_NIOS2_U_BOOT_H_ */
arch/powerpc/include/asm/u-boot.h +4 -0
@@ -143,4 +143,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_PPC +#endif /* __U_BOOT_H__ */
arch/sh/include/asm/u-boot.h +3 -0
@@ -38,4 +38,7 @@ typedef struct bd_info { unsigned long bi_boot_params; /* where this board expects params */ } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SH +#endif
arch/sparc/include/asm/u-boot.h +4 -0
@@ -59,4 +59,8 @@ typedef struct bd_info { } bd_t;#endif /* __ASSEMBLY__ */ + +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_SPARC +#endif /* __U_BOOT_H__ */
arch/x86/include/asm/u-boot.h +3 -0
@@ -58,4 +58,7 @@ typedef struct bd_info { }bi_dram[CONFIG_NR_DRAM_BANKS]; } bd_t; +/* For image.h:image_check_target_arch() */ +#define IH_ARCH_DEFAULT IH_ARCH_I386 +#endif /* _U_BOOT_H_ */
common/cmd_bootm.c +1 -25
@@ -165,31 +165,7 @@ void __arch_preboot_os(void) }void arch_preboot_os (void ) __attribute__((weak,alias ("__arch_preboot_os" ))); -#if defined(__ARM__) -#define IH_INITRD_ARCH IH_ARCH_ARM -#elif defined(__avr32__) -#define IH_INITRD_ARCH IH_ARCH_AVR32 -#elif defined(__bfin__) -#define IH_INITRD_ARCH IH_ARCH_BLACKFIN -#elif defined(__I386__) -#define IH_INITRD_ARCH IH_ARCH_I386 -#elif defined(__M68K__) -#define IH_INITRD_ARCH IH_ARCH_M68K -#elif defined(__microblaze__) -#define IH_INITRD_ARCH IH_ARCH_MICROBLAZE -#elif defined(__mips__) -#define IH_INITRD_ARCH IH_ARCH_MIPS -#elif defined(__nios2__) -#define IH_INITRD_ARCH IH_ARCH_NIOS2 -#elif defined(__PPC__) -#define IH_INITRD_ARCH IH_ARCH_PPC -#elif defined(__sh__) -#define IH_INITRD_ARCH IH_ARCH_SH -#elif defined(__sparc__) -#define IH_INITRD_ARCH IH_ARCH_SPARC -#else -# error Unknown CPU type -#endif +#define IH_INITRD_ARCH IH_ARCH_DEFAULTstatic void bootm_start_lmb (void ) {
include/image.h +4 -55
72 lines not on this page · raw message
Signature · 1 line
1.7.6.1
Wolfgang Denk
AppliedPATCH v3 1/1 image: push default arch values to arch headers
Dear Mike Frysinger,
Quoted 10 lines · In message <[email protected]> you wrote:
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves.
Tested-by Thomas Chou <[email protected]>Signed-off-by Mike Frysinger <[email protected]>---
v3
- fix typo in fdt-specific code path
Quoted 14 lines
arch/arm/include/asm/u-boot.h | 3 ++ arch/avr32/include/asm/u-boot.h | 3 ++ arch/blackfin/include/asm/u-boot.h | 3 ++ arch/m68k/include/asm/u-boot.h | 3 ++ arch/microblaze/include/asm/u-boot.h | 2 + arch/mips/include/asm/u-boot.h | 3 ++ arch/nios2/include/asm/u-boot.h | 2 + arch/powerpc/include/asm/u-boot.h | 4 ++ arch/sh/include/asm/u-boot.h | 3 ++ arch/sparc/include/asm/u-boot.h | 4 ++ arch/x86/include/asm/u-boot.h | 3 ++ common/cmd_bootm.c | 26 +-------------- include/image.h | 59 ++------------------------------- 13 files changed, 38 insertions(+), 80 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The greatest threat towards future is indifference.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Wolfgang Denk
AppliedPATCH 1/1 MAKEALL: rename coldfire list to m68k to match arch
Dear Mike Frysinger,
Quoted 9 lines · In message <[email protected]> you wrote:
The m68k tree is the only one where
./MAKEALL <arch>does not work. So rename the existing coldfire list in the MAKEALL script to m68k, and add an alias from coldfire to m68k. This makes scripting around MAKEALL easier.Signed-off-by Mike Frysinger <[email protected]>--- MAKEALL | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de We are all agreed that your theory is crazy. The question which divides us is whether it is crazy enough to have a chance of being correct. My own feeling is that it is not crazy enough. - Niels Bohr