Final patches for SDK rootfs creation.
v2 cover Final patches for SDK rootfs creation.
With this pathset, All postinstall dependencies from oe-core will be available in the nativeSDK tarball.
David Nyström (5):
postinst-intercept: New recipe to include postinstall intercepts in
nativesdk
nativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept
to SDK
nspr: Added nativesdk to BBCLASSEXTEND
nss: Add nativesdk to BBCLASSEXTEND and bugfix nativesdk-packagegroup-sdk-host: Add nativesdk-nss to default
inclusion in host SDK
.../packagegroups/nativesdk-packagegroup-sdk-host.bb | 2 ++ .../postinst-intercept/postinst-intercept_1.0.bb | 19 +++++++++++++++++++ meta/recipes-support/nspr/nspr_4.10.2.bb | 2 +- meta/recipes-support/nss/nss.inc | 11 ++++++++++- 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb
Signature · 1 line
1.8.3.2
PATCH v2 2/5 nativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept to SDK
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.
--- meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +1 -0
@@ -23,6 +23,7 @@ RDEPENDS_${PN} = "\ nativesdk-shadow \ nativesdk-makedevs \ nativesdk-smartpm \ + nativesdk-postinst-intercept \ " RDEPENDS_${PN}_darwin = "\
Signature · 1 line
1.8.3.2
PATCH v2 3/5 nspr: Added nativesdk to BBCLASSEXTEND
In reply to David Nyströmnspr is a dependency of nss. Since shsignlibs is used from the nss postinstall hook. It should be included in nativesdk to make offline rootfs construction possible.
--- meta/recipes-support/nspr/nspr_4.10.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/nspr/nspr_4.10.2.bb +1 -1
@@ -175,4 +175,4 @@ FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \ ${includedir}/* ${datadir}/aclocal/* " FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.8.3.2
PATCH v2 4/5 nss: Add nativesdk to BBCLASSEXTEND and bugfix
In reply to David NyströmSince shsignlibs is used
from the nss postinstall hook. It should be included in nativesdk to make offline rootfs construction possible.
--- meta/recipes-support/nss/nss.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
meta/recipes-support/nss/nss.inc +10 -1
@@ -37,6 +37,10 @@ do_compile_prepend_class-native() { export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE} } +do_compile_prepend_class-nativesdk() { + export LDFLAGS="" +} + do_compile() { export CROSS_COMPILE=1 export NATIVE_CC="gcc"
@@ -73,6 +77,11 @@ do_compile() { OS_TEST=${OS_TEST} \ } + +do_install_prepend_class-nativesdk() { + export LDFLAGS="" +} + do_install() { export CROSS_COMPILE=1 export NATIVE_CC="gcc"
@@ -193,4 +202,4 @@ FILES_${PN}-dbg = "\ ${libdir}/.debug/* \ " -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.8.3.2
PATCH v2 1/5 postinst-intercept: New recipe to include postinstall intercepts in nativesdk
In reply to David NyströmAdding 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.
--- .../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
meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb new file +19 -0
@@ -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"
Signature · 1 line
1.8.3.2
PATCH v2 5/5 nativesdk-packagegroup-sdk-host: Add nativesdk-nss to default inclusion in host SDK
In reply to David NyströmSince shsignlibs is used from the nss postinstall hook. It should be included in nativesdk to make offline rootfs construction possible.
--- meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +1 -0
@@ -24,6 +24,7 @@ RDEPENDS_${PN} = "\ nativesdk-makedevs \ nativesdk-smartpm \ nativesdk-postinst-intercept \ + nativesdk-nss \ " RDEPENDS_${PN}_darwin = "\
Signature · 1 line
1.8.3.2
Re: [PATCHv2 5/5] nativesdk-packagegroup-sdk-host: Add nativesdk-nss to default inclusion in host SDK
Quoted 13 lines · David Nyström
Since shsignlibs is used from the nss postinstall hook. It should be
included in nativesdk to make offline rootfs construction possible.Signed-off-by David Nyström <[email protected]>--- meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 + 1 file changed, 1 insertion(+)meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +0
-0
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb RDEPENDS_${PN} = "\ · line 28
Quoted 5 lines
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +1
-0@@ -24,6 +24,7 @@ RDEPENDS_${PN} = "\ nativesdk-makedevs \ nativesdk-smartpm \ nativesdk-postinst-intercept \ + nativesdk-nss \ "
Do we really want/need to add nativesdk-nss to every sdk build? :/
Cheers,
Richard