summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb')
-rw-r--r--meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb
new file mode 100644
index 00000000..69aebf06
--- /dev/null
+++ b/meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb
@@ -0,0 +1,48 @@
1inherit esw python3native esw_apps_common deploy
2
3DEPENDS += "libxil xiltimer bootgen-native"
4
5RCONFLICTS:${PN} = "image-selector-xsct"
6
7ESW_COMPONENT_SRC = "/src/"
8ESW_EXECUTABLE_NAME = "imgsel"
9
10SRC_URI:append = " git://github.com/Xilinx/image-selector.git;protocol=https;branch=main;destsuffix=image-selector;name=image-selector"
11SRCREV_image-selector = "809441712855a64a35496192c180e31328a78b7b"
12
13do_configure:prepend() {
14 (
15 cd ${S}
16 lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}
17 install -m 0644 *.cmake ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}/
18 install -m 0644 ${S}/cmake/UserConfig.cmake ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}
19 )
20}
21
22OECMAKE_SOURCEPATH = "${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}"
23
24do_compile:append () {
25cat > ${WORKDIR}/${PN}.bif << EOF
26 the_ROM_image:
27 {
28 [bootloader,destination_cpu=a53-0] ${B}/${ESW_EXECUTABLE_NAME}.elf
29 }
30EOF
31
32 bootgen -image ${WORKDIR}/${PN}.bif -arch ${SOC_FAMILY} -w -o ${B}/${PN}.bin
33
34 printf "* ${PN}\nSRCREV: ${SRCREV}\nBRANCH: ${BRANCH}\n\n" > ${S}/${PN}.manifest
35}
36
37do_install[noexec] = "1"
38
39do_deploy() {
40 install -Dm 0644 ${B}/${ESW_EXECUTABLE_NAME}.elf ${DEPLOYDIR}/${PN}.elf
41 ln -sf ${PN}.elf ${DEPLOYDIR}/${PN}-${MACHINE}.elf
42 install -Dm 0644 ${B}/${PN}.bin ${DEPLOYDIR}/${PN}.bin
43 ln -sf ${PN}.bin ${DEPLOYDIR}/${PN}-${MACHINE}.bin
44
45 install -Dm 0644 ${S}/${PN}.manifest ${DEPLOYDIR}/${PN}-${MACHINE}.manifest
46}
47
48addtask deploy before do_build after do_install