aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-distro/conf/distro/poky-amd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-distro/conf/distro/poky-amd.conf')
-rw-r--r--meta-amd-distro/conf/distro/poky-amd.conf19
1 files changed, 19 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..16abc73e 100644
--- a/meta-amd-distro/conf/distro/poky-amd.conf
+++ b/meta-amd-distro/conf/distro/poky-amd.conf
@@ -22,3 +22,22 @@ IMAGE_ROOTFS_EXTRA_SPACE = "51200"
# We want information about package and image contents
INHERIT += "buildhistory"
BUILDHISTORY_COMMIT ?= "1"
+
+# We only support IMAGE_FSTYPES "wic" and "iso"
+IMAGE_FSTYPES = "wic wic.bmap iso"
+
+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"