summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2023-04-14 10:22:35 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-19 02:35:29 +0000
commita6e3fdfd2424c1f99b4ed3786895c2255a5be023 (patch)
tree3fc34f97080973fda14956503fd39f9493ba6c9c
parent090aa4131649f4a1b32e65874691fd48e3207d5f (diff)
downloadvboot-stabilize-15429.B.tar.gz
Makefile: Respect standard CPPFLAGSstabilize-15429.B
The Makefile should respect the standard compilation setting CPPFLAGS. For example, the cros-debug-add-NDEBUG function call in the ebuild needs that to work. BUG=none TEST=USE=cros-debug emerge-corsola vboot_reference TEST=USE=-cros-debug emerge-corsola vboot_reference BRANCH=none Change-Id: I9b3a404983b5db81fe401ef243de357c55f478b3 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4426377 Commit-Queue: Julius Werner <jwerner@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dbee27f7..846e05a6 100644
--- a/Makefile
+++ b/Makefile
@@ -131,7 +131,7 @@ COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \
-Wundef -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls -Wshadow \
-Wwrite-strings -Wstrict-aliasing -Wdate-time \
-ffunction-sections -fdata-sections \
- -Wformat -Wno-format-security ${DEBUG_FLAGS}
+ -Wformat -Wno-format-security ${DEBUG_FLAGS} ${CPPFLAGS}
# FIRMWARE_ARCH is defined if compiling for a firmware target
# (coreboot or depthcharge).