diff options
| author | John Toomey <john.toomey@amd.com> | 2024-08-14 17:14:49 +0100 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-16 09:54:55 -0500 |
| commit | d95d0158187802a913236a67758d7e8e629dc8ae (patch) | |
| tree | ccaf58f6cf3567691bf0fe15ffaed60ceb88852b /meta-xilinx-standalone-sdt | |
| parent | 80b27ad0fa13441d267be1008aeb3ab1ed213aab (diff) | |
| download | meta-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.bb | 45 |
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 @@ | |||
| 1 | inherit esw python3native esw_apps_common deploy | ||
| 2 | |||
| 3 | DEPENDS += "libxil xiltimer bootgen-native" | ||
| 4 | |||
| 5 | PROVIDES = "virtual/imgsel" | ||
| 6 | RCONFLICTS:${PN} = "imgsel" | ||
| 7 | |||
| 8 | ESW_COMPONENT_SRC = "/src/" | ||
| 9 | ESW_EXECUTABLE_NAME = "imgsel" | ||
| 10 | |||
| 11 | SRC_URI:append = " git://github.com/Xilinx/image-selector.git;protocol=https;branch=main;destsuffix=image-selector;name=image-selector" | ||
| 12 | SRCREV_image-selector = "809441712855a64a35496192c180e31328a78b7b" | ||
| 13 | |||
| 14 | do_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 | |||
| 23 | OECMAKE_SOURCEPATH = "${WORKDIR}/${BPN}/${ESW_COMPONENT_SRC}" | ||
| 24 | |||
| 25 | do_compile:append () { | ||
| 26 | cat > ${WORKDIR}/${PN}.bif << EOF | ||
| 27 | the_ROM_image: | ||
| 28 | { | ||
| 29 | [bootloader,destination_cpu=a53-0] ${B}/${ESW_EXECUTABLE_NAME}.elf | ||
| 30 | } | ||
| 31 | EOF | ||
| 32 | |||
| 33 | bootgen -image ${WORKDIR}/${PN}.bif -arch ${SOC_FAMILY} -w -o ${B}/${PN}.bin | ||
| 34 | } | ||
| 35 | |||
| 36 | do_install[noexec] = "1" | ||
| 37 | |||
| 38 | do_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 | |||
| 45 | addtask deploy before do_build after do_install | ||
