mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
664f0ca519
commit
a576c133e3
@@ -8,7 +8,7 @@ IPKGCONF_SDK = "${WORKDIR}/opkg-sdk.conf"
|
|||||||
PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
|
PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
|
||||||
|
|
||||||
# Program to be used to build opkg packages
|
# Program to be used to build opkg packages
|
||||||
OPKGBUILDCMD ??= "opkg-build"
|
OPKGBUILDCMD ??= "opkg-build -Z xz"
|
||||||
|
|
||||||
OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
|
OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
|
||||||
OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
|
OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
|
||||||
@@ -307,7 +307,7 @@ addtask do_package_write_ipk_setscene
|
|||||||
|
|
||||||
python () {
|
python () {
|
||||||
if d.getVar('PACKAGES') != '':
|
if d.getVar('PACKAGES') != '':
|
||||||
deps = ' opkg-utils-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot'
|
deps = ' opkg-utils-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot xz-native:do_populate_sysroot'
|
||||||
d.appendVarFlag('do_package_write_ipk', 'depends', deps)
|
d.appendVarFlag('do_package_write_ipk', 'depends', deps)
|
||||||
d.setVarFlag('do_package_write_ipk', 'fakeroot', "1")
|
d.setVarFlag('do_package_write_ipk', 'fakeroot', "1")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user