[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCHv2 1/5] postinst-intercept: New recipe to include postinstall intercepts in nativesd
From:       david.c.nystrom () gmail ! com (=?UTF-8?q?David=20Nystr=C3=B6m?=)
Date:       2014-01-31 9:30:00
Message-ID: 1391160604-23629-2-git-send-email-david.nystrom () enea ! com
[Download RAW message or body]

Adding ability to use postinstalls intercepts in the nativesdk env, and
making sure the correlate between repo + SDK.

This to enable rootfs generation from a package repository using only a
package repository and the toolchain tarball.

See https://github.com/nysan/rootfs-sandbox for examples.

Signed-off-by: David Nystr?m <david.nystrom at enea.com>
---
 .../postinst-intercept/postinst-intercept_1.0.bb      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb


diff --git a/meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb \
b/meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb new file mode \
100644 index 0000000..41b9a6e
--- /dev/null
+++ b/meta/recipes-devtools/postinst-intercept/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_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"
-- 
1.8.3.2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic