From: "David Nyström" <david.c.nystrom@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCHv2 1/5] postinst-intercept: New recipe to include postinstall intercepts in nativesdk
Date: Fri, 31 Jan 2014 10:30:00 +0100 [thread overview]
Message-ID: <1391160604-23629-2-git-send-email-david.nystrom@enea.com> (raw)
In-Reply-To: <1391160604-23629-1-git-send-email-david.nystrom@enea.com>
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@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
next prev parent reply other threads:[~2014-01-31 9:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 9:29 [PATCHv2 0/5] Final patches for SDK rootfs creation David Nyström
2014-01-31 9:30 ` David Nyström [this message]
2014-01-31 9:30 ` [PATCHv2 2/5] nativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept to SDK David Nyström
2014-01-31 9:30 ` [PATCHv2 3/5] nspr: Added nativesdk to BBCLASSEXTEND David Nyström
2014-01-31 9:30 ` [PATCHv2 4/5] nss: Add nativesdk to BBCLASSEXTEND and bugfix David Nyström
2014-01-31 9:30 ` [PATCHv2 5/5] nativesdk-packagegroup-sdk-host: Add nativesdk-nss to default inclusion in host SDK David Nyström
2014-01-31 15:46 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1391160604-23629-2-git-send-email-david.nystrom@enea.com \
--to=david.c.nystrom@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.