From: Saul Wold <sgw@linux.intel.com>
To: Valentin Popa <valentin.popa@intel.com>,
"dvhart@linux.intel.com" <dvhart@linux.intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH_V4] image types: split live into iso and hddimg
Date: Fri, 06 Sep 2013 12:03:33 -0700 [thread overview]
Message-ID: <522A2705.2020906@linux.intel.com> (raw)
In-Reply-To: <1378398301-15303-1-git-send-email-valentin.popa@intel.com>
On 09/05/2013 09:25 AM, Valentin Popa wrote:
> Changes to split live into iso and hddimg without
> adding a new image type class.
>
> [YOCTO #3197]
> ---
> meta/classes/image.bbclass | 11 ++++++++++-
> meta/classes/image_types.bbclass | 11 +++++++----
> meta/conf/machine/include/ia32-base.inc | 2 +-
This is one place, but I genericx86* use live also, although I am
talking with Darren about merging his changes to meta-yocto-bsp with
this some how, so I am going to hold this patch until we work that part out.
Sau!
> 3 files changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index ea59c36..3f76d80 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -87,7 +87,16 @@ do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-nati
> do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot"
> do_rootfs[recrdeptask] += "do_packagedata"
>
> -IMAGE_TYPE_live = '${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)}'
> +NOISO = '${@base_contains("IMAGE_FSTYPES", "iso", "0", "1", d)}'
> +NOHDD = '${@base_contains("IMAGE_FSTYPES", "hddimg", "0", "1", d)}'
> +
> +def build_live(d):
> + if d.getVar('NOISO', True) == "0" or d.getVar('NOHDD', True) == "0":
> + return "live"
> + else:
> + return "empty"
> +
> +IMAGE_TYPE_live = '${@build_live(d)}'
> inherit image-${IMAGE_TYPE_live}
> IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}'
> inherit image-${IMAGE_TYPE_vmdk}
> diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
> index c168ed5..6af6499 100644
> --- a/meta/classes/image_types.bbclass
> +++ b/meta/classes/image_types.bbclass
> @@ -43,12 +43,15 @@ def get_imagecmds(d):
> if "ext3" not in alltypes:
> alltypes.append("ext3")
> types.remove("vmdk")
> - if "live" in types:
> + if "iso" in types or "hddimg" in types:
> if "ext3" not in types:
> types.append("ext3")
> if "ext3" not in alltypes:
> alltypes.append("ext3")
> - types.remove("live")
> + if "iso" in types:
> + types.remove("iso")
> + if "hddimg" in types:
> + types.remove("hddimg")
>
> if d.getVar('IMAGE_LINK_NAME', True):
> if d.getVar('RM_OLD_IMAGE', True) == "1":
> @@ -115,7 +118,7 @@ def imagetypes_getdepends(d):
> deps = []
> ctypes = d.getVar('COMPRESSIONTYPES', True).split()
> for type in (d.getVar('IMAGE_FSTYPES', True) or "").split():
> - if type == "vmdk" or type == "live":
> + if type == "vmdk" or type == "iso" or type == "hddimg":
> type = "ext3"
> basetype = type
> for ctype in ctypes:
> @@ -230,7 +233,7 @@ 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 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs live squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma vmdk elf"
> +IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma vmdk elf iso hddimg"
>
> COMPRESSIONTYPES = "gz bz2 lzma xz"
> COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}"
> diff --git a/meta/conf/machine/include/ia32-base.inc b/meta/conf/machine/include/ia32-base.inc
> index cb542a5..35d9560 100644
> --- a/meta/conf/machine/include/ia32-base.inc
> +++ b/meta/conf/machine/include/ia32-base.inc
> @@ -10,7 +10,7 @@ MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \
>
> MACHINE_EXTRA_RRECOMMENDS += "kernel-modules eee-acpi-scripts"
>
> -IMAGE_FSTYPES += "ext3 cpio.gz live"
> +IMAGE_FSTYPES += "ext3 cpio.gz iso hddimg"
>
> KERNEL_IMAGETYPE ?= "bzImage"
>
>
next prev parent reply other threads:[~2013-09-06 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 16:25 [PATCH_V4] image types: split live into iso and hddimg Valentin Popa
2013-09-06 19:03 ` Saul Wold [this message]
2013-09-06 22:10 ` Richard Purdie
2013-09-10 21:37 ` Saul Wold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=522A2705.2020906@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=dvhart@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=valentin.popa@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.