Commit 18242f2f authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Started to experiment with an SD-card image build

parent f40a616a
LICENSE = "CLOSED"
IMAGE_INSTALL = "xilinx-bootbin"
IMAGE_LINGUAS = ""
IMAGE_FEATURES = ""
IMAGE_FSTYPES = "wic.qemu-sd"
IMAGE_BOOT_FILES = "BOOT-${MACHINE}.bin;BOOT.bin"
#RECIPE_SYSROOT_NATIVE = "${WORKDIR}/recipe-sysroot-native"
KERNELDEPMODDEPEND = ""
WKS_FILES = "sdimage-zcu102.wks"
do_image_wic[depends] = "xilinx-bootbin:do_deploy \
dosfstools-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \
e2fsprogs-native:do_populate_sysroot \
"
#python () {
# initRdImage = d.getVar("INITRD_IMAGE", True)
# if initRdImage:
# d.appendVarFlag("do_image_wic", "depends", " " + initRdImage + ":do_image_complete")
#}
inherit image
do_build[depends] = ""
do_rootfs[noexec] = "1"
#do_rootfs_wicenv[noexec] = "1"
python set_image_size_prepend () {
d.setVar('ROOTFS_SIZE', 0)
d.setVarFlag('ROOTFS_SIZE', 'export', '1')
return
}
# short-description: Create SD card image with a boot partition
# long-description: Creates a partitioned SD card image. Boot files
# are located in the first vfat partition.
# !! the partition alignment must match that found in test files
# we add 6MB to the boot partition to allow devs to copy a fpga.bin for example
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label ZBOOT --active --align 4096 --extra-space 6
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment