blob: e5b8f5cec32c2f9bd4852a2412717344e914249e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', ' bitstream', d)}"
DEPENDS += 'u-boot-xlnx-scr'
# Only adjust the depends when on versal
BOOTSCR_DEP = ''
BOOTSCR_DEP:versal = 'u-boot-xlnx-scr:do_deploy'
do_compile[depends] .= " ${BOOTSCR_DEP}"
do_compile:append:versal() {
dd if=/dev/zero bs=256M count=1 > ${B}/QEMU_qspi.bin
dd if=${B}/BOOT.bin of=${B}/QEMU_qspi.bin bs=1 seek=0 conv=notrunc
dd if=${DEPLOY_DIR_IMAGE}/boot.scr of=${B}/QEMU_qspi.bin bs=1 seek=66584576 conv=notrunc
}
do_deploy:append:versal () {
install -m 0644 ${B}/QEMU_qspi.bin ${DEPLOYDIR}/${QEMUQSPI_BASE_NAME}.bin
ln -sf ${QEMUQSPI_BASE_NAME}.bin ${DEPLOYDIR}/QEMU_qspi-${MACHINE}.bin
}
|