
Dear Henrik Nordström,
In message 1353842534.17518.10.camel@home.hno.se you wrote:
This change makes CONFIG_SYS_BOARD_NAME globally available as the configured target name, avoiding the need to define manually for boards having multiple targets sharing the same board implementation.
include/config_fallbacks.h | 4 ++++ mkconfig | 1 + 2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index bfb9680..a1b2b54 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -26,4 +26,8 @@ #define CONFIG_EXT4_WRITE #endif
+#ifndef CONFIG_SYS_BOARD_NAME +#define CONFIG_SYS_BOARD_NAME CONFIG_SYS_TARGET +#endif
#endif /* __CONFIG_FALLBACKS_H */ diff --git a/mkconfig b/mkconfig index 7c9aa74..ddce037 100755 --- a/mkconfig +++ b/mkconfig @@ -173,6 +173,7 @@ done echo "#define CONFIG_SYS_ARCH "${arch}"" >> config.h echo "#define CONFIG_SYS_CPU "${cpu}"" >> config.h echo "#define CONFIG_SYS_BOARD "${board}"" >> config.h +echo "#define CONFIG_SYS_TARGET "${BOARD_NAME}"" >> config.h
I don't see what the difference is between CONFIG_SYS_BOARD (which is the board name) and CONFIG_SYS_BOARD_NAME ?
In any case, documentation for CONFIG_SYS_BOARD_NAME is missing.
Best regards,
Wolfgang Denk