From 6a320d07e45d9c41a6b50b96ba7f910cc141a1dd Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Thu, 13 Nov 2014 09:54:14 +0800 Subject: postinst-intercept: rename recipe for nativesdk only 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 Signed-off-by: Ross Burton --- .../nativesdk-postinst-intercept_1.0.bb | 19 +++++++++++++++++++ .../postinst-intercept/postinst-intercept_1.0.bb | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb delete mode 100644 meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb diff --git a/meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb b/meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb new file mode 100644 index 0000000000..7dc45c68f2 --- /dev/null +++ b/meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb @@ -0,0 +1,19 @@ +SUMMARY = "Postinstall scriptlets" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +FILES_${PN}_append = " ${datadir}/postinst-intercepts/*" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +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/ + install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_icon_cache ${D}${datadir}/postinst-intercepts/ + install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_pixbuf_cache ${D}${datadir}/postinst-intercepts/ +} + +inherit nativesdk +INHIBIT_DEFAULT_DEPS = "1" diff --git a/meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb b/meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb deleted file mode 100644 index 41b9a6e49e..0000000000 --- a/meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb +++ /dev/null @@ -1,19 +0,0 @@ -SUMMARY = "Postinstall scriptlets" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -FILES_${PN}_append_class-nativesdk = " ${datadir}/postinst-intercepts/*" - -do_configure[noexec] = "1" -do_compile[noexec] = "1" - -do_install_append_class-nativesdk() { - 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/ - install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_icon_cache ${D}${datadir}/postinst-intercepts/ - install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_pixbuf_cache ${D}${datadir}/postinst-intercepts/ -} - -BBCLASSEXTEND = "nativesdk" -INHIBIT_DEFAULT_DEPS = "1" -- cgit 1.2.3-korg