From d08f7578070813726e98bb3903f44fae3cc39017 Mon Sep 17 00:00:00 2001 From: Harini T Date: Thu, 25 Jan 2024 18:35:59 +0530 Subject: meta-xilinx-standalone-experimental: Add ddr_self_refresh recipe Add recipe for ddr_self_refresh application. Signed-off-by: Harini T Signed-off-by: Mark Hatle --- .../ddr-self-refresh/ddr-self-refresh_2024.1.bb | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb (limited to 'meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb') diff --git a/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb new file mode 100644 index 00000000..001cefa9 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb @@ -0,0 +1,51 @@ +inherit esw deploy + +ESW_COMPONENT_SRC = "/lib/sw_apps/ddr_self_refresh/src/" + +DEPENDS += "libxil xiltimer xilpm" + +inherit python3native + +do_configure:prepend() { + ( + cd ${S} + lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ + cp -rf ${S}/scripts/linker_files/ ${S}/${ESW_COMPONENT_SRC}/linker_files + install -m 0644 ${S}/cmake/UserConfig.cmake ${S}/${ESW_COMPONENT_SRC} + ) +} + +do_generate_app_data() { + # This script should also not rely on relative paths and such + cd ${S} + lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" + +do_install() { + install -d ${D}/${base_libdir}/firmware + # Note that we have to make the ELF executable for it to be stripped + install -m 0755 ${B}/ddr_self_refresh* ${D}/${base_libdir}/firmware +} + +inherit image-artifact-names + +DDR_SELF_REFRESH_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" + +do_deploy() { + + # We need to deploy the stripped elf, hence why not doing it from ${D} + install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.elf ${DEPLOYDIR}/${DDR_SELF_REFRESH_BASE_NAME}.elf + ln -sf ${DDR_SELF_REFRESH_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf + ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.elf ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.bin + install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.bin ${DEPLOYDIR}/${DDR_SELF_REFRESH_BASE_NAME}.bin + ln -sf ${DDR_SELF_REFRESH_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin +} + +addtask deploy before do_build after do_package + +FILES:${PN} = "${base_libdir}/firmware/ddr_self_refresh*" -- cgit v1.2.3-54-g00ecf From a200fe241f2192233828642e2fedf9dd8a7e4ac1 Mon Sep 17 00:00:00 2001 From: Sandeep Gundlupet Raju Date: Thu, 8 Feb 2024 12:53:01 -0700 Subject: recipes-applications: Inherit esw_apps_common bblcass Remove common code in all esw applications recipes and inherit esw_apps_common bblcass which provides bitbake install and deploy tasks functionality. Signed-off-by: Sandeep Gundlupet Raju Signed-off-by: Mark Hatle --- .../ddr-self-refresh/ddr-self-refresh_2024.1.bb | 26 ++-------------------- .../freertos-hello-world_2024.1.bb | 26 +++------------------- .../freertos-lwip-echo-server_2024.1.bb | 26 +++------------------- .../freertos-lwip-tcp-perf-client_2024.1.bb | 26 +++------------------- .../freertos-lwip-tcp-perf-server_2024.1.bb | 26 +++------------------- .../freertos-lwip-udp-perf-client_2024.1.bb | 26 +++------------------- .../freertos-lwip-udp-perf-server_2024.1.bb | 26 +++------------------- .../hello-world/hello-world_2024.1.bb | 26 ++-------------------- .../lwip-echo-server/lwip-echo-server_2024.1.bb | 26 +++------------------- .../lwip-tcp-perf-client_2024.1.bb | 26 +++------------------- .../lwip-tcp-perf-server_2024.1.bb | 26 +++------------------- .../lwip-udp-perf-client_2024.1.bb | 26 +++------------------- .../lwip-udp-perf-server_2024.1.bb | 26 +++------------------- .../memory-tests/memory-tests_2024.1.bb | 26 ++-------------------- .../peripheral-tests/peripheral-tests_2024.1.bb | 23 ++++++------------- .../srec-bootloader/srec-bootloader_2024.1.bb | 26 ++-------------------- .../srec-spi-bootloader_2024.1.bb | 26 ++-------------------- .../zynq-dram-test/zynq-dram-test_2024.1.bb | 26 ++-------------------- .../zynqmp-dram-test/zynqmp-dram-test_2024.1.bb | 26 ++-------------------- 19 files changed, 54 insertions(+), 437 deletions(-) (limited to 'meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb') diff --git a/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb index 001cefa9..4287bb0a 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/ddr-self-refresh/ddr-self-refresh_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/ddr_self_refresh/src/" DEPENDS += "libxil xiltimer xilpm" -inherit python3native +ESW_EXECUTABLE_NAME = "ddr_self_refresh" do_configure:prepend() { ( @@ -26,26 +26,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/ddr_self_refresh* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -DDR_SELF_REFRESH_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.elf ${DEPLOYDIR}/${DDR_SELF_REFRESH_BASE_NAME}.elf - ln -sf ${DDR_SELF_REFRESH_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.elf ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/ddr_self_refresh.bin ${DEPLOYDIR}/${DDR_SELF_REFRESH_BASE_NAME}.bin - ln -sf ${DDR_SELF_REFRESH_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/ddr_self_refresh*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_2024.1.bb index 8106684b..97d2ba0a 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_hello_world/src/" DEPENDS += "libxil xilstandalone freertos10-xilinx xiltimer" +ESW_EXECUTABLE_NAME = "freertos_hello_world" + do_configure:prepend() { ( cd ${S} @@ -14,26 +16,4 @@ do_configure:prepend() { ) } -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_hello_world* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_HELLO_WORLD_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.elf ${DEPLOYDIR}/${FREERTOS_HELLO_WORLD_BASE_NAME}.elf - ln -sf ${FREERTOS_HELLO_WORLD_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.bin ${DEPLOYDIR}/${FREERTOS_HELLO_WORLD_BASE_NAME}.bin - ln -sf ${FREERTOS_HELLO_WORLD_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_hello_world*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_2024.1.bb index f7eae1dc..58d5b9c7 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_echo_server/src/" DEPENDS += "libxil lwip xiltimer freertos10-xilinx" +ESW_EXECUTABLE_NAME = "freertos_lwip_echo_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_lwip_echo* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_LWIP_ECHO_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_echo_server.elf ${DEPLOYDIR}/${FREERTOS_LWIP_ECHO_BASE_NAME}.elf - ln -sf ${FREERTOS_LWIP_ECHO_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_echo_server.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_echo_server.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_echo_server.bin ${DEPLOYDIR}/${FREERTOS_LWIP_ECHO_BASE_NAME}.bin - ln -sf ${FREERTOS_LWIP_ECHO_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_lwip_echo*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_2024.1.bb index 51b89b8e..5c00254c 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_tcp_perf_client/src/" DEPENDS += "libxil lwip xiltimer freertos10-xilinx" +ESW_EXECUTABLE_NAME = "freertos_lwip_tcp_perf_client" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_lwip_tcp_perf_client* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_client.elf ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf - ln -sf ${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_client.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_client.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_client.bin ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin - ln -sf ${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_lwip_tcp_perf_client*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_2024.1.bb index 606fd01e..910a6fa2 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_tcp_perf_server/src/" DEPENDS += "libxil lwip xiltimer freertos10-xilinx" +ESW_EXECUTABLE_NAME = "freertos_lwip_tcp_perf_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_lwip_tcp_perf_server* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_LWIP_TCP_PERF_SERVER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_server.elf ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_SERVER_BASE_NAME}.elf - ln -sf ${FREERTOS_LWIP_TCP_PERF_SERVER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_server.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_server.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_tcp_perf_server.bin ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_SERVER_BASE_NAME}.bin - ln -sf ${FREERTOS_LWIP_TCP_PERF_SERVER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_lwip_tcp_perf_server*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_2024.1.bb index 7f9d86e2..c20d640d 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_udp_perf_client/src/" DEPENDS += "libxil lwip xiltimer freertos10-xilinx" +ESW_EXECUTABLE_NAME = "freertos_lwip_udp_perf_client" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_lwip_udp_perf_client* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_client.elf ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf - ln -sf ${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_client.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_client.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_client.bin ${DEPLOYDIR}/${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin - ln -sf ${FREERTOS_LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_lwip_udp_perf_client*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_2024.1.bb index 4fc02f36..194b0565 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_udp_perf_server/src/" DEPENDS += "libxil lwip xiltimer freertos10-xilinx" +ESW_EXECUTABLE_NAME = "freertos_lwip_udp_perf_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/freertos_lwip_udp_perf_server* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -FREERTOS_LWIP_UDP_PERF_SERVER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_server.elf ${DEPLOYDIR}/${FREERTOS_LWIP_UDP_PERF_SERVER_BASE_NAME}.elf - ln -sf ${FREERTOS_LWIP_UDP_PERF_SERVER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_server.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_server.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_lwip_udp_perf_server.bin ${DEPLOYDIR}/${FREERTOS_LWIP_UDP_PERF_SERVER_BASE_NAME}.bin - ln -sf ${FREERTOS_LWIP_UDP_PERF_SERVER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/freertos_lwip_udp_perf_server*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_2024.1.bb index 1de5ef8c..ee0afec5 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw deploy python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/hello_world/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "hello_world" do_configure:prepend() { ( @@ -16,29 +16,7 @@ do_configure:prepend() { ) } -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/hello_world* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -HELLO_WORLD_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - ESW_CUSTOM_LINKER_FILE ?= "None" EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/hello_world.elf ${DEPLOYDIR}/${HELLO_WORLD_BASE_NAME}.elf - ln -sf ${HELLO_WORLD_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/hello_world.elf ${WORKDIR}/package/${base_libdir}/firmware/hello_world.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/hello_world.bin ${DEPLOYDIR}/${HELLO_WORLD_BASE_NAME}.bin - ln -sf ${HELLO_WORLD_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/hello_world*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_2024.1.bb index c59d816e..f3397f7f 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_echo_server/src/" DEPENDS += "libxil lwip xiltimer" +ESW_EXECUTABLE_NAME = "lwip_echo_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/lwip_echo* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -LWIP_ECHO_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_echo_server.elf ${DEPLOYDIR}/${LWIP_ECHO_BASE_NAME}.elf - ln -sf ${LWIP_ECHO_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/lwip_echo_server.elf ${WORKDIR}/package/${base_libdir}/firmware/lwip_echo.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_echo.bin ${DEPLOYDIR}/${LWIP_ECHO_BASE_NAME}.bin - ln -sf ${LWIP_ECHO_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/lwip_echo*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_2024.1.bb index b9834e34..bc90046e 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_tcp_perf_client/src/" DEPENDS += "libxil lwip xiltimer" +ESW_EXECUTABLE_NAME = "lwip_tcp_perf_client" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/lwip_tcp_perf_client* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -LWIP_TCP_PERF_CLIENT_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_client.elf ${DEPLOYDIR}/${LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf - ln -sf ${LWIP_TCP_PERF_CLIENT_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_client.elf ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_client.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_client.bin ${DEPLOYDIR}/${LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin - ln -sf ${LWIP_TCP_PERF_CLIENT_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/lwip_tcp_perf_client*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_2024.1.bb index 0acc4b8f..5c9cd5fa 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_tcp_perf_server/src/" DEPENDS += "libxil lwip xiltimer" +ESW_EXECUTABLE_NAME = "lwip_tcp_perf_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/lwip_tcp_perf_server* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -LWIP_TCP_PERF_SERVER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_server.elf ${DEPLOYDIR}/${LWIP_TCP_PERF_SERVER_BASE_NAME}.elf - ln -sf ${LWIP_TCP_PERF_SERVER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_server.elf ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_server.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_tcp_perf_server.bin ${DEPLOYDIR}/${LWIP_TCP_PERF_SERVER_BASE_NAME}.bin - ln -sf ${LWIP_TCP_PERF_SERVER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/lwip_tcp_perf_server*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_2024.1.bb index 00a9eaa6..2855b08c 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_udp_perf_client/src/" DEPENDS += "libxil lwip xiltimer" +ESW_EXECUTABLE_NAME = "lwip_udp_perf_client" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/lwip_udp_perf_client* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -LWIP_UDP_PERF_CLIENT_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_client.elf ${DEPLOYDIR}/${LWIP_UDP_PERF_CLIENT_BASE_NAME}.elf - ln -sf ${LWIP_UDP_PERF_CLIENT_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_client.elf ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_client.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_client.bin ${DEPLOYDIR}/${LWIP_UDP_PERF_CLIENT_BASE_NAME}.bin - ln -sf ${LWIP_UDP_PERF_CLIENT_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/lwip_udp_perf_client*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_2024.1.bb index 5f54caf9..149e7a6c 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_2024.1.bb @@ -1,9 +1,11 @@ -inherit esw deploy python3native +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_udp_perf_server/src/" DEPENDS += "libxil lwip xiltimer" +ESW_EXECUTABLE_NAME = "lwip_udp_perf_server" + do_configure:prepend() { ( cd ${S} @@ -23,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/lwip_udp_perf_server* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -LWIP_UDP_PERF_SERVER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_server.elf ${DEPLOYDIR}/${LWIP_UDP_PERF_SERVER_BASE_NAME}.elf - ln -sf ${LWIP_UDP_PERF_SERVER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_server.elf ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_server.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/lwip_udp_perf_server.bin ${DEPLOYDIR}/${LWIP_UDP_PERF_SERVER_BASE_NAME}.bin - ln -sf ${LWIP_UDP_PERF_SERVER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/lwip_udp_perf_server*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_2024.1.bb index 1ece5a8c..8420171b 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/memory_tests/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "memory_tests" do_configure:prepend() { ( @@ -16,26 +16,4 @@ do_configure:prepend() { ) } -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/memory_tests* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -MEMORY_TESTS_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/memory_tests.elf ${DEPLOYDIR}/${MEMORY_TESTS_BASE_NAME}.elf - ln -sf ${MEMORY_TESTS_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/memory_tests.elf ${WORKDIR}/package/${base_libdir}/firmware/memory_tests.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/memory_tests.bin ${DEPLOYDIR}/${MEMORY_TESTS_BASE_NAME}.bin - ln -sf ${MEMORY_TESTS_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/memory_tests*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/peripheral-tests/peripheral-tests_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/peripheral-tests/peripheral-tests_2024.1.bb index b6b15d5a..d2fb106a 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/peripheral-tests/peripheral-tests_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/peripheral-tests/peripheral-tests_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/peripheral_tests/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "peripheral_tests" do_configure:prepend() { ( @@ -37,16 +37,8 @@ python do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -PERIPHERAL_TEST_APP_IMAGE_NAME ??= "${BPN}" - -inherit image-artifact-names - -PERIPHERAL_TEST_BASE_NAME ?= "${PERIPHERAL_TEST_APP_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -ESW_COMPONENT ??= "peripheral_tests.elf" - do_compile:append() { - ${OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/peripheral_tests.bin + ${OBJCOPY} -O binary ${B}/${ESW_EXECUTABLE_NAME}.elf ${B}${ESW_EXECUTABLE_NAME}.bin } do_install() { @@ -54,9 +46,8 @@ do_install() { } do_deploy() { - install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PERIPHERAL_TEST_BASE_NAME}.elf - ln -sf ${PERIPHERAL_TEST_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - install -m 0644 ${B}/peripheral_tests.bin ${DEPLOYDIR}/${PERIPHERAL_TEST_BASE_NAME}.bin - ln -sf ${PERIPHERAL_TEST_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin + install -Dm 0644 ${B}/${ESW_EXECUTABLE_NAME}.elf ${DEPLOYDIR}/${APP_IMAGE_NAME}.elf + ln -sf ${APP_IMAGE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}-${BB_CURRENT_MC}.elf + install -m 0644 ${B}/${ESW_EXECUTABLE_NAME}.bin ${DEPLOYDIR}/${APP_IMAGE_NAME}.bin + ln -sf ${APP_IMAGE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}-${BB_CURRENT_MC}.bin } -addtask deploy before do_build after do_install diff --git a/meta-xilinx-standalone-experimental/recipes-applications/srec-bootloader/srec-bootloader_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/srec-bootloader/srec-bootloader_2024.1.bb index 7afdb615..03ada8c1 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/srec-bootloader/srec-bootloader_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/srec-bootloader/srec-bootloader_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/srec_bootloader/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "srec_bootloader" do_configure:prepend() { ( @@ -16,29 +16,7 @@ do_configure:prepend() { ) } -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/srec_bootloader* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -SREC_BOOTLOADER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - ESW_CUSTOM_LINKER_FILE ?= "None" EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/srec_bootloader.elf ${DEPLOYDIR}/${SREC_BOOTLOADER_BASE_NAME}.elf - ln -sf ${SREC_BOOTLOADER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/srec_bootloader.elf ${WORKDIR}/package/${base_libdir}/firmware/srec_bootloader.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/srec_bootloader.bin ${DEPLOYDIR}/${SREC_BOOTLOADER_BASE_NAME}.bin - ln -sf ${SREC_BOOTLOADER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/srec_bootloader*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/srec-spi-bootloader/srec-spi-bootloader_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/srec-spi-bootloader/srec-spi-bootloader_2024.1.bb index 7c0f2122..e6f29570 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/srec-spi-bootloader/srec-spi-bootloader_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/srec-spi-bootloader/srec-spi-bootloader_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/srec_spi_bootloader/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "srec_spi_bootloader" do_configure:prepend() { ( @@ -16,29 +16,7 @@ do_configure:prepend() { ) } -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/srec_spi_bootloader* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -SREC_SPI_BOOTLOADER_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - ESW_CUSTOM_LINKER_FILE ?= "None" EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/srec_spi_bootloader.elf ${DEPLOYDIR}/${SREC_SPI_BOOTLOADER_BASE_NAME}.elf - ln -sf ${SREC_SPI_BOOTLOADER_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/srec_spi_bootloader.elf ${WORKDIR}/package/${base_libdir}/firmware/srec_spi_bootloader.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/srec_spi_bootloader.bin ${DEPLOYDIR}/${SREC_SPI_BOOTLOADER_BASE_NAME}.bin - ln -sf ${SREC_SPI_BOOTLOADER_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/srec_spi_bootloader*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/zynq-dram-test/zynq-dram-test_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/zynq-dram-test/zynq-dram-test_2024.1.bb index b5317117..8e0b0c06 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/zynq-dram-test/zynq-dram-test_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/zynq-dram-test/zynq-dram-test_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/zynq_dram_test/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "zynq_dram_test" do_configure:prepend() { ( @@ -25,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/zynq_dram* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -ZYNQ_DRAM_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynq_dram_test.elf ${DEPLOYDIR}/${ZYNQ_DRAM_BASE_NAME}.elf - ln -sf ${ZYNQ_DRAM_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/zynq_dram_test.elf ${WORKDIR}/package/${base_libdir}/firmware/zynq_dram.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynq_dram.bin ${DEPLOYDIR}/${ZYNQ_DRAM_BASE_NAME}.bin - ln -sf ${ZYNQ_DRAM_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/zynq_dram*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-dram-test/zynqmp-dram-test_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-dram-test/zynqmp-dram-test_2024.1.bb index b2bcabe4..25215801 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-dram-test/zynqmp-dram-test_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-dram-test/zynqmp-dram-test_2024.1.bb @@ -1,10 +1,10 @@ -inherit esw deploy +inherit esw python3native esw_apps_common ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_dram_test/src/" DEPENDS += "libxil xiltimer" -inherit python3native +ESW_EXECUTABLE_NAME = "zynqmp_dram_test" do_configure:prepend() { ( @@ -25,26 +25,4 @@ do_generate_app_data() { addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/zynqmp_dram* ${D}/${base_libdir}/firmware -} - -inherit image-artifact-names - -ZYNQMP_DRAM_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_dram_test.elf ${DEPLOYDIR}/${ZYNQMP_DRAM_BASE_NAME}.elf - ln -sf ${ZYNQMP_DRAM_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_dram_test.elf ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_dram.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_dram.bin ${DEPLOYDIR}/${ZYNQMP_DRAM_BASE_NAME}.bin - ln -sf ${ZYNQMP_DRAM_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - FILES:${PN} = "${base_libdir}/firmware/zynqmp_dram*" -- cgit v1.2.3-54-g00ecf