summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-06-23 14:49:16 -0600
committerTom Rini <[email protected]>2025-06-23 16:15:23 -0600
commit184e7d0bb211b8885f6715fdd6149ce96a4d1037 (patch)
tree271f9ebbfa6f0d2776054bbf07c396ebe1f663e8 /common/Makefile
parentdbf7fd557a73ded3141db3c2cf5c572989378825 (diff)
parentfb4a488eb91b089912ffbc9a74d0527f0f2c79ac (diff)
Merge tag 'v2025.07-rc5' into next
Prepare v2025.07-rc5 With this merge, tighten up the LTO_FLAGS removal we added to not trigger on ARMv7 (which is Thumb-2 and should be fine).
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 35991562a12..d62ea34599e 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -19,6 +19,12 @@ obj-y += version.o
# # boards
obj-y += board_f.o
obj-y += board_r.o
+ifdef CONFIG_$(PHASE_)SYS_THUMB_BUILD
+ifneq ($(CONFIG_SYS_ARM_ARCH),7)
+CFLAGS_REMOVE_board_f.o := $(LTO_CFLAGS)
+CFLAGS_REMOVE_board_r.o := $(LTO_CFLAGS)
+endif
+endif
obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o