[meta-ti] [PATCH] amx3-cm3: Fix building with poky-lsb
Tom Rini
trini at konsulko.com
Fri Aug 31 08:54:34 PDT 2018
One of the features of poky-lsb is that it brings in the
security_flags.inc file that sets a number of security-related compile
time flags. This includes changing some of the default GCC build
options. However, for building the amx3-cm3 firmware we want to ensure
that none of this enabled as it's not useful in this particular
environment. We must pass in ${SECURITY_NOPIE_CFLAGS} to disable PIE.
When security_flags.inc is not present this is an empty string so is
safe to do at all times.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
If acceptable I would appreciate this being applied to the rocko branch
as well. Thanks!
---
recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb b/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb
index 5a2b08bbe985..1dcc021c0445 100644
--- a/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb
+++ b/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb
@@ -16,7 +16,7 @@ S = "${WORKDIR}/git"
FLOATABI = "${@bb.utils.contains("TUNE_FEATURES", "vfp", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"
do_compile() {
- make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}"
+ make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI} ${SECURITY_NOPIE_CFLAGS}"
}
do_install() {
--
2.7.4
More information about the meta-ti
mailing list