diff options
-rw-r--r-- | meta/classes/package_deb.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 6f81591653..790b26aef2 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -6,6 +6,8 @@ inherit package | |||
6 | 6 | ||
7 | IMAGE_PKGTYPE ?= "deb" | 7 | IMAGE_PKGTYPE ?= "deb" |
8 | 8 | ||
9 | DPKG_BUILDCMD ??= "dpkg-deb" | ||
10 | |||
9 | DPKG_ARCH ?= "${@debian_arch_map(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'))}" | 11 | DPKG_ARCH ?= "${@debian_arch_map(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'))}" |
10 | DPKG_ARCH[vardepvalue] = "${DPKG_ARCH}" | 12 | DPKG_ARCH[vardepvalue] = "${DPKG_ARCH}" |
11 | 13 | ||
@@ -269,7 +271,8 @@ def deb_write_pkg(pkg, d): | |||
269 | conffiles.close() | 271 | conffiles.close() |
270 | 272 | ||
271 | os.chdir(basedir) | 273 | os.chdir(basedir) |
272 | subprocess.check_output("PATH=\"%s\" dpkg-deb -b %s %s" % (localdata.getVar("PATH"), root, pkgoutdir), | 274 | subprocess.check_output("PATH=\"%s\" %s -b %s %s" % (localdata.getVar("PATH"), localdata.getVar("DPKG_BUILDCMD"), |
275 | root, pkgoutdir), | ||
273 | stderr=subprocess.STDOUT, | 276 | stderr=subprocess.STDOUT, |
274 | shell=True) | 277 | shell=True) |
275 | 278 | ||