]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km/common: change ubicopy variable
authorHolger Brunck <holger.brunck@hitachi-powergrids.com>
Fri, 9 Oct 2020 15:21:33 +0000 (17:21 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 15:26:08 +0000 (11:26 -0400)
Instead having a hard coded value for "cramfsaddr" after compile time,
we change it to take the variable "cramfsaddr" for the ubicopy variable.
This makes sure that ubicopy uses the right address, even when
the value for "cramfsaddr" has changed.

CC: Valentin Longchamp <valentin.longchamp@hitachi-powergrids.com>
CC: Heiko Schocher <hs@denx.de>
CC: Tom Rini <trini@konsulko.com>
Signed-off-by: Holger Brunck <holger.brunck@hitachi-powergrids.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
include/configs/km/keymile-common.h

index 6a8c41529f5bcede41c4c7e452b7ecfd1e21763e..c1968048a7da119bd2b74966a5761e552e2c06ae 100644 (file)
 #define CONFIG_KM_DEF_ENV_FLASH_BOOT                                   \
        "cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0"           \
        "cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0"        \
-       "ubicopy=ubi read "__stringify(CONFIG_KM_CRAMFS_ADDR)           \
-                       " bootfs${boot_bank}\0"                         \
+       "ubicopy=ubi read ${cramfsaddr} bootfs${boot_bank}\0"           \
        "uimage=" CONFIG_KM_UIMAGE_NAME                                 \
        CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI