]> code.ossystems Code Review - openembedded-core.git/commitdiff
rt-tests: rationalise compiler flags
authorRoss Burton <ross.burton@intel.com>
Mon, 25 Jul 2016 20:03:38 +0000 (21:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Jul 2016 07:56:07 +0000 (08:56 +0100)
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-rt/rt-tests/rt-tests.inc
meta/recipes-rt/rt-tests/rt-tests_2.0.bb

index fd6500bfad16ab38704369d756bda9dda9a654a0..d832828e978dd76b429ce10ed0ae973a939ee262 100644 (file)
@@ -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"
index 83869b89b8387c283d48863027841a1a9d888b52..4336c50d6313c6613bdcf6a36dbe269f55ba294b 100644 (file)
@@ -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} \