summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-01-22 17:20:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-23 23:43:45 +0000
commita576c133e373369bc439bf0b01a429e99bff49e2 (patch)
tree02a8b00b486b2c0686637473b3948ad5e6a573c7 /meta/classes
parent664f0ca519b5899d36b7c248376c4301c06efc0c (diff)
downloadpoky-a576c133e373369bc439bf0b01a429e99bff49e2.tar.gz
package_ipg: use xz when building packages
Add a dependency on xz-native and pass '-Z xz' to opkg-build to use xz instead of gzip when building packages. (From OE-Core rev: b95b6ba1a2959e2294a8848fa35f20163388eb06) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_ipk.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 6c1fdaa390..a0b34fa7a5 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -8,7 +8,7 @@ IPKGCONF_SDK = "${WORKDIR}/opkg-sdk.conf"
8PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks" 8PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
9 9
10# Program to be used to build opkg packages 10# Program to be used to build opkg packages
11OPKGBUILDCMD ??= "opkg-build" 11OPKGBUILDCMD ??= "opkg-build -Z xz"
12 12
13OPKG_ARGS += "--force_postinstall --prefer-arch-to-version" 13OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
14OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}" 14OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
@@ -307,7 +307,7 @@ addtask do_package_write_ipk_setscene
307 307
308python () { 308python () {
309 if d.getVar('PACKAGES') != '': 309 if d.getVar('PACKAGES') != '':
310 deps = ' opkg-utils-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot' 310 deps = ' opkg-utils-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot xz-native:do_populate_sysroot'
311 d.appendVarFlag('do_package_write_ipk', 'depends', deps) 311 d.appendVarFlag('do_package_write_ipk', 'depends', deps)
312 d.setVarFlag('do_package_write_ipk', 'fakeroot', "1") 312 d.setVarFlag('do_package_write_ipk', 'fakeroot', "1")
313} 313}