[OE-core] [PATCH 12/16] waf.bbclass: support do patch on extracted files
Hongxu Jia
hongxu.jia at windriver.com
Tue Mar 22 12:12:40 UTC 2016
Along with do_unpack, run './waf --help' to do the self extract,
so we could do patch on the extracted files later.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/classes/waf.bbclass | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index 5e55833..a36bdd4 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -23,8 +23,17 @@ def get_waf_parallel_make(d):
return ""
+do_unpack[postfuncs] += "unpack_waf"
+do_unpack[vardeps] += "unpack_waf"
+unpack_waf() {
+ # Just self extract tarball embedded in waf, do not care help message.
+ # Do not generate bytecode, becuase we may need to patch python file
+ # later
+ PYTHONDONTWRITEBYTECODE=True ./waf --help >/dev/null
+}
+
waf_do_configure() {
- ${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF}
+ ${CACHED_CONFIGUREVARS} ${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF}
}
waf_do_compile() {
--
1.9.1
More information about the Openembedded-core
mailing list