Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes
@ 2024-06-06 20:48 egyszeregy
  2024-06-06 21:04 ` Patchtest results for " patchtest
  2024-06-11 10:48 ` [OE-core] " Ross Burton
  0 siblings, 2 replies; 14+ messages in thread
From: egyszeregy @ 2024-06-06 20:48 UTC (permalink / raw)
  To: openembedded-core; +Cc: Benjamin Szőke

	s=20181004; d=freemail.hu;

	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;

	l=1045; bh=oHxilov6nfo9rMZSzya/JNLFzvCt7tB62SYU9eHL/QQ=;

	b=iZKL9Fwm3xlIxmkZhAYo72aSO9s12Xa+Meez4Z1s+t2UViytuBVT41554e5YDWWm

	qLaqsiEQbXVzpl80EVToMgZMnlOZUVkn/V9IS8Yd1gi+NjkiZwYQGeGMiWdV95yxxIB

	P8hnPdsg6EKgr35wF6kQt+FZyj6rxchgADvNoiD5W0poNcmgBMuBsM0gYYtj9+D//E4

	SU4Sy0EDWtvXdlqOJWHF+wqyi4erii116bmz1CjcAm66PnMkyfv5jZYtVuVeV+FxlkW

	KZb9lr4erYTMqDy+vnwYQZd3JOBcN22H5rOaRoKDtLrH22nBDVJB9lbYshdInkZbacO

	5N46Wb9YBA==
Content-Transfer-Encoding: quoted-printable

From: Benjamin Sz=C5=91ke <egyszeregy@freemail.hu>

Restore to use checking inherited kernel class, because it possible
that some BSP's linux kernel recipe (like linux-fslc in meta-freescale)
change source dir to S =3D "${WORKDIR}/git" symbolic link and in this
case work-shared checking is failed for kernel recipe.

Signed-off-by: Benjamin Sz=C5=91ke <egyszeregy@freemail.hu>
---
 meta/classes/archiver.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclas=
s
index 2d0bbfbd42..fa285a1c10 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -473,7 +473,7 @@ def create_diff_gz(d, src_orig, src, ar_outdir):
=20
 def is_work_shared(d):
     sharedworkdir =3D os.path.join(d.getVar('TMPDIR'), 'work-shared')
-    return d.getVar('S').startswith(sharedworkdir)
+    return d.getVar('S').startswith(sharedworkdir) or bb.data.inherits_c=
lass('kernel', d)
=20
 # Run do_unpack and do_patch
 python do_unpack_and_patch() {
--=20
2.45.2.windows.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-06-13 13:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06 20:48 [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes egyszeregy
2024-06-06 21:04 ` Patchtest results for " patchtest
2024-06-06 21:38   ` Livius
2024-06-06 21:41     ` Livius
     [not found]     ` <Groupsio.1.8404.1717709883800685810@lists.openembedded.org>
2024-06-07  1:32       ` [OE-core] " Trevor Gamblin
2024-06-07  8:26     ` Livius
2024-06-11 10:48 ` [OE-core] " Ross Burton
2024-06-11 23:30   ` Livius
2024-06-11 23:31     ` Livius
2024-06-11 23:33     ` Livius
2024-06-11 23:35     ` Livius
     [not found]     ` <Groupsio.3.23837.1718148644454631767@lists.openembedded.org>
2024-06-12  9:31       ` [OE-core] " Jose Quaresma
2024-06-13 13:54         ` Livius
     [not found]       ` <17D837E52ADBFC1B.19992@lists.openembedded.org>
2024-06-13 12:21         ` [OE-core] " Jose Quaresma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox