diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-29 10:02:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:24 +0100 |
commit | 564c83be5ee1f69e6d097c20dbfa3a76cccc0aa0 (patch) | |
tree | 75ee8ffa60e28f9275ff7b5d2b32bb97e2c3b2b4 /bitbake/lib/bb/cooker.py | |
parent | 140744c4701bcac0dd61e11303d008f2ea34fc1b (diff) | |
download | poky-564c83be5ee1f69e6d097c20dbfa3a76cccc0aa0.tar.gz |
bitbake: hob/bitbake: save the description of a custom image
When an new image is saved, the dialog for this action has
a field for the description. Changed how an image is saved, by
appending the DESCRIPTION variable at the end of the .bb file.
[YOCTO #4193]
(Bitbake rev: 5629007f2b984005e3a8ac5d9b71422cbc2f1409)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 4a5638fb60..7ca9947df8 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1100,7 +1100,7 @@ class BBCooker: | |||
1100 | 1100 | ||
1101 | self.configuration.server_register_idlecallback(buildTargetsIdle, rq) | 1101 | self.configuration.server_register_idlecallback(buildTargetsIdle, rq) |
1102 | 1102 | ||
1103 | def generateNewImage(self, image, base_image, package_queue, timestamp): | 1103 | def generateNewImage(self, image, base_image, package_queue, timestamp, description): |
1104 | ''' | 1104 | ''' |
1105 | Create a new image with a "require"/"inherit" base_image statement | 1105 | Create a new image with a "require"/"inherit" base_image statement |
1106 | ''' | 1106 | ''' |
@@ -1125,6 +1125,9 @@ class BBCooker: | |||
1125 | package_install += "\"\n" | 1125 | package_install += "\"\n" |
1126 | imagefile.write(package_install) | 1126 | imagefile.write(package_install) |
1127 | 1127 | ||
1128 | description_var = "DESCRIPTION = \"" + description + "\"\n" | ||
1129 | imagefile.write(description_var) | ||
1130 | |||
1128 | self.state = state.initial | 1131 | self.state = state.initial |
1129 | if timestamp: | 1132 | if timestamp: |
1130 | return timestr | 1133 | return timestr |