blob: 8b1e52ac03e52fc8918754027d1e79b7250a3161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
DESCRIPTION = "Recipe to extract pmc_cdo for qemu usage"
LICENSE = "CLOSED"
inherit deploy
PROVIDES = "virtual/cdo"
DEPENDS += "bootgen-native"
do_compile[depends] += "virtual/boot-bin:do_deploy"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE:versal = "versal"
PACKAGE_ARCH ?= "${MACHINE_ARCH}"
B = "${WORKDIR}/build"
BOOTGEN_CMD ?= "bootgen"
BOOTGEN_ARGS ?= "-arch versal"
BOOTGEN_OUTFILE ?= "${DEPLOY_DIR_IMAGE}/boot.bin"
# bootgen extracts the pmc_cdo file from the boot.bin. By default this
# happens in the same directory as the boot.bin. We need to move it to
# this directory, as do_compile should never write into a deploy dir
do_compile() {
${BOOTGEN_CMD} ${BOOTGEN_ARGS} -dump_dir ${B} -dump ${BOOTGEN_OUTFILE} pmc_cdo
}
do_install[noexec] = '1'
do_deploy() {
install -d ${DEPLOYDIR}/CDO
install -m 0644 ${B}/pmc_cdo.bin ${DEPLOYDIR}/CDO/pmc_cdo.bin
install -m 0644 ${B}/pmc_cdo.bin ${DEPLOYDIR}/pmc_cdo.bin
}
addtask do_deploy after do_compile
|