Commit b36eb945 authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Did some clean-up

parent ddb85b18
SUMMARY = "toki SD card image"
MACHINE_HWCODECS ??= ""
#IMAGE_INSTALL = "xilinx-bootbin"
SUMMARY = "toki-xilinx SD card image"
LICENSE = "MIT"
inherit image
#python do_image_prepend () {
# from oeqa.core.target.qemu import supported_fstypes
# supported_fstypes.append('wic.qemu-sd')
#}
#inherit image_types_wic
IMAGE_INSTALL = "xilinx-bootbin"
#IMAGE_BOOT_FILES = "BOOT-${MACHINE}.bin"
#IMAGE_FSTYPES = "wic.qemu-sd"
#INITRAMFS_FSTYPES = ""
IMAGE_BASENAME = "toki-xilinx-image"
IMAGE_ROOTFS_ALIGNMENT = "4096"
IMAGE_BASENAME = "toki-xilinx-image"
WKS_FILE = "sdimage-zcu102-zynqmp.wks"
#WKS_FILE_CHECKSUM = "72b2e63c57d71b171a586e0fc018a6eb"
do_image_wic[depends] += " qemu-devicetrees:do_deploy xilinx-bootbin:do_deploy"
#python do_image_wic () {
#}
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
}
LICENSE = "CLOSED"
# Here we will generate the sd card image and depend on the xilinx-bootbin target, to generate
# the BOOT.bin which is later on copied to the SD card image.
DEPENDS += "xilinx-bootbin dosfstools-native coreutils-native mtools-native"
#do_compile[depends] += "xilinx-bootbin:do_deploy"
do_compile() {
dd if=/dev/zero of=${B}/qemu_sd.img bs=256M count=1; sync
mkfs.vfat -F 32 ${B}/qemu_sd.img
mcopy -i qemu_sd.img /BOOT-${MACHINE}.bin ::/
sync
}
FILES_${PN} += "${bindir}/qemu_sd.img"
# 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