summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builder.py
Commit message (Collapse)AuthorAgeFilesLines
* Hob: clean up cancel_build()Shane Wang2012-04-111-2/+5
| | | | | | | (Bitbake rev: ef441d51700f73577e72c106ee2a0ecd4eceda08) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up request_package_info_async()Shane Wang2012-04-111-1/+4
| | | | | | | (Bitbake rev: e95b52820f26a7a35865e8978ea752053dccd4b1) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify get_parameters() to be get_parameters_sync()Shane Wang2012-04-111-3/+6
| | | | | | | (Bitbake rev: 16fecd0d0f95285bf774030cd24006206185faee) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up to call clear_busy() in hobeventhandler.pyShane Wang2012-04-111-1/+0
| | | | | | | (Bitbake rev: 7b6414e2b82666c3cfa5432ce8fe8c348b227441) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for IMAGE_GENERATING to call ↵Shane Wang2012-04-111-16/+16
| | | | | | | | | | | | generate_image_async() For the steps in IMAGE_GENERATING, the patch consolidates them into generate_image_async() to call. (Bitbake rev: d4f2335e40d4d667847d3faed79bcee74baeea37) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for PACKAGE_GENERATING and ↵Shane Wang2012-04-111-11/+19
| | | | | | | | | | | | | | | FAST_IMAGE_GENERATING to call generate_packages_async() and fast_generate_image_async() For the steps in PACKAGE_GENERATING, the patch consolidates them into generate_packages_async() to call. For the steps in FAST_IMAGE_GENERATING, the patch also consolidates them into fast_generate_image_async() to call. (Bitbake rev: 1ec53d41774528ab01e835d1cf4166f0202a7c38) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for RCPPKGINFO_POPULATING to call ↵Shane Wang2012-04-111-7/+7
| | | | | | | | | | | | populate_recipe_package_info_async() For the steps in RCPPKGINFO_POPULATING, This patch consolidates them into populate_recipe_package_info_async() to call. (Bitbake rev: ed2aa6f235e1b789af8a33729302a4269674c6b4) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for CONFIG_UPDATE to call ↵Shane Wang2012-04-111-12/+9
| | | | | | | | | | | | | update_config_async() For the steps in CONFIG_UPDATE, the patch consolidates them into update_config_async() to call. consequently remove CONFIG_UPDATE since MACHINE_SELECTION covers it. (Bitbake rev: f583d43e87c049bdee88890e289f14520c7c31a1) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for new build to call ↵Shane Wang2012-04-111-12/+7
| | | | | | | | | | | | | | | initiate_new_build_async() initiate_new_build() (changed the function name into initiate_new_build_async() to indicate it is an async function) or the similar sub-functions are called at different places. This patch is unify to call initiate_new_build_async(). (Bitbake rev: ec42be626a5d6362a09f12f4f4025ad92d70c89b) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change base image to "Create your own image" if customizedDongxiao Xu2012-04-111-0/+3
| | | | | | | | | | | | | Once user did customization to his base image, we change the base image to be "Create your own image" to avoid some issues caused by the relationship between base image and its default recipes and packages. This fixes [YOCTO #2211] (Bitbake rev: 8edad8d282b69896237e956a00c66cd4d10ef494) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: a minor fix on pmakeShane Wang2012-04-051-2/+2
| | | | | | | | | | | | | | | params["pmake"] should be in the format "-j int". When loading/saving "PARALLEL_MAKE" into templates, configuration.pmake will be converted into "-j int", as "PACKAGE_CLASSES" and "BBLAYERS" do. For "PACKAGE_CLASSES" and "BBLAYERS", params["pclass"] and params["layer"] are also strings rather than the types of configuration.curr_package_format and configuration.layers. (Bitbake rev: d49db15badb77855cef855ee73430fcbc16b6916) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: a minor fix on image_fstypesShane Wang2012-04-051-1/+1
| | | | | | | | | | | image_fstypes in the configuration has been changed into a string rather than a list. Here we correct it in __init__() of class Configuration. At other places, image_fstypes are all strings. (Bitbake rev: 59dd7e91c11e0348f967578f32e13f5984c6a452) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: handle exceptions when loading templatesShane Wang2012-04-051-4/+16
| | | | | | | | | Handle exceptions during type conversion to integers. (Bitbake rev: bb3a4e2d40486a347c13563d73e4df6d015a3c6c) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: reset issue indication and build status before build starts on build ↵Shane Wang2012-04-051-2/+0
| | | | | | | | | details screen (Bitbake rev: 5fed953105fd58f09e42dce233aab2c6eced7c37) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fix IMAGE_INSTALL setting while save templateDongxiao Xu2012-04-051-1/+3
| | | | | | | | | | | | | If save every selected package into IMAGE_INSTALL field, and then build the saved bb file by bitbake command line, it will report errors since some packages could not be found since they are dynamically generated. With this commit, Hob will only save those packages into the IMAGE_INSTALL variable which are brought in by user. (Bitbake rev: 6c970d07422bb9a8fcf339315587cfc9b207a44e) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Fix toolchain buildDongxiao Xu2012-04-051-3/+6
| | | | | | | | | | | | | | | Originally we added -dev and -dbg postfixes to our selected packages as toolchain packages. However, some package names are modified in recipes, so we could not rely on its base name. The new approach is to detect if a package is selected, then include those packages under the same recipe endswith "-dev" and "-dbg". This fixes [YOCTO #2185] (Bitbake rev: f99c66071bce63780301e1639d74316503ca934c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Update the cache when setting changedDongxiao Xu2012-04-051-1/+1
| | | | | | | | | | If values in advanced is changed, we also need to reparse the cache to get the latest value. (Bitbake rev: 7b2f6744201511060f26cd2761e9556efec4b9a2) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Fix MACHINE settingDongxiao Xu2012-04-051-2/+2
| | | | | | | | | | | | Define the empty curr_mach to be "" instead of None. Fix the judgement for ' if self.curr_mach == "" ' to be ' if self.curr_mach '. Also set machine to bitbake server when "MACHINE" is not empty. (Bitbake rev: 662fa1b126d5b9b3a80193205c22b2fe29305185) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change icon to error because parsing error is an errorShane Wang2012-03-291-1/+1
| | | | | | | (Bitbake rev: 66fcc8cdf8fb3365cd4a056b94fe3aa3e1aedc86) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clear the building state after a successful build, as a failed build doesShane Wang2012-03-291-0/+1
| | | | | | | (Bitbake rev: afd51c524006e8e6db1542cc2ebc5decab3faa1b) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Replace "local.conf" in error messageDongxiao Xu2012-03-291-0/+1
| | | | | | | (Bitbake rev: c8dac1eefab79b12243468986c37f391c3421134) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change the format to store image_fstype variableDongxiao Xu2012-03-291-3/+3
| | | | | | | | | Use string format to store image_fstype instead of a list. (Bitbake rev: c91fe7f9d21939fd437dbd79a923499f90fc95c6) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Remember user settings when reparse configDongxiao Xu2012-03-291-6/+7
| | | | | | | | | | | When config reparse is issued (e.x, adding a layer), we will firstly remember the past user settings by setting them to bitbake server, and then do the reparse. (Bitbake rev: 8a1f6953a082d8002585bfd9e8a67d2a7f69d6aa) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Update configuration after parsingDongxiao Xu2012-03-291-0/+23
| | | | | | | | | | We need to update the parameters stored in Hob side after configuration is parsed. (Bitbake rev: 9560e4ccef497e878f2cb8624136ab8f193c061a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Inherit image_types.bbclass in set_user_config()Dongxiao Xu2012-03-291-0/+1
| | | | | | | (Bitbake rev: f34cb901bd9b3598f4da528cc54f6faa57c9d389) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Improve for init a new buildDongxiao Xu2012-03-291-1/+3
| | | | | | | | | | | | After a successful build, user can initiate a new build by clicking "Build a new image" button. The previous solution is simply switch to the first screen and unset MACHINE. This commit will try to re-init everything for the new build. (Bitbake rev: df63e15c41d129fe0cff6b8ab3c97434c4809c83) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Define a variable to store the image name and toolchainDongxiao Xu2012-03-291-2/+7
| | | | | | | (Bitbake rev: d0b64d901b33c9e5247dbb2b05c89a1d65abbf8b) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Remove un-used signal and functionsDongxiao Xu2012-03-291-4/+0
| | | | | | | (Bitbake rev: 9c632467eddc267ed54b78a40d5b1413287e3032) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: hob progress bar should not be red when user stops buildJoshua Lock2012-03-291-7/+14
| | | | | | | | | | If the user explicitly stops the build telling them the build failed is a misnomer. (Bitbake rev: 722f4f0e31f9debf5ad20a91da759a8c25151567) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogueJoshua Lock2012-03-291-1/+3
| | | | | | | | | | Because layer changes may take some time allow the user to cancel out of the dialogue and prevent Hob from applying any of the changes made. (Bitbake rev: a2d1c035a5dd3d112a887e4386dfaf9b0c37c104) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add Templates and Settings on image details screenShane Wang2012-03-291-7/+12
| | | | | | | | | | | | | | | | This patch is to add Templates and Settings tool buttons on the image details screen, which makes things easier and simplier. In order to fulfill that, the code splits the functions show_load_template_dialog() and show_adv_settings_dialog() in builder.py because they will possibly be called from different screens later. [Yocto #2163] (Bitbake rev: 29bea7b7076a7b74d36237da86a4eff6605d17ec) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: allow users to setup the proxiesShane Wang2012-03-281-0/+39
| | | | | | | | | | | This patch is to read the proxy variables such as all_proxy, http_proxy, https_proxy, ftp_proxy, GIT_PROXY_HOST, GIT_PROXY_PORT, CVS_PROXY_HOST, and CVS_PROXY_PORT from the bitbake server, show them on the Settings dialog for users to change and set proxies for the build. (From Poky rev: bbef66e4005def54d70d3720ec131fa7edc22e2a) (Bitbake rev: 66c63167cd139706100bfa35eb4ca66c98407615) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: change the implementation way about get config info for building logLiming An2012-03-281-0/+7
| | | | | | | | | | | | | Make the building log config information to get from the bitbake parameters directly, and then cancel the old way of filting the building log on running [YOCTO #2144] (From Poky rev: b52025a0fe2ca65e4d8549b1b90f5813b0c2e39f) (Bitbake rev: 983f8848da0be02dadb1bb6530ff736325d014ba) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: change the recipe pasing error dialog icon from 'dialog-info' to ↵Liming An2012-03-281-1/+1
| | | | | | | | | | | | | 'dialog-error' [YOCTO #2109] (From Poky rev: 1fbd6eefc68ec38875968b8513739b732da412b8) (Bitbake rev: 840a566ce4c18a1c63ee82257de06c3ed910fe88) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: tweak build status displayJoshua Lock2012-03-281-2/+1
| | | | | | | | | | | Use two lines to display the active task and recipe, per visual design. (From Poky rev: ea61503fc439e033b341bb7a50bac77c5e88834e) (Bitbake rev: ab508907308e8b1bc1b097df1f583dffd7ef25af) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: apply primary/secondary dialogue button stylingJoshua Lock2012-03-281-39/+69
| | | | | | | | | | | | | | | | | | | The design calls for primary buttons which are orange and large and secondary buttons which are subtle with pale blue text. This is so that the user is drawn towards the primary action and their use of the application is more guided. This patch uses HobButton and HobAltButton classes to style all dialogue buttons accordingly. Fixes [YOCTO #2125] (From Poky rev: 1a52fe9f9e79f33686bd92613fc93eb97daacab8) (Bitbake rev: 723ad434d427398b202b70f27762878315ffb22c) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add build status labels in the build details screen to make it more ↵Shane Wang2012-03-251-0/+3
| | | | | | | | | | | | | | close to the visual design This patch is to add build status (incl. "Running task XX of XX: XXXXXX") in the build details screen, in order to provide clear information about task in progress and make the GUI close to the visual design. [Yocto #2098] (Bitbake rev: 02d3451b2e0744204a1280f9effe9fd862bb4faf) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: use a PersistentTooltip for the Brought in by informationJoshua Lock2012-03-251-5/+7
| | | | | | | (Bitbake rev: c57a45c64a17f1b9dd89743692c3da130ffd38f4) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Fix typo: BB_NUMBER_THREAD -> BB_NUMBER_THREADSRobert P. J. Day2012-03-251-2/+2
| | | | | | | | | Correct some apparent misspellings of BB_NUMBER_THREADS. (Bitbake rev: 175e55db8f0762a2f2f0aaf3ca48169016b9ef6b) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Avoid getting TMPDIR in hardcodeDongxiao Xu2012-03-251-1/+2
| | | | | | | | | We should get TMPDIR from bitbake server instead of hardcode. (Bitbake rev: 91bdd43468448385e07a57ac54ce25db9a8edf03) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: runqemu and deployment functionality filterDongxiao Xu2012-03-251-0/+3
| | | | | | | | | | | | | | | | Implement the filter for runqemu and deployment functionality. runqemu 1) suffix should be in the list of RUNNABLE_IMAGE_TYPES. 2) machine should match the pattern of RUNNABLE_MACHINE_PATTERNS. deployment: 1) suffix should be in the list of DEPLOYMENT_IMAGE_TYPES. (Bitbake rev: de4d09a8d100b81622300db5f46627c649812abd) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change the Hob initialization processDongxiao Xu2012-03-251-6/+11
| | | | | | | | | | This change allows adding extra inherits before getting all the parameters. (Bitbake rev: eb993c0bad03718f9d3e133667cd0fefca23611a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Cleanup for hobeventhandler.pyDongxiao Xu2012-03-251-1/+1
| | | | | | | (Bitbake rev: 8bd6d8bb5e5ca0ca0ea2e2d31ffdc6df1aca16a2) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/builder: change dialogue title to LayersJoshua Lock2012-03-231-1/+1
| | | | | | | (Bitbake rev: 03e645cda56e9f8cf1fa94775534369b77518767) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/builder: only show a close button on the Layer SelectorJoshua Lock2012-03-231-2/+1
| | | | | | | | | | | | Per discussion with the design team the LayerSelectionDialog should only have a close button. See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2083#c10 (Bitbake rev: 65d92efe2786f21b8a2790ef0383f87b6dc15b57) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change window title from HOB to HobShane Wang2012-03-221-1/+1
| | | | | | | | | | | [Yocto #2147] (From Poky rev: 9291e6b751171a49fcd8cd0d13c6b22479e542bd) (Bitbake rev: 6d9dc83e566b7d3a4903fdba30053233d97e8381) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Remove split model in GTK HobDongxiao Xu2012-03-221-11/+2
| | | | | | | | | | | | | Since the GTK Hob will not use the server/client split model, thus remove it from current Hob code. But we still keep the core mechanism in bitbake server. (From Poky rev: 983ea0265a53e0725dcbf9085ea767ebbc155ae5) (Bitbake rev: 8c129e05a94d457860d883c9b2934a5559de8d9b) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: save CONF_VERSION and LCONF_VERSION into templateDongxiao Xu2012-03-201-0/+6
| | | | | | | | | | | | To pass the sanity check, we need to define CONF_VERSION and LCONF_VERSION in local.conf and bblayers.conf. [YOCTO #2119] (Bitbake rev: d595960fea0988df9004d927bc2ec3439540dd9c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: show indicators on the tabs of the Hob notebookShane Wang2012-03-201-0/+5
| | | | | | | | | | | | This patch is to show the indicators (e.g., the number of the issues) in the build details page to highlight. (From Poky rev: 2e08a8e6818b8f1df7eaac499ebc3a5854efe7be) (Bitbake rev: f2eead1bc20c48b2f36e880a879a5a50e6e6567b) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Add stop button for parsing progressDongxiao Xu2012-03-151-1/+21
| | | | | | | | | Add a Stop button to allow user to quit the parsing process. (Bitbake rev: a1936ff544f21cde0765f24dc9b0af126ca98752) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>