]> code.ossystems Code Review - openembedded-core.git/commitdiff
postinst-intercept: rename recipe for nativesdk only
authorHongxu Jia <hongxu.jia@windriver.com>
Thu, 13 Nov 2014 01:54:14 +0000 (09:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Nov 2014 14:06:31 +0000 (14:06 +0000)
The recipe postinst-intercept is only used for nativesdk, so we rename
it from postinst-intercept to nativesdk-postinst-intercept.

It avoids unnecessary build of postinst-intercept.

[YOCTO #6937]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb [moved from meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb with 83% similarity]

similarity index 83%
rename from meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb
rename to meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb
index 41b9a6e49e5246ba0c860fd9e680431d769fd51e..7dc45c68f21751dfdf35a517d34ba965e84ddd41 100644 (file)
@@ -2,12 +2,12 @@ SUMMARY = "Postinstall scriptlets"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-FILES_${PN}_append_class-nativesdk = " ${datadir}/postinst-intercepts/*"
+FILES_${PN}_append = " ${datadir}/postinst-intercepts/*"
 
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
 
-do_install_append_class-nativesdk() {
+do_install() {
        install -d ${D}${datadir}/postinst-intercepts
        install -m 755 ${COREBASE}/scripts/postinst-intercepts/postinst_intercept ${D}${datadir}/postinst-intercepts/
        install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_font_cache ${D}${datadir}/postinst-intercepts/
@@ -15,5 +15,5 @@ do_install_append_class-nativesdk() {
        install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_pixbuf_cache ${D}${datadir}/postinst-intercepts/
 }
 
-BBCLASSEXTEND = "nativesdk"
+inherit nativesdk
 INHIBIT_DEFAULT_DEPS = "1"