1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-06 19:00:49 +00:00

amx3-cm3: Fix building with poky-lsb

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@konsulko.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Tom Rini
2018-08-31 21:54:34 +00:00
committed by Denys Dmytriyenko
parent af1e5cd2cc
commit c3a06e4070
+1 -1
View File
@@ -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() {