diff options
author | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-03-31 14:09:20 +0200 |
---|---|---|
committer | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-03-31 14:10:03 +0200 |
commit | 3656c6b2a718609e0663d78e55a45ec11ccb7c03 (patch) | |
tree | f0aa7afa5cf7bc6439132ef3b52c358a913b3f64 | |
parent | 59e41f594b47570c7d59738c9c38eac42b4cd0d4 (diff) |
p7zip: add native build support
This is a host dependency to himeno benchmark recipe
Change-Id: Ibf0dcaa866d94e533fc43d5a84ca38fa3a08ea07
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
-rw-r--r-- | meta-ivi-common/recipes-extended/p7zip/p7zip_9.20.1.bbappend | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-ivi-common/recipes-extended/p7zip/p7zip_9.20.1.bbappend b/meta-ivi-common/recipes-extended/p7zip/p7zip_9.20.1.bbappend new file mode 100644 index 000000000..98a51a1e9 --- /dev/null +++ b/meta-ivi-common/recipes-extended/p7zip/p7zip_9.20.1.bbappend @@ -0,0 +1,22 @@ +# This bbappend is to implement native package built +# +# native support has been submitted upstream, and may land in meta-openembedded: +# http://lists.openembedded.org/pipermail/openembedded-devel/2016-March/106755.html + +# all3: to build bin/7za, bin/7z (with its plugins), bin/7zr and bin/7zCon.sfx +EXTRA_OEMAKE_class-native = "all3" + +do_install_class-native() { + install -d ${D}${bindir} + install -d ${D}${bindir}/Codecs + install -m 0755 ${S}/bin/7* ${D}${bindir} + install -m 0755 ${S}/bin/Codecs/* ${D}${bindir}/Codecs + + # Create a shell script wrapper to execute next to 7z.so + mv ${D}${bindir}/7z ${D}${bindir}/7z.bin + echo "#! /bin/sh" > ${D}${bindir}/7z + echo "exec ${D}${bindir}/7z.bin \"\$@\"" >> ${D}${bindir}/7z + chmod 0755 ${D}${bindir}/7z +} + +BBCLASSEXTEND += "native" |