summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2013-02-10 19:55:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-30 20:59:11 +0100
commitf81b8fc920f619130624d5f98a86aa58419371a5 (patch)
treebb30ac4d4860303fbb33008382e0e95681eb211e /meta/recipes-bsp
parent88744907b2219fa5e36070cc4f69748a25400f57 (diff)
downloadpoky-f81b8fc920f619130624d5f98a86aa58419371a5.tar.gz
acpid: modify CFLAGS
Override the hard-coded CFLAGS used in Makefile to reference our CFLAGS. Without this patch if the DEBUG_OPTIMIZATION is enabled (using -O0) the compile log shows acpid still using -O2 because the Makefile has various hard coded CFLAGS defined. Instead of using the hard coded CFLAGS, we simply define the proper set within the recipe itself. (From OE-Core rev: 710e773b0677b75181506959492b37cf77a0951f) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Jeff Polk <jeff.polk@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/acpid/acpid.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
index 3c0219f83f..1ffe6ff480 100644
--- a/meta/recipes-bsp/acpid/acpid.inc
+++ b/meta/recipes-bsp/acpid/acpid.inc
@@ -13,7 +13,9 @@ inherit update-rc.d
13INITSCRIPT_NAME = "acpid" 13INITSCRIPT_NAME = "acpid"
14INITSCRIPT_PARAMS = "defaults" 14INITSCRIPT_PARAMS = "defaults"
15 15
16EXTRA_OEMAKE = "" 16# Makefile ignores our CFLAGS, so override it.
17#
18EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'"
17 19
18do_compile () { 20do_compile () {
19 oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}' 21 oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}'