Skip to contentSkip to conversation

classes/image_types: add a variable to list available IMAGE_FSTYPE's

PATCH Applied Joshua Lock 2 participants 3 messages Jul 13, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 classes/image_types: add a variable to list available IMAGE_FSTYPE's

In reply to a message not in the archive

This is for use in the Hob GUI to enable the user to change the type of the generated image.

---
 meta/classes/image_types.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/image_types.bbclass +2 -0
index 89a745c..1108802 100644
@@ -102,3 +102,5 @@ IMAGE_DEPENDS_cpio.xz = "xz-native"
 IMAGE_DEPENDS_ubi = "mtd-utils-native"
 IMAGE_DEPENDS_ubifs = "mtd-utils-native"
 
+# This variable is available to request which values are suitable for IMAGE_FSTYPES
+IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext3 ext3.gz squashfs squashfs-lzma ubi"
Signature · 1 line
1.7.6
#3 lore raw

PATCH 2/2 scripts/hob: wrapper script to run hob gui with a UI specific config file

In reply to a message not in the archive

This ensures any configuration changes made in the GUI are only set when using hob.
The default hob.local.conf is generated with a line which adds image_types to INHERITS so that the GUI can introspect the available FSTYPES.

---
 scripts/hob |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100755 scripts/hob
scripts/hob new file +18 -0
new file mode 100755
index 0000000..19930ba
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+if ! (test -r "$BUILDDIR/conf/hob.local.conf"); then
+    cat <<EOM
+You had no conf/hob.local.conf file. An initial version of this configuration
+file has therefore been created for you. This file will be used to store any
+configuration values you set in hob.
+
+EOM
+(cat <<EOF
+INHERIT += "image_types"
+EOF
+) > conf/hob.local.conf
+fi
+
+bitbake -R conf/hob.local.conf -t xmlrpc -u hob
+
+ret=$?
+exit $ret
Signature · 1 line
1.7.6
#2 lore raw
In reply to Joshua Lock
Quoted 13 lines · Joshua Lock

This is for use in the Hob GUI to enable the user to change the type of the generated image.

---
 meta/classes/image_types.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/image_types.bbclass +0 -0
index 89a745c..1108802 100644

meta/classes/image_types.bbclass IMAGE_DEPENDS_cpio.xz = "xz-native" · line 106

Quoted 5 lines
meta/classes/image_types.bbclass +2 -0
@@ -102,3 +102,5 @@ IMAGE_DEPENDS_cpio.xz = "xz-native"
 IMAGE_DEPENDS_ubi = "mtd-utils-native"
 IMAGE_DEPENDS_ubifs = "mtd-utils-native"
 
+# This variable is available to request which values are suitable for IMAGE_FSTYPES
+IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext3 ext3.gz squashfs squashfs-lzma ubi"

Merged to master, thanks.

Richard