diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-25 11:37:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:26 +0100 |
commit | 42a4f33fc0626897f0d9b23db53c42def7c2fbf8 (patch) | |
tree | e5bbf8a9c5afc0a65a7038ce44ae1761af6ba9df /bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |
parent | 4640fd053ba352b3b670303a6b53c8e7b38eaeec (diff) | |
download | poky-42a4f33fc0626897f0d9b23db53c42def7c2fbf8.tar.gz |
bitbake: hob: retrieve file name of an image
The entire file name (with the path) is needed to know
if the image is located in the "build" directory or it comes
from layers. According to this information, the image is placed
differently in the combobox.
[YOCTO #4193]
(Bitbake rev: 7d15eccc25b6c96851e4d01401f9f9b7821730b1)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 8da28617e8..3d86b6b431 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
@@ -437,6 +437,7 @@ class ImageConfigurationPage (HobPage): | |||
437 | self.image_combo.append_text(self.builder.recipe_model.__custom_image__) | 437 | self.image_combo.append_text(self.builder.recipe_model.__custom_image__) |
438 | self.image_combo.append_text("--Separator--") | 438 | self.image_combo.append_text("--Separator--") |
439 | 439 | ||
440 | topdir = self.builder.get_topdir() | ||
440 | # append and set active | 441 | # append and set active |
441 | while it: | 442 | while it: |
442 | path = image_model.get_path(it) | 443 | path = image_model.get_path(it) |
@@ -460,6 +461,10 @@ class ImageConfigurationPage (HobPage): | |||
460 | else: | 461 | else: |
461 | allow = True | 462 | allow = True |
462 | 463 | ||
464 | file_name = image_model[path][recipe_model.COL_FILE] | ||
465 | if file_name and topdir in file_name: | ||
466 | allow = False | ||
467 | |||
463 | if allow: | 468 | if allow: |
464 | self.image_combo.append_text(image_name) | 469 | self.image_combo.append_text(image_name) |
465 | if image_name == selected_image: | 470 | if image_name == selected_image: |