* [dora][PATCH 0/4] Fixes backported from master
@ 2014-04-04 17:46 Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 1/4] sstatesig.py: Fix image regeneration issue Paul Eggleton
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-04 17:46 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 590c2135858bb5d0cfc375c0d82ca610550ccd4a:
Revert "buildhistory_analysis: fix error when comparing image contents" (2014-04-04 16:16:39 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/dora-next
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/dora-next
Paul Eggleton (2):
classes/kernel: move module postinst commands to kernel-base
classes/image: ignore modules.* changing during multilib image
construction
Richard Purdie (2):
sstatesig.py: Fix image regeneration issue
sstatesig: Anchor inherits class tests
meta/classes/image.bbclass | 2 +-
meta/classes/kernel.bbclass | 7 +++++--
meta/lib/oe/sstatesig.py | 6 ++++--
3 files changed, 10 insertions(+), 5 deletions(-)
--
1.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dora][PATCH 1/4] sstatesig.py: Fix image regeneration issue
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
@ 2014-04-04 17:46 ` Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 2/4] classes/kernel: move module postinst commands to kernel-base Paul Eggleton
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-04 17:46 UTC (permalink / raw)
To: openembedded-core
From: Richard Purdie <richard.purdie@linuxfoundation.org>
With the "ABI safe" recipes, we've been excluding those from signatures. This
is fine in the general case but in the specific case of image recipes it breaks.
A good test case is the interfaces file. Editting this causes init-ifupdown
to rebuild but not an image containing it (e.g. core-image-minimal).
We need to ensure the checksums are added to the image recipes and this change
does that.
(From OE-Core master rev: fd085f15e7cd093953f974f69277e130174d551d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/lib/oe/sstatesig.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 852fb7e..1bcaacf 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -11,6 +11,8 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
def isKernel(fn):
inherits = " ".join(dataCache.inherits[fn])
return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1
+ def isImage(fn):
+ return "image.bbclass" in " ".join(dataCache.inherits[fn])
# Always include our own inter-task dependencies
if recipename == depname:
@@ -32,7 +34,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
return False
# Exclude well defined machine specific configurations which don't change ABI
- if depname in siggen.abisaferecipes:
+ if depname in siggen.abisaferecipes and not isImage(fn):
return False
# Exclude well defined recipe->dependency
--
1.9.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [dora][PATCH 2/4] classes/kernel: move module postinst commands to kernel-base
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 1/4] sstatesig.py: Fix image regeneration issue Paul Eggleton
@ 2014-04-04 17:46 ` Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 3/4] classes/image: ignore modules.* changing during multilib image construction Paul Eggleton
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-04 17:46 UTC (permalink / raw)
To: openembedded-core
Since kernel-base is the package that contains the files that depmod
needs to run, we should be running depmod from the kernel-base
postinstall rather than kernel-image.
Fixes [YOCTO #5392].
(From OE-Core master rev: f7d2cb383281ec8dfa90950ba04d87dd29ffc676)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/kernel.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index e639bd5..925aed1 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -337,8 +337,7 @@ ALLOW_EMPTY_kernel-image = "1"
ALLOW_EMPTY_kernel-modules = "1"
DESCRIPTION_kernel-modules = "Kernel modules meta package"
-pkg_postinst_kernel-image () {
- update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+pkg_postinst_kernel-base () {
if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
mkdir -p $D/lib/modules/${KERNEL_VERSION}
fi
@@ -349,6 +348,10 @@ pkg_postinst_kernel-image () {
fi
}
+pkg_postinst_kernel-image () {
+ update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+}
+
pkg_postrm_kernel-image () {
update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
}
--
1.9.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [dora][PATCH 3/4] classes/image: ignore modules.* changing during multilib image construction
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 1/4] sstatesig.py: Fix image regeneration issue Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 2/4] classes/kernel: move module postinst commands to kernel-base Paul Eggleton
@ 2014-04-04 17:46 ` Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 4/4] sstatesig: Anchor inherits class tests Paul Eggleton
2014-04-10 2:34 ` [dora][PATCH 0/4] Fixes backported from master Robert Yang
4 siblings, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-04 17:46 UTC (permalink / raw)
To: openembedded-core
Since we now run depmod when building images (as the postinst that does
this is now on kernel-base instead of kernel-image) it is possible to
have module file differences between the two halves of the multilib image,
and the code that checks for such differences detects this and fails.
Whitelist this file to avoid the failure.
Specifically, modules.alias, modules.dep and modules.symbol can differ
along with their .bin counterparts.
Related to fix for [YOCTO #5392].
(From OE-Core master rev: 0a315804bf991664c0948e3024b8e8b9e9085808)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/image.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0986858..aaaa224 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -410,7 +410,7 @@ log_check() {
done
}
-MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|"
+MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|/lib/modules/[^/]*/modules.*|"
MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"
MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib"
--
1.9.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [dora][PATCH 4/4] sstatesig: Anchor inherits class tests
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
` (2 preceding siblings ...)
2014-04-04 17:46 ` [dora][PATCH 3/4] classes/image: ignore modules.* changing during multilib image construction Paul Eggleton
@ 2014-04-04 17:46 ` Paul Eggleton
2014-04-10 2:34 ` [dora][PATCH 0/4] Fixes backported from master Robert Yang
4 siblings, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-04 17:46 UTC (permalink / raw)
To: openembedded-core
From: Richard Purdie <richard.purdie@linuxfoundation.org>
This avoids a nasty sstate hash corruption issue where the
fact the testimage bbclass was inherited meant that the checksum
changed due to testimage.bbclass being confused with image.bbclass.
This patch anchors the bbclass names to avoid this confusion.
(From OE-Core master rev: 943a75a4f3b6877e4092dae14b59b7afef8cad3d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/lib/oe/sstatesig.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 1bcaacf..a1efc7b 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -10,9 +10,9 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
return x.startswith("nativesdk-")
def isKernel(fn):
inherits = " ".join(dataCache.inherits[fn])
- return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1
+ return inherits.find("/module-base.bbclass") != -1 or inherits.find("/linux-kernel-base.bbclass") != -1
def isImage(fn):
- return "image.bbclass" in " ".join(dataCache.inherits[fn])
+ return "/image.bbclass" in " ".join(dataCache.inherits[fn])
# Always include our own inter-task dependencies
if recipename == depname:
--
1.9.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [dora][PATCH 0/4] Fixes backported from master
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
` (3 preceding siblings ...)
2014-04-04 17:46 ` [dora][PATCH 4/4] sstatesig: Anchor inherits class tests Paul Eggleton
@ 2014-04-10 2:34 ` Robert Yang
4 siblings, 0 replies; 6+ messages in thread
From: Robert Yang @ 2014-04-10 2:34 UTC (permalink / raw)
To: Paul Eggleton, openembedded-core
Reviewed and Tested by Robert Yang <liezhi.yang@windriver.com>
// Robert
On 04/05/2014 01:46 AM, Paul Eggleton wrote:
> The following changes since commit 590c2135858bb5d0cfc375c0d82ca610550ccd4a:
>
> Revert "buildhistory_analysis: fix error when comparing image contents" (2014-04-04 16:16:39 +0100)
>
> are available in the git repository at:
>
> git://git.openembedded.org/openembedded-core-contrib paule/dora-next
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/dora-next
>
> Paul Eggleton (2):
> classes/kernel: move module postinst commands to kernel-base
> classes/image: ignore modules.* changing during multilib image
> construction
>
> Richard Purdie (2):
> sstatesig.py: Fix image regeneration issue
> sstatesig: Anchor inherits class tests
>
> meta/classes/image.bbclass | 2 +-
> meta/classes/kernel.bbclass | 7 +++++--
> meta/lib/oe/sstatesig.py | 6 ++++--
> 3 files changed, 10 insertions(+), 5 deletions(-)
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-04-10 2:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 17:46 [dora][PATCH 0/4] Fixes backported from master Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 1/4] sstatesig.py: Fix image regeneration issue Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 2/4] classes/kernel: move module postinst commands to kernel-base Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 3/4] classes/image: ignore modules.* changing during multilib image construction Paul Eggleton
2014-04-04 17:46 ` [dora][PATCH 4/4] sstatesig: Anchor inherits class tests Paul Eggleton
2014-04-10 2:34 ` [dora][PATCH 0/4] Fixes backported from master Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox