classes/image_types: add a variable to list available IMAGE_FSTYPE's
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/2 classes/image_types: add a variable to list available IMAGE_FSTYPE's
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
@@ -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
Richard Purdie
AppliedQuoted 13 lines · Joshua Lock
This is for use in the Hob GUI to enable the user to change the type of the generated image.
Signed-off-by Joshua Lock <[email protected]>--- meta/classes/image_types.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)meta/classes/image_types.bbclass +0
-0
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
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 archiveThis 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
@@ -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