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

[chg] Made xilinx-bootbin target working

parent d8a247e3
BIF_PARTITION_ATTR_remove_toki = "atf u-boot"
BIF_PARTITION_ATTR_append_toki = " toki"
BIF_PARTITION_ATTR_toki = "fsbl pmu bitstream amp-master"
TOKI_INIT_IMAGE ?= "toki-init"
BIF_PARTITION_ATTR[amp-master] = "destination_cpu=a53-0"
BIF_PARTITION_IMAGE[amp-master] = "${DEPLOY_DIR_IMAGE}/toki-amp-master.elf"
BIF_PARTITION_DEPENDS[amp-master] = "toki-amp-master:do_deploy"
BIF_PARTITION_ATTR[toki] ?= "destination_cpu=a53-0,exception_level=el-3"
BIF_PARTITION_IMAGE[toki] ?= "${DEPLOY_DIR_IMAGE}/${TOKI_INIT_IMAGE}.elf"
BIF_PARTITION_DEPENDS[toki] ?= "${TOKI_INIT_IMAGE}:do_deploy"
#do_install_toki() {
# install -d ${D}${bindir}
# install -m 0644 ${B}/BOOT.bin ${D}${bindir}/BOOT-${MACHINE}.bin
#}
#
#FILES_${PN}_toki += "${bindir}/BOOT-${MACHINE}.bin"
DEPENDS += "xil xilpm"
#inherit qemuboot-xilinx
#
## Override Xilinx changes
#QB_DEFAULT_FSTYPE_qemuboot-xilinx = "none"
#QB_ROOTFS_OPT_qemuboot-xilinx = ""
#
#python () {
# d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-boot mode=3', ''))
# d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-device loader,file=%s/arm-trusted-firmware.elf,cpu-num=0' % d.getVar('DEPLOY_DIR_IMAGE'), ''))
# d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-device loader,file=%s/u-boot.elf' % d.getVar('DEPLOY_DIR_IMAGE'), ''))
#}
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"
DEPENDS += "xil"
inherit qemuboot-xilinx
# Override Xilinx changes
QB_DEFAULT_FSTYPE_qemuboot-xilinx = "none"
QB_ROOTFS_OPT_qemuboot-xilinx = ""
python () {
d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-boot mode=3', ''))
d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-device loader,file=%s/arm-trusted-firmware.elf,cpu-num=0' % d.getVar('DEPLOY_DIR_IMAGE'), ''))
d.setVar('QB_OPT_APPEND', d.getVar('QB_OPT_APPEND').replace('-device loader,file=%s/u-boot.elf' % d.getVar('DEPLOY_DIR_IMAGE'), ''))
}
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