aboutsummaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-01-23 22:53:12 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-24 22:08:42 +0000
commite9b21f586980f6d4fbb213845f5e788b6c8d3813 (patch)
tree2e61fa35f0d398c487c7a047663fe7efbc155701 /meta/conf
parent1d903485da26fec991b4a940182e32934220e19b (diff)
downloadopenembedded-core-contrib-e9b21f586980f6d4fbb213845f5e788b6c8d3813.tar.gz
openembedded-core-contrib-e9b21f586980f6d4fbb213845f5e788b6c8d3813.tar.bz2
openembedded-core-contrib-e9b21f586980f6d4fbb213845f5e788b6c8d3813.zip
bitbake.conf: Add DEBUG_BUILD to vardeps
Otherwise the recipe would not be rebuilt when enable/disable DEBUG_BUILD. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/bitbake.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 4ee14c68bf5..ab00ac2f068 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -609,8 +609,9 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}"
-SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION"
+SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD"
BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe"
+BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD"
##################################################################
# Settings used by bitbake-layers.