summaryrefslogtreecommitdiffstats
path: root/meta/classes/image_types.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/image_types.bbclass')
-rw-r--r--meta/classes/image_types.bbclass15
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index f1aef86fad..cd901c105f 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -1,7 +1,18 @@
1
1def get_imagecmds(d): 2def get_imagecmds(d):
2 cmds = "\n" 3 cmds = "\n"
3 old_overrides = bb.data.getVar('OVERRIDES', d, 0) 4 old_overrides = bb.data.getVar('OVERRIDES', d, 0)
4 for type in bb.data.getVar('IMAGE_FSTYPES', d, True).split(): 5
6 types = bb.data.getVar('IMAGE_FSTYPES', d, True).split()
7 # Live images will be processed via inheriting bbclass and
8 # does not get processed here.
9 # live images also depend on ext3 so ensure its present
10 if "live" in types:
11 if "ext3" not in types:
12 types.append("ext3")
13 types.remove("live")
14
15 for type in types:
5 localdata = bb.data.createCopy(d) 16 localdata = bb.data.createCopy(d)
6 localdata.setVar('OVERRIDES', '%s:%s' % (type, old_overrides)) 17 localdata.setVar('OVERRIDES', '%s:%s' % (type, old_overrides))
7 bb.data.update_data(localdata) 18 bb.data.update_data(localdata)
@@ -103,4 +114,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native"
103IMAGE_DEPENDS_ubifs = "mtd-utils-native" 114IMAGE_DEPENDS_ubifs = "mtd-utils-native"
104 115
105# This variable is available to request which values are suitable for IMAGE_FSTYPES 116# This variable is available to request which values are suitable for IMAGE_FSTYPES
106IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext3 ext3.gz squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma" 117IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext3 ext3.gz live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"