From 7a6f1b219ccaab91676aeddea63db043cf2387c9 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 19 Feb 2022 07:29:21 +0000 Subject: [PATCH 1/2] tools/viewconfig: include adjustments to cflags made by toolchain setup Signed-off-by: Ian Leonard --- tools/viewconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/viewconfig b/tools/viewconfig index 9bcecf63c3..bfb0f4a1be 100755 --- a/tools/viewconfig +++ b/tools/viewconfig @@ -6,4 +6,7 @@ . config/options "" . config/show_config +# Needed to obtain some CFLAGS/LDFLAGS +setup_toolchain target + show_config From 41d833c2aafb7640c5d6d51cf0424731e64a6fb0 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 19 Feb 2022 07:30:16 +0000 Subject: [PATCH 2/2] scripts/image: include adjustments to cflags made by toolchain setup Signed-off-by: Ian Leonard --- scripts/image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/image b/scripts/image index aa8bdc1634..f4e54394e6 100755 --- a/scripts/image +++ b/scripts/image @@ -19,8 +19,6 @@ if [ "${BOOTLOADER}" = "u-boot" -a -n "${DEVICE}" ]; then fi fi -show_config - ${SCRIPTS}/checkdeps # Setup both toolchain cmake configs to avoid potentially racy behaviour later. @@ -28,6 +26,8 @@ ${SCRIPTS}/checkdeps ( setup_toolchain host ) setup_toolchain target +show_config + function do_mkimage() { # Variables used in mkimage script must be passed env \