rt-tests: rationalise compiler flags
This recipe uses some convoluted methods to ensure the build is using the right flags but they don't appear to be needed anymore. No need to prepend HOST_CC_ARCH/TOOLCHAIN_OPTIONS via CFLAGS as the Makefile picks up CC from the environment and that includes these options. No need to append the default CFLAGS as their special options are actually in CPPFLAGS. (From OE-Core rev: 2230e5f7bf7e6dc747ada74477d5a72905d8d80b) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3ec9a621d0
commit
87678bbdc8
|
@ -5,8 +5,5 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git"
|
|||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# need to append rt-tests' default CFLAGS to ours
|
||||
CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnull"
|
||||
|
||||
# calling 'uname -m' is broken on crossbuilds
|
||||
EXTRA_OEMAKE = "NUMA=0"
|
||||
|
|
|
@ -15,9 +15,7 @@ SRC_URI += " \
|
|||
file://rt_bmark.py \
|
||||
"
|
||||
# Do not install hwlatdetect
|
||||
EXTRA_OEMAKE += "PYLIB='' CROSS_COMPILE=${TARGET_PREFIX}"
|
||||
|
||||
CFLAGS_prepend = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
|
||||
EXTRA_OEMAKE += "PYLIB=''"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \
|
||||
|
|
Loading…
Reference in New Issue