summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-sdt
diff options
context:
space:
mode:
authorJohn Toomey <john.toomey@amd.com>2024-08-14 17:14:49 +0100
committerMark Hatle <mark.hatle@amd.com>2024-08-16 09:54:55 -0500
commitd95d0158187802a913236a67758d7e8e629dc8ae (patch)
treeccaf58f6cf3567691bf0fe15ffaed60ceb88852b /meta-xilinx-standalone-sdt
parent80b27ad0fa13441d267be1008aeb3ab1ed213aab (diff)
downloadmeta-xilinx-d95d0158187802a913236a67758d7e8e629dc8ae.tar.gz
image-selector: Add SDT image selector recipe
Also add imgsel wrapper allowing for the correct image-selector recipe to be built depending if the XSCT or SDT flow is in use Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-sdt')
-rw-r--r--meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb45
1 files changed, 45 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..eee73fcb
--- /dev/null
+++ b/meta-xilinx-standalone-sdt/recipes-bsp/image-selector/image-selector_2024.2.bb
@@ -0,0 +1,45 @@
1inherit esw python3native esw_apps_common deploy
2
3DEPENDS += "libxil xiltimer bootgen-native"
4
5PROVIDES = "virtual/imgsel"
6RCONFLICTS:${PN} = "imgsel"
7
8ESW_COMPONENT_SRC = "/src/"
9ESW_EXECUTABLE_NAME = "imgsel"
10
11SRC_URI:append = " git://github.com/Xilinx/image-selector.git;protocol=https;branch=main;destsuffix=image-selector;name=image-selector"
12SRCREV_image-selector = "809441712855a64a35496192c180e31328a78b7b"
13
14do_configure:prepend() {
15 (
16 cd ${S}
17 lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}
18 install -m 0644 *.cmake ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}/
19 install -m 0644 ${S}/cmake/UserConfig.cmake ${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}
20 )
21}
22
23OECMAKE_SOURCEPATH = "${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}"
24
25do_compile:append () {
26cat > ${WORKDIR}/${PN}.bif << EOF
27 the_ROM_image:
28 {
29 [bootloader,destination_cpu=a53-0] ${B}/${ESW_EXECUTABLE_NAME}.elf
30 }
31EOF
32
33 bootgen -image ${WORKDIR}/${PN}.bif -arch ${SOC_FAMILY} -w -o ${B}/${PN}.bin
34}
35
36do_install[noexec] = "1"
37
38do_deploy() {
39 install -Dm 0644 ${B}/${ESW_EXECUTABLE_NAME}.elf ${DEPLOYDIR}/${PN}.elf
40 ln -sf ${PN}.elf ${DEPLOYDIR}/${PN}-${MACHINE}.elf
41 install -Dm 0644 ${B}/${PN}.bin ${DEPLOYDIR}/${PN}.bin
42 ln -sf ${PN}.bin ${DEPLOYDIR}/${PN}-${MACHINE}.bin
43}
44
45addtask deploy before do_build after do_install