diff options
author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2017-01-06 20:03:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-16 18:05:12 +0000 |
commit | 436df4de376c56685b7a982a0deaaeea236be86d (patch) | |
tree | 4b45235bbd53331b47d14e51689b0043def6d69d /scripts/lib/wic/utils | |
parent | c04a5673b6de5a324e9b827b36da20ce099f91f5 (diff) | |
download | poky-436df4de376c56685b7a982a0deaaeea236be86d.tar.gz |
wic/isoimage-isohybrid: remove do_stage_partition()
The purpouse of this function was to check dependencies for building a
hybrid iso and build them using bitbake if not found. Calling bitbake in
this context means this wic plugin itself cannot be instrumented inside
bitbake recipes which is undesirable, the benefits of this are clear:
there is no need to maintain outside scripts to generate an iso using wic
and the isohybrid building logic can be further abstracted away into an
isohybrid.bbclass in the future which can be easily inherited or something
similar.
So remove the function and add all dependencies to NATIVE_RECIPES so that
wic can print useful errors when they're not built.
To automate building the isohybrid image dependencies, add the following
somewhere in your image build inheritence hierarcy (or maybe create a
bbclass in the future to do these sort of things automatically):
DEPENDS += "syslinux syslinux-native cdrtools-native e2fsprogs-native \
parted-native dosfstools-native mtools-native grub-efi-native"
(From OE-Core rev: ba4346069ab87f1cf942d1928f911eca6a9d65cd)
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils')
-rw-r--r-- | scripts/lib/wic/utils/oe/misc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index 2a2fcc94fb..73d8c225ad 100644 --- a/scripts/lib/wic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py | |||
@@ -36,8 +36,11 @@ from wic.utils import runner | |||
36 | 36 | ||
37 | # executable -> recipe pairs for exec_native_cmd | 37 | # executable -> recipe pairs for exec_native_cmd |
38 | NATIVE_RECIPES = {"bmaptool": "bmap-tools", | 38 | NATIVE_RECIPES = {"bmaptool": "bmap-tools", |
39 | "grub-mkimage": "grub-efi-native", | ||
40 | "isohybrid": "syslinux", | ||
39 | "mcopy": "mtools", | 41 | "mcopy": "mtools", |
40 | "mkdosfs": "dosfstools", | 42 | "mkdosfs": "dosfstools", |
43 | "mkisofs": "cdrtools", | ||
41 | "mkfs.btrfs": "btrfs-tools", | 44 | "mkfs.btrfs": "btrfs-tools", |
42 | "mkfs.ext2": "e2fsprogs", | 45 | "mkfs.ext2": "e2fsprogs", |
43 | "mkfs.ext3": "e2fsprogs", | 46 | "mkfs.ext3": "e2fsprogs", |
@@ -45,6 +48,7 @@ NATIVE_RECIPES = {"bmaptool": "bmap-tools", | |||
45 | "mkfs.vfat": "dosfstools", | 48 | "mkfs.vfat": "dosfstools", |
46 | "mksquashfs": "squashfs-tools", | 49 | "mksquashfs": "squashfs-tools", |
47 | "mkswap": "util-linux", | 50 | "mkswap": "util-linux", |
51 | "mmd": "syslinux", | ||
48 | "parted": "parted", | 52 | "parted": "parted", |
49 | "sfdisk": "util-linux", | 53 | "sfdisk": "util-linux", |
50 | "sgdisk": "gptfdisk", | 54 | "sgdisk": "gptfdisk", |