diff options
Diffstat (limited to 'meta-amd-distro/conf/distro/poky-amd.conf')
-rw-r--r-- | meta-amd-distro/conf/distro/poky-amd.conf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-amd-distro/conf/distro/poky-amd.conf b/meta-amd-distro/conf/distro/poky-amd.conf index c9d886b9..fd4cd300 100644 --- a/meta-amd-distro/conf/distro/poky-amd.conf +++ b/meta-amd-distro/conf/distro/poky-amd.conf @@ -22,3 +22,32 @@ IMAGE_ROOTFS_EXTRA_SPACE = "51200" # We want information about package and image contents INHERIT += "buildhistory" BUILDHISTORY_COMMIT ?= "1" + +# IMAGE_FSTYPES "live" is enabled by default in oe-core which is +# responsible for building both "iso" & "hddimg". Although the +# right way to specify which ones to build is using NOISO & NOHDD +# vars, there's a specific scenario where Toaster build artifacts +# collection mechanism depends on the IMAGE_FSTYPES variable to +# specify the image types explicitly (See: commit a5b1aa4). +# Also, "iso" doesn't get built even if specified explicitly +# because NOISO = "1" by default (See c787dcd in oe-core). +# Therefore, we do as follows: +IMAGE_FSTYPES += "wic wic.bmap iso" +NOISO = "0" +NOHDD = "1" + +WKS_FILES ?= "amd-usbimage.wks" + +# Contents of IMAGE_BOOT_FILES are deployed into "amd-usbimage.wks" wic image +IMAGE_BOOT_FILES = " \ + ${EFIIMGDIR}${EFIDIR}/*;EFI/BOOT/ \ + ${EFIIMGDIR}/startup.nsh;startup.nsh \ + ${KERNEL_IMAGETYPE} \ + ${INITRD_IMAGE_LIVE}-${MACHINE}.cpio.gz;initrd \ + ${ROOTFS};rootfs.img \ +" + +# This makes sure that boot files are deployed before do_image_wic starts execution +do_image_wic[depends] += "${IMAGE_BASENAME}:do_bootimg" + +IMAGE_OVERHEAD_FACTOR = "1.1" |