diff options
author | Ross Burton <ross.burton@intel.com> | 2018-01-22 17:20:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-23 23:43:45 +0000 |
commit | a576c133e373369bc439bf0b01a429e99bff49e2 (patch) | |
tree | 02a8b00b486b2c0686637473b3948ad5e6a573c7 /meta/classes/package_ipk.bbclass | |
parent | 664f0ca519b5899d36b7c248376c4301c06efc0c (diff) | |
download | poky-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/package_ipk.bbclass')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 4 |
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" | |||
8 | PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks" | 8 | PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks" |
9 | 9 | ||
10 | # Program to be used to build opkg packages | 10 | # Program to be used to build opkg packages |
11 | OPKGBUILDCMD ??= "opkg-build" | 11 | OPKGBUILDCMD ??= "opkg-build -Z xz" |
12 | 12 | ||
13 | OPKG_ARGS += "--force_postinstall --prefer-arch-to-version" | 13 | OPKG_ARGS += "--force_postinstall --prefer-arch-to-version" |
14 | OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}" | 14 | OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}" |
@@ -307,7 +307,7 @@ addtask do_package_write_ipk_setscene | |||
307 | 307 | ||
308 | python () { | 308 | python () { |
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 | } |