mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
nodejs: use a postfunc to prune source tree
Instead of overriding do_unpack entirely and calling into base_do_unpack, use a postfunc. This keeps the prune logic separated neatly. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -89,10 +89,9 @@ EXTRA_OEMAKE = "\
|
|||||||
builddir_name=./ \
|
builddir_name=./ \
|
||||||
"
|
"
|
||||||
|
|
||||||
python do_unpack() {
|
python prune_sources() {
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
bb.build.exec_func('base_do_unpack', d)
|
|
||||||
shutil.rmtree(d.getVar('S') + '/deps/openssl')
|
shutil.rmtree(d.getVar('S') + '/deps/openssl')
|
||||||
if 'ares' in d.getVar('PACKAGECONFIG'):
|
if 'ares' in d.getVar('PACKAGECONFIG'):
|
||||||
shutil.rmtree(d.getVar('S') + '/deps/cares')
|
shutil.rmtree(d.getVar('S') + '/deps/cares')
|
||||||
@@ -105,6 +104,7 @@ python do_unpack() {
|
|||||||
if 'zlib' in d.getVar('PACKAGECONFIG'):
|
if 'zlib' in d.getVar('PACKAGECONFIG'):
|
||||||
shutil.rmtree(d.getVar('S') + '/deps/zlib')
|
shutil.rmtree(d.getVar('S') + '/deps/zlib')
|
||||||
}
|
}
|
||||||
|
do_unpack[postfuncs] += "prune_sources"
|
||||||
|
|
||||||
# V8's JIT infrastructure requires binaries such as mksnapshot and
|
# V8's JIT infrastructure requires binaries such as mksnapshot and
|
||||||
# mkpeephole to be run in the host during the build. However, these
|
# mkpeephole to be run in the host during the build. However, these
|
||||||
|
|||||||
Reference in New Issue
Block a user