Skip to contentSkip to conversation

BitBake GUI work, the state of things

RFC Joshua Lock 2 participants 3 messages Jun 2, 2011 – Jun 4, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I've been plugging away at a GUI to pilot BitBake with and think that now would be a reasonable time to solicit some feedback on the 'design'.

(There's a copy of this emails contents with inline screenshots at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/CurrentState)

The purpose of the tool is to allow the user to create and build a custom image as well as enabling parameters of the build to be configured.

Here's a screenshot:

https://wiki.yoctoproject.org/wiki/File:Screenshot-yHob-240511.png

I've tried to apply the principle of least surprise and tried to make the app fit in on a Gnome desktop by following their HIG. One possibly unexpected outcome of this is that you modify Preferences which equate to values in local.conf

https://wiki.yoctoproject.org/wiki/File:Screenshot-Preferences.png

There are several issues with the GUI as is that I will be working on next, as well as some extra features that I am intending to implement in the coming weeks.

Issues:
* I wanted to allow users to store recipes for their newly created images on disk and buildFile didn't seem to work as expected (only building the rootfs of the image and complaining when packages where missing, rather than building all dependencies then the rootfs) so I hacked a temporary alternative entry point to the program bitbake-commander (I know we have a program using this name already, which is fine because I don't want this entry point to last).

I want to remove this entry point but first need to figure out a way to be able to modify layers and re-parse with the new layers' contents. Hacking in this entry point enabled me to remain focused on the actual GUI whilst I worked out interaction models.

This entry points shows a "workspace selector" dialog (like Eclipse's) and once the user selects/creates a workspace layer it is added to the bblayers.conf file and BitBake is then started.

https://wiki.yoctoproject.org/wiki/File:Hob-workspace-selector.png

* In a similar vein I implemented a layer editor which helps the user set up bblayers.conf, however the layer parsing and setting of BBPATH, etc is done really early in the cooker initialisation. I need to work out a clean way to allow modifying the bblayers.conf and having those changes reflected in the UI without having to restart the GUI (i.e:
triggering a re-parse of the metadata).

https://wiki.yoctoproject.org/wiki/File:Screenshot-Layers.png

* I was hoping I'd just be able to create files and use the buildFile command to build the image rather than having the workspace layer but as mentioned above calling the buildFile command didn't seem to handle building the images contents, instead the build would just go straight to rootfs generation and bail with missing packages. Furthermore I think using buildTargets is the right solution so that the user can build a cross toolchain and rootfs from the same GUI.

I'm aware that the coding style is all over, I had started out carryin on with the gtk+ coding style of the other files in lib/bb/ui/crumbs but I think I will end up switching the coding style of everything in lib/bb/ui to be consistent with the rest of BitBake.

Feedback, particularly on the areas above marked as issues, is extremely welcome.

I'm trying to keep an up-to-date To Do list at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/PostOneOh

I've also started to track possible future GUI work:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/Future

The current state of the code is in my josh/hob branch on poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/hob
(
Being more explicit the patch with HACK HACK HACK as the subject is one I'm not at all happy with and the patch with WIP WIP WIP as the subject is one which certainly needs more work.)

There's even a Yocto bugzilla component for the 'image creator':
http://bugzilla.yoctoproject.org/buglist.cgi?product=Build%
20System&component=image%20creator&resolution=---

The GUI is probably not yet useful enough for day-to-day use, there's a particularly irritating bug I've introduced whereby clicking to remove something form the images contents removes *everything* - this is high on my list of things to work on.

Regards,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre
#1 lore raw
Quoted 8 lines · Joshua Lock

Hi all,

I've been plugging away at a GUI to pilot BitBake with and think that now would be a reasonable time to solicit some feedback on the 'design'.

(There's a copy of this emails contents with inline screenshots at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/CurrentState)

Quoted 7 lines

The purpose of the tool is to allow the user to create and build a custom image as well as enabling parameters of the build to be configured.

Here's a screenshot:

https://wiki.yoctoproject.org/wiki/File:Screenshot-yHob-240511.png

Does it harvest all known machines from the configured layers? Assuming so, but thought I'd check as it hadn't come up in our previous discussions.

Quoted 5 lines

I've tried to apply the principle of least surprise and tried to make the app fit in on a Gnome desktop by following their HIG. One possibly unexpected outcome of this is that you modify Preferences which equate to values in local.conf

It seems to me this might be less surprising if the tools was presented as an image "configurator" as opposed to an image builder. I'm not arguing for a name change here, but something to consider about how the tool is perceived. The assisted configuration is where this tool is the most valuable in my opinion, the building part is mostly just eye candy.

Quoted 2 lines

https://wiki.yoctoproject.org/wiki/File:Screenshot-Preferences.png

Is "Exclude GPLv3 packages" the only license related option of significance?

Quoted 19 lines

There are several issues with the GUI as is that I will be working on next, as well as some extra features that I am intending to implement in the coming weeks.

Issues:
* I wanted to allow users to store recipes for their newly created images on disk and buildFile didn't seem to work as expected (only building the rootfs of the image and complaining when packages where missing, rather than building all dependencies then the rootfs) so I hacked a temporary alternative entry point to the program bitbake-commander (I know we have a program using this name already, which is fine because I don't want this entry point to last).

I want to remove this entry point but first need to figure out a way to be able to modify layers and re-parse with the new layers' contents. Hacking in this entry point enabled me to remain focused on the actual GUI whilst I worked out interaction models.

Quoted 6 lines

This entry points shows a "workspace selector" dialog (like Eclipse's) and once the user selects/creates a workspace layer it is added to the bblayers.conf file and BitBake is then started.

https://wiki.yoctoproject.org/wiki/File:Hob-workspace-selector.png

In my workflow, the build area is also a key part of my "workspace". I keep one for each permutation of (bernard|master)*(n450|beagleboard|qemux86|...). I find I run into fewer issues this way. I share downloads and may eventually share sstate as I learn how to work with it and not just periodically delete it ;-)

The point being that if the concept of "Workspace" also included the build directory, then the changes to local.conf and bblayers.conf wouldn't be any surprise to the user at all. Having a configurable build directory is pretty important for performance reasons as well where you may have a RAID0 array for your build partition and don't want to use ./build.

It's certainly usable as is, but it could reach a broader audience if the concept of workspace were to include the build dir.

Quoted 9 lines

* In a similar vein I implemented a layer editor which helps the user set up bblayers.conf, however the layer parsing and setting of BBPATH, etc is done really early in the cooker initialisation. I need to work out a clean way to allow modifying the bblayers.conf and having those changes reflected in the UI without having to restart the GUI (i.e:
triggering a re-parse of the metadata).

https://wiki.yoctoproject.org/wiki/File:Screenshot-Layers.png

I really like this bit. It just occurred to me though that it would be nice to be able to adjust the priority of these layers, and then resort the rows accordingly. Unfortunatley, that really involves changing the layer config file, which should probably be off limits to this tool for layers it isn't creating... maybe... hrm. Something to consider anyway.

Quoted 33 lines

* I was hoping I'd just be able to create files and use the buildFile command to build the image rather than having the workspace layer but as mentioned above calling the buildFile command didn't seem to handle building the images contents, instead the build would just go straight to rootfs generation and bail with missing packages. Furthermore I think using buildTargets is the right solution so that the user can build a cross toolchain and rootfs from the same GUI.

I'm aware that the coding style is all over, I had started out carryin on with the gtk+ coding style of the other files in lib/bb/ui/crumbs but I think I will end up switching the coding style of everything in lib/bb/ui to be consistent with the rest of BitBake.

Feedback, particularly on the areas above marked as issues, is extremely welcome.

I'm trying to keep an up-to-date To Do list at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/PostOneOh

I've also started to track possible future GUI work:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/Future

The current state of the code is in my josh/hob branch on poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/hob
(
Being more explicit the patch with HACK HACK HACK as the subject is one I'm not at all happy with and the patch with WIP WIP WIP as the subject is one which certainly needs more work.)

There's even a Yocto bugzilla component for the 'image creator':
http://bugzilla.yoctoproject.org/buglist.cgi?product=Build%
20System&component=image%20creator&resolution=---

Quoted 7 lines

The GUI is probably not yet useful enough for day-to-day use, there's a particularly irritating bug I've introduced whereby clicking to remove something form the images contents removes *everything* - this is high on my list of things to work on.

Regards,
Joshua

Really coming along and looking great.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#2 lore raw
Quoted 14 lines · Darren Hart
Quoted 12 lines · Joshua Lock

Hi all,

I've been plugging away at a GUI to pilot BitBake with and think that now would be a reasonable time to solicit some feedback on the 'design'.

(There's a copy of this emails contents with inline screenshots at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/CurrentState)

The purpose of the tool is to allow the user to create and build a custom image as well as enabling parameters of the build to be configured.

Quoted 8 lines
Quoted 3 lines

Here's a screenshot:

https://wiki.yoctoproject.org/wiki/File:Screenshot-yHob-240511.png

Does it harvest all known machines from the configured layers? Assuming so, but thought I'd check as it hadn't come up in our previous discussions.

It does indeed.

Quoted 8 lines
Quoted 6 lines

I've tried to apply the principle of least surprise and tried to make the app fit in on a Gnome desktop by following their HIG. One possibly unexpected outcome of this is that you modify Preferences which equate to values in local.conf

Quoted 6 lines

It seems to me this might be less surprising if the tools was presented as an image "configurator" as opposed to an image builder. I'm not arguing for a name change here, but something to consider about how the tool is perceived. The assisted configuration is where this tool is the most valuable in my opinion, the building part is mostly just eye candy.

Valid point. A name change has been proposed for a similar reason.

Quoted 7 lines
Quoted 3 lines

https://wiki.yoctoproject.org/wiki/File:Screenshot-Preferences.png

Is "Exclude GPLv3 packages" the only license related option of significance?

Not at all, it's the only one that's supported right now whilst the feature it's based on is undergoing change. It's definitely on the agenda to make this underlying functionality (INCOMPATIBLE_LICENSE - or whatever it becomes) be better exposed through the GUI.

Quoted 41 lines
Quoted 20 lines

There are several issues with the GUI as is that I will be working on next, as well as some extra features that I am intending to implement in the coming weeks.

Issues:
* I wanted to allow users to store recipes for their newly created images on disk and buildFile didn't seem to work as expected (only building the rootfs of the image and complaining when packages where missing, rather than building all dependencies then the rootfs) so I hacked a temporary alternative entry point to the program bitbake-commander (I know we have a program using this name already, which is fine because I don't want this entry point to last).

I want to remove this entry point but first need to figure out a way to be able to modify layers and re-parse with the new layers' contents. Hacking in this entry point enabled me to remain focused on the actual GUI whilst I worked out interaction models.

Quoted 6 lines

This entry points shows a "workspace selector" dialog (like Eclipse's) and once the user selects/creates a workspace layer it is added to the bblayers.conf file and BitBake is then started.

https://wiki.yoctoproject.org/wiki/File:Hob-workspace-selector.png

In my workflow, the build area is also a key part of my "workspace". I keep one for each permutation of (bernard|master)*(n450|beagleboard|qemux86|...). I find I run into fewer issues this way. I share downloads and may eventually share sstate as I learn how to work with it and not just periodically delete it ;-)

The point being that if the concept of "Workspace" also included the build directory, then the changes to local.conf and bblayers.conf wouldn't be any surprise to the user at all. Having a configurable build directory is pretty important for performance reasons as well where you may have a RAID0 array for your build partition and don't want to use ./build.

Quoted 2 lines

It's certainly usable as is, but it could reach a broader audience if the concept of workspace were to include the build dir.

This is a well considered suggestion, thanks. Unfortunately I'm not sure how we'd implement this within the current code base (at least, not without some significant churn) so I'm adding it to the "ideas for later" pile.

Quoted 13 lines
Quoted 11 lines

* In a similar vein I implemented a layer editor which helps the user set up bblayers.conf, however the layer parsing and setting of BBPATH, etc is done really early in the cooker initialisation. I need to work out a clean way to allow modifying the bblayers.conf and having those changes reflected in the UI without having to restart the GUI (i.e:
triggering a re-parse of the metadata).

https://wiki.yoctoproject.org/wiki/File:Screenshot-Layers.png

Quoted 5 lines

I really like this bit. It just occurred to me though that it would be nice to be able to adjust the priority of these layers, and then resort the rows accordingly. Unfortunatley, that really involves changing the layer config file, which should probably be off limits to this tool for layers it isn't creating... maybe... hrm. Something to consider anyway.

Consider it considered ;-)

Quoted 40 lines
Quoted 40 lines

* I was hoping I'd just be able to create files and use the buildFile command to build the image rather than having the workspace layer but as mentioned above calling the buildFile command didn't seem to handle building the images contents, instead the build would just go straight to rootfs generation and bail with missing packages. Furthermore I think using buildTargets is the right solution so that the user can build a cross toolchain and rootfs from the same GUI.

I'm aware that the coding style is all over, I had started out carryin on with the gtk+ coding style of the other files in lib/bb/ui/crumbs but I think I will end up switching the coding style of everything in lib/bb/ui to be consistent with the rest of BitBake.

Feedback, particularly on the areas above marked as issues, is extremely welcome.

I'm trying to keep an up-to-date To Do list at:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/PostOneOh

I've also started to track possible future GUI work:
https://wiki.yoctoproject.org/wiki/BitBake/GUI/Future

The current state of the code is in my josh/hob branch on poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/hob
(
Being more explicit the patch with HACK HACK HACK as the subject is one I'm not at all happy with and the patch with WIP WIP WIP as the subject is one which certainly needs more work.)

There's even a Yocto bugzilla component for the 'image creator':
http://bugzilla.yoctoproject.org/buglist.cgi?product=Build%
20System&component=image%20creator&resolution=---

The GUI is probably not yet useful enough for day-to-day use, there's a particularly irritating bug I've introduced whereby clicking to remove something form the images contents removes *everything* - this is high on my list of things to work on.

Quoted 5 lines
Quoted 2 lines

Regards,
Joshua

Really coming along and looking great.

Thanks for the feedback Darren!

Regards,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre