From 4a6e95457beb948f9bc1470bcf053703be5596f7 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Fri, 9 Sep 2016 14:53:43 +0200 Subject: [PATCH] Use MK_STR for CONFIG_BOARD_CUSTOM_STRING --- u-boot/Makefile | 2 +- u-boot/board/ar7240/common/common.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/u-boot/Makefile b/u-boot/Makefile index 61ef56c..4425509 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -192,7 +192,7 @@ define config_init $(call define_add,SOC_TYPE,$(6)) \ ) - $(call define_add,CONFIG_BOARD_CUSTOM_STRING,"$(call board_name,$(1))") + $(call define_add,CONFIG_BOARD_CUSTOM_STRING,$(call board_name,$(1))) $(call define_add,CONFIG_DEFAULT_FLASH_SIZE_IN_MB,$(call flash_size,$(3))) echo diff --git a/u-boot/board/ar7240/common/common.c b/u-boot/board/ar7240/common/common.c index d4f2c54..d69af94 100644 --- a/u-boot/board/ar7240/common/common.c +++ b/u-boot/board/ar7240/common/common.c @@ -16,10 +16,6 @@ #include #include -#ifndef CONFIG_BOARD_CUSTOM_STRING - #define CONFIG_BOARD_CUSTOM_STRING "Unknown/OEM" -#endif - #define ALIGN_SIZE "8" DECLARE_GLOBAL_DATA_PTR; @@ -94,7 +90,8 @@ void print_board_info(void) char buffer[24]; /* Board name */ - printf("%" ALIGN_SIZE "s %s\n", "BOARD:", CONFIG_BOARD_CUSTOM_STRING); + printf("%" ALIGN_SIZE "s %s\n", + "BOARD:", MK_STR(CONFIG_BOARD_CUSTOM_STRING)); /* SOC name, version and revision */ qca_soc_name_rev(buffer); -- 2.25.1