Skip to contentSkip to conversation

[1.18][PATCH 0/2] Bitbake changes for 1.18 branch

DISCUSSION Paul Eggleton 1 participant 3 messages Jul 29, 2013

lore
Share & tools
lore
#0 lore raw

This includes one backport from master and one Hob change which applies only to 1.18 (implementation in master is different.)

The following BitBake changes (against poky dylan, but apply cleanly against the bitbake 1.18 branch with -p2) are available in the git repository at:

git://git.yoctoproject.org/poky-contrib paule/dylan-next-bb
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/dylan-next-bb

Cristiana Voicu (1):
hob: save the base image name for the customized images

Richard Purdie (1):
bitbake: data_smart: Ensure variable flags are accounted for in config
data hash

 bitbake/lib/bb/data_smart.py                     | 6 ++++++
 bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 1 +
 2 files changed, 7 insertions(+)
Signature · 1 line
1.8.1.2
#1 lore raw

[1.18][PATCH 1/2] hob: save the base image name for the customized images

From: Cristiana Voicu <[email protected]>

Building an image, after customizing it, was failing because the base image was not saved.

[YOCTO #4751]
---
 bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/ui/crumbs/packageselectionpage.py +1 -0
index 66cb7ff..8452273 100755
@@ -288,6 +288,7 @@ class PackageSelectionPage (HobPage):
         self.refresh_selection()
         if not self.builder.customized:
             self.builder.customized = True
+            self.builder.configuration.initial_selected_image = self.builder.configuration.selected_image
             self.builder.configuration.selected_image = self.recipe_model.__custom_image__
             self.builder.rcppkglist_populated()
 
Signature · 1 line
1.8.1.2
#2 lore raw

[1.18][PATCH 2/2] bitbake: data_smart: Ensure variable flags are accounted for in config data hash

In reply to Paul Eggleton

From: Richard Purdie <[email protected]>

Currently if the flags set against a variable in the base data store change, it doesn't automatically trigger a reparse when it really should. For example with the blacklist class setting:

PNBLACKLIST[qemu] = "bar"
PNBLACKLIST[bash] = "foo"

will not trigger a reparse if only one entry is changed and a blacklisted recipe can still be built.

I did consider using BB_SIGNATURE_EXCLUDE_FLAGS in here however it doesn't make sense, we want to trigger a reparse when any of the flags change too (which is different to the sstate signatures which we wouldn't want to change in those cases).

[YOCTO #4627]

(Bitbake master rev: ed74ea50043f6feb698c891e571feda2b9f8513d)

---
 bitbake/lib/bb/data_smart.py | 6 ++++++
 1 file changed, 6 insertions(+)
bitbake/lib/bb/data_smart.py +6 -0
index 2fd8ccd..fa7811e 100644
@@ -738,6 +738,12 @@ class DataSmart(MutableMapping):
             value = d.getVar(key, False) or ""
             data.update({key:value})
 
+            varflags = d.getVarFlags(key)
+            if not varflags:
+                continue
+            for f in varflags:
+                data.update({'%s[%s]' % (key, f):varflags[f]})
+
         for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]:
             bb_list = d.getVar(key, False) or []
             bb_list.sort()
Signature · 1 line
1.8.1.2