]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/binconfig.bbclass: Allow packages to add sed expressions
authorHolger Freyther <zecke@selfish.org>
Thu, 27 Dec 2007 11:46:52 +0000 (11:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 12:30:36 +0000 (12:30 +0000)
packages/apr/apr-util,apr use this, but it not been in the class

patch the config files to be 'installed' and not point to the build
and source-directory.

From OE-Classic:
http://git.openembedded.org/openembedded/commit/?id=030992bdd415c8892cf2925cf6fbe888226be046

[YOCTO #3267]

Orignal Author: Holger Freyther <zecke@selfish.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/binconfig.bbclass

index 60012c863d53533bcb32fc74136df90fed50f7aa..7b683a80fddbfd135e709eb952e13435d08ddf48 100644 (file)
@@ -19,6 +19,9 @@ def get_binconfig_mangle(d):
                s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
                s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
                s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
+               if bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d):
+                       s += bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d)
+
        return s
 
 BINCONFIG_GLOB ?= "*-config"