]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
external-python-tarball: Blacklist recipe if ipk is not in the PACKAGE_CLASSES list
authorSaul Wold <sgw@linux.intel.com>
Wed, 22 Aug 2012 20:54:04 +0000 (20:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2012 16:23:40 +0000 (17:23 +0100)
This is needed because ipk tools and variables (specically
IPKGCONF_TARGET and IPKGCONF_SDK) are used from the rootfs_ipk.bbclass

I tried to inherit directly but it still fails to expand those.

[YOCTO #2814]

(From OE-Core rev: 161043782682cccd2efc2b349e8248ae084857c7)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/external-python-tarball.bb

index 6bc837b8ce399871c1b924af506e18a0c2ebbfde..e317ba32ca24e0e96940cc4a5cc9cfbe2733e946 100644 (file)
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
 
 DEPENDS = "opkg-native opkg-utils-native virtual/fakeroot-native sed-native"
 
+PR = "r1"
+
 inherit meta
 
 SDK_DIR = "${WORKDIR}/sdk"
@@ -91,3 +93,6 @@ do_populate_sdk[nostamp] = "1"
 do_populate_sdk[recrdeptask] = "do_package_write"
 addtask populate_sdk before do_build after do_install
 
+inherit blacklist
+
+PNBLACKLIST[external-python-tarball] = "${@base_contains('PACKAGE_CLASSES', 'package_ipk', '', 'This recipe requires \'package_ipk\' support to be enabled in PACKAGE_CLASSES.', d)}"