diff options
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-libraries')
33 files changed, 545 insertions, 7 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/freertos10-xilinx_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/freertos10-xilinx_2024.2.bb new file mode 100644 index 00000000..22d7955e --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/freertos10-xilinx_2024.2.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/ThirdParty/bsp/freertos10_xilinx/src/" | ||
4 | ESW_COMPONENT_NAME = "libfreertos.a" | ||
5 | |||
6 | DEPENDS += "libxil xilstandalone xiltimer" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
13 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | ) | ||
15 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/libxil_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/libxil_2024.2.bb new file mode 100644 index 00000000..2eb08307 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/libxil_2024.2.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | inherit esw python3native features_check | ||
2 | |||
3 | LIBXIL_CONFIG ??= "" | ||
4 | include ${LIBXIL_CONFIG} | ||
5 | |||
6 | # The python code allows us to use an include above, instead of require | ||
7 | # as it enforces that the file will be available for inclusion. It also | ||
8 | # gives the user feedback if something isn't configured properly. | ||
9 | python () { | ||
10 | libxil_cfg = d.getVar("LIBXIL_CONFIG") | ||
11 | if libxil_cfg: | ||
12 | bbpath = d.getVar('BBPATH') | ||
13 | libxil_path = bb.utils.which(bbpath, libxil_cfg) | ||
14 | if libxil_path: | ||
15 | return | ||
16 | else: | ||
17 | d.setVar('BB_DONT_CACHE', '1') | ||
18 | bb.parse.SkipRecipe("LIBXIL_CONFIG (%s) was not found." % libxil_cfg) | ||
19 | else: | ||
20 | d.setVar('BB_DONT_CACHE', '1') | ||
21 | raise bb.parse.SkipRecipe("No LIBXIL_CONFIG set.") | ||
22 | } | ||
23 | |||
24 | ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" | ||
25 | ESW_COMPONENT_NAME = "libxil.a" | ||
26 | |||
27 | DEPENDS += "xilstandalone " | ||
28 | MACHINE_FEATURES:remove = "aiengine dfeccf dfeequ dfemix dfeprach rfdc dfeofdm" | ||
29 | REQUIRED_MACHINE_FEATURES = "${MACHINE_FEATURES}" | ||
30 | PACKAGECONFIG ?= "${MACHINE_FEATURES}" | ||
31 | |||
32 | do_compile() { | ||
33 | # Combines the .a archives produced by all of the dependent items | ||
34 | cd ${RECIPE_SYSROOT}/usr/lib/ | ||
35 | echo create libxil.a > libxil.mri | ||
36 | for each in ${REQUIRED_MACHINE_FEATURES}; do | ||
37 | each=$(echo $each | sed 's/-/_/g') | ||
38 | if [ -e lib$each.a ]; then | ||
39 | echo addlib lib$each.a >> libxil.mri | ||
40 | fi | ||
41 | done | ||
42 | echo “save” >> libxil.mri | ||
43 | echo “end” >> libxil.mri | ||
44 | ${AR} -M <libxil.mri | ||
45 | cp libxil.a ${B} | ||
46 | } | ||
47 | |||
48 | do_install() { | ||
49 | install -d ${D}${libdir} | ||
50 | install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir} | ||
51 | |||
52 | # Install Spec files for consumers of BSP | ||
53 | install -d ${D}${includedir} | ||
54 | cp -rf ${SPECFILE_PATH} ${D}${includedir} | ||
55 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/lwip_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/lwip_2024.2.bb new file mode 100644 index 00000000..e70dfa11 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/lwip_2024.2.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/ThirdParty/sw_services/lwip220/src/" | ||
4 | ESW_COMPONENT_NAME = "liblwip220.a" | ||
5 | |||
6 | DEPENDS += "libxil" | ||
7 | DEPENDS:append:xilinx-freertos = "freertos10-xilinx" | ||
8 | |||
9 | EXTRA_OECMAKE += "-Dlwip220_api_mode=RAW_API" | ||
10 | EXTRA_OECMAKE += "-Dlwip220_dhcp_does_arp_check=ON" | ||
11 | EXTRA_OECMAKE += "-Dlwip220_dhcp=ON" | ||
12 | EXTRA_OECMAKE += "-Dlwip220_pbuf_pool_size=2048" | ||
13 | EXTRA_OECMAKE += "-Dlwip220_ipv6_enable=OFF" | ||
14 | EXTRA_OECMAKE:append:xilinx-freertos = " -Dlwip220_api_mode=SOCKET_API" | ||
15 | |||
16 | do_configure:prepend() { | ||
17 | # This script should also not rely on relative paths and such | ||
18 | ( | ||
19 | cd ${S} | ||
20 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
21 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
22 | install -m 0755 xtopology_g.c ${S}/${ESW_COMPONENT_SRC}/ | ||
23 | ) | ||
24 | } | ||
25 | |||
26 | do_install() { | ||
27 | install -d ${D}${libdir} | ||
28 | install -d ${D}${includedir} | ||
29 | install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir} | ||
30 | install -m 0644 ${B}/include/*.h ${D}${includedir} | ||
31 | cp -r ${B}/include/arch/ ${D}${includedir} | ||
32 | cp -r ${B}/include/include/lwip/ ${D}${includedir} | ||
33 | cp -r ${B}/include/netif/ ${D}${includedir} | ||
34 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.1.bb index 0cef7d97..cae39d17 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.1.bb | |||
@@ -25,7 +25,7 @@ do_install() { | |||
25 | 25 | ||
26 | do_deploy() { | 26 | do_deploy() { |
27 | install -d ${DEPLOYDIR}/${BPN}/ | 27 | install -d ${DEPLOYDIR}/${BPN}/ |
28 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 28 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
29 | } | 29 | } |
30 | addtask deploy before do_build after do_package | 30 | addtask deploy before do_build after do_package |
31 | 31 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb new file mode 100644 index 00000000..cae39d17 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | # Requires by dependency xilffs | ||
4 | REQUIRED_MACHINE_FEATURES = "sdps" | ||
5 | |||
6 | ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/" | ||
7 | |||
8 | DEPENDS += "xilffs xiltimer" | ||
9 | |||
10 | do_configure:prepend() { | ||
11 | ( | ||
12 | cd ${S} | ||
13 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
14 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
15 | ) | ||
16 | } | ||
17 | |||
18 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
19 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${base_libdir}/firmware | ||
23 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
24 | } | ||
25 | |||
26 | do_deploy() { | ||
27 | install -d ${DEPLOYDIR}/${BPN}/ | ||
28 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
29 | } | ||
30 | addtask deploy before do_build after do_package | ||
31 | |||
32 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilffs_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs_2024.2.bb new file mode 100644 index 00000000..b7e0784a --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs_2024.2.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilffs.a" | ||
5 | |||
6 | PACKAGECONFIG ??= "read_only word_access" | ||
7 | PACKAGECONFIG[use_mkfs] ="-DXILFFS_use_mkfs=ON,-DXILFFS_use_mkfs=OFF,," | ||
8 | PACKAGECONFIG[read_only] ="-DXILFFS_read_only=ON,-DXILFFS_read_only=OFF,," | ||
9 | PACKAGECONFIG[word_access]="-DXILFFS_word_access=ON,-DXILFFS_word_access=OFF,," | ||
10 | |||
11 | EXTRA_OECMAKE += "${@'-DXILFFS_num_logical_vol=10 -DXILFFS_enable_multi_partition=ON' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" | ||
12 | |||
13 | DEPENDS += "xilstandalone libxil" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.1.bb index a793fa86..a3fb1560 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.1.bb | |||
@@ -22,7 +22,7 @@ do_install() { | |||
22 | 22 | ||
23 | do_deploy() { | 23 | do_deploy() { |
24 | install -d ${DEPLOYDIR}/${BPN}/ | 24 | install -d ${DEPLOYDIR}/${BPN}/ |
25 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 25 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
26 | } | 26 | } |
27 | addtask deploy before do_build after do_package | 27 | addtask deploy before do_build after do_package |
28 | 28 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.2.bb new file mode 100644 index 00000000..a3fb1560 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga-example_2024.2.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilfpga/examples/" | ||
4 | |||
5 | DEPENDS += "xilfpga" | ||
6 | |||
7 | do_configure:prepend() { | ||
8 | ( | ||
9 | cd ${S} | ||
10 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
11 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
12 | ) | ||
13 | } | ||
14 | |||
15 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
16 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
17 | |||
18 | do_install() { | ||
19 | install -d ${D}/${base_libdir}/firmware | ||
20 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
21 | } | ||
22 | |||
23 | do_deploy() { | ||
24 | install -d ${DEPLOYDIR}/${BPN}/ | ||
25 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
26 | } | ||
27 | addtask deploy before do_build after do_package | ||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga_2024.2.bb new file mode 100644 index 00000000..6eaf40ac --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilfpga_2024.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilfpga/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilfpga.a" | ||
5 | |||
6 | DEPENDS += "libxil xilsecure" | ||
7 | DEPENDS += "libxil ${@'xilmailbox' if d.getVar('MACHINE') == 'versal-generic' else ''}" | ||
8 | |||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilloader_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilloader_2024.2.bb new file mode 100644 index 00000000..4f01407e --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilloader_2024.2.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilloader/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilloader.a" | ||
5 | |||
6 | #DEPENDS += "xilstandalone libxil xilpdi xilffs xilsecure xilpuf xilplmi" | ||
7 | DEPENDS += "xilstandalone libxil xilpm xilpdi xilffs xilsecure xilpuf xilsem" | ||
8 | |||
9 | DEPENDS += "cframe" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.1.bb index 518b24c3..600369ad 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.1.bb | |||
@@ -31,7 +31,7 @@ do_install() { | |||
31 | 31 | ||
32 | do_deploy() { | 32 | do_deploy() { |
33 | install -d ${DEPLOYDIR}/${BPN}/ | 33 | install -d ${DEPLOYDIR}/${BPN}/ |
34 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 34 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
35 | } | 35 | } |
36 | addtask deploy before do_build after do_package | 36 | addtask deploy before do_build after do_package |
37 | 37 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.2.bb new file mode 100644 index 00000000..600369ad --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox-example_2024.2.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilmailbox/examples/" | ||
4 | |||
5 | DEPENDS += "xilmailbox" | ||
6 | |||
7 | do_configure:prepend() { | ||
8 | ( | ||
9 | cd ${S} | ||
10 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
11 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
12 | ) | ||
13 | } | ||
14 | |||
15 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
16 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
17 | |||
18 | do_generate_eglist () { | ||
19 | cd ${S} | ||
20 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
21 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
22 | } | ||
23 | |||
24 | addtask generate_eglist before do_configure after do_prepare_recipe_sysroot | ||
25 | do_prepare_recipe_sysroot[rdeptask] = "do_unpack" | ||
26 | |||
27 | do_install() { | ||
28 | install -d ${D}/${base_libdir}/firmware | ||
29 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
30 | } | ||
31 | |||
32 | do_deploy() { | ||
33 | install -d ${DEPLOYDIR}/${BPN}/ | ||
34 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
35 | } | ||
36 | addtask deploy before do_build after do_package | ||
37 | |||
38 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox_2024.2.bb new file mode 100644 index 00000000..77115515 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilmailbox_2024.2.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilmailbox/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilmailbox.a" | ||
5 | |||
6 | DEPENDS += "xilstandalone libxil xiltimer" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
13 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | ) | ||
15 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.1.bb index 9d91751c..bd001f64 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.1.bb | |||
@@ -26,7 +26,7 @@ do_install() { | |||
26 | 26 | ||
27 | do_deploy() { | 27 | do_deploy() { |
28 | install -d ${DEPLOYDIR}/${BPN}/ | 28 | install -d ${DEPLOYDIR}/${BPN}/ |
29 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
30 | } | 30 | } |
31 | addtask deploy before do_build after do_package | 31 | addtask deploy before do_build after do_package |
32 | 32 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.2.bb new file mode 100644 index 00000000..bd001f64 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm-example_2024.2.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilnvm/examples/" | ||
4 | |||
5 | PACKAGECONFIG ??= "client server" | ||
6 | PACKAGECONFIG[client] ="-DXILNVM_mode="client",," | ||
7 | PACKAGECONFIG[server] ="-DXILNVM_mode="server",," | ||
8 | |||
9 | DEPENDS += "xilnvm" | ||
10 | |||
11 | do_configure:prepend() { | ||
12 | ( | ||
13 | cd ${S} | ||
14 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
15 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
16 | ) | ||
17 | } | ||
18 | |||
19 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
20 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}/${base_libdir}/firmware | ||
24 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
25 | } | ||
26 | |||
27 | do_deploy() { | ||
28 | install -d ${DEPLOYDIR}/${BPN}/ | ||
29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
30 | } | ||
31 | addtask deploy before do_build after do_package | ||
32 | |||
33 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm_2024.2.bb new file mode 100644 index 00000000..8aa1250d --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilnvm_2024.2.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilnvm/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilnvm.a" | ||
5 | |||
6 | PACKAGECONFIG ??= "client server" | ||
7 | PACKAGECONFIG[client] ="-DXILNVM_mode="client",," | ||
8 | PACKAGECONFIG[server] ="-DXILNVM_mode="server",," | ||
9 | |||
10 | DEPENDS += "libxil xiltimer ${@'xilplmi' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else 'xilmailbox'}" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilpdi_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilpdi_2024.2.bb new file mode 100644 index 00000000..c008b069 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilpdi_2024.2.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpdi/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilpdi.a" | ||
5 | |||
6 | DEPENDS += "xilstandalone libxil" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilplmi_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilplmi_2024.2.bb new file mode 100644 index 00000000..cb3b7831 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilplmi_2024.2.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilplmi/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilplmi.a" | ||
5 | |||
6 | DEPENDS += "xilstandalone libxil cfupmc xiltimer ${@'xilmailbox' if d.getVar('ESW_MACHINE') == 'psv_cortexa72_0' or d.getVar('ESW_MACHINE') == 'psv_cortexr5_0' else ''}" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilpm_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilpm_2024.2.bb new file mode 100644 index 00000000..ee6faa13 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilpm_2024.2.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilpm.a" | ||
5 | |||
6 | DEPENDS += "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" | ||
7 | |||
8 | def lopper_args(d): | ||
9 | lopper_cmd_append = "" | ||
10 | flags = [ | ||
11 | "APU_AS_OVERLAY_CONFIG_MASTER", | ||
12 | "APU_AS_POWER_MANAGEMENT_MASTER", | ||
13 | "APU_AS_RESET_MANAGEMENT_MASTER", | ||
14 | "RPU0_AS_OVERLAY_CONFIG_MASTER", | ||
15 | "RPU0_AS_POWER_MANAGEMENT_MASTER", | ||
16 | "RPU0_AS_RESET_MANAGEMENT_MASTER", | ||
17 | "RPU1_AS_OVERLAY_CONFIG_MASTER", | ||
18 | "RPU1_AS_POWER_MANAGEMENT_MASTER", | ||
19 | "RPU1_AS_RESET_MANAGEMENT_MASTER" | ||
20 | ] | ||
21 | |||
22 | for flag in flags: | ||
23 | value = d.getVar("XILPM_" + flag) | ||
24 | if value: | ||
25 | lopper_cmd_append += "XILPM_" + flag.lower() + ":" + value.lower() + " " | ||
26 | |||
27 | return lopper_cmd_append | ||
28 | |||
29 | LOPPER_CMD_APPEND = "${@lopper_args(d)}" | ||
30 | |||
31 | do_configure:prepend:zynqmp() { | ||
32 | # This script should also not rely on relative paths and such | ||
33 | ( | ||
34 | cd ${S} | ||
35 | lopper -f --enhanced --werror ${DTS_FILE} -- generate_config_object pm_cfg_obj.c ${ESW_MACHINE} ${LOPPER_CMD_APPEND} | ||
36 | install -m 0755 pm_cfg_obj.c ${S}/${ESW_COMPONENT_SRC}/zynqmp/client/common/ | ||
37 | ) | ||
38 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.1.bb index 114449e9..bbe2920b 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.1.bb | |||
@@ -26,7 +26,7 @@ do_install() { | |||
26 | 26 | ||
27 | do_deploy() { | 27 | do_deploy() { |
28 | install -d ${DEPLOYDIR}/${BPN}/ | 28 | install -d ${DEPLOYDIR}/${BPN}/ |
29 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
30 | } | 30 | } |
31 | addtask deploy before do_build after do_package | 31 | addtask deploy before do_build after do_package |
32 | 32 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.2.bb new file mode 100644 index 00000000..bbe2920b --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf-example_2024.2.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpuf/examples/" | ||
4 | |||
5 | PACKAGECONFIG ??= "client server" | ||
6 | PACKAGECONFIG[client] ="-DXILPUF_Mode="client",," | ||
7 | PACKAGECONFIG[server] ="-DXILPUF_Mode="server",," | ||
8 | |||
9 | DEPENDS += "xilpuf xilsecure xilmailbox xilnvm xilplmi" | ||
10 | |||
11 | do_configure:prepend() { | ||
12 | ( | ||
13 | cd ${S} | ||
14 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
15 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
16 | ) | ||
17 | } | ||
18 | |||
19 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
20 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}/${base_libdir}/firmware | ||
24 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
25 | } | ||
26 | |||
27 | do_deploy() { | ||
28 | install -d ${DEPLOYDIR}/${BPN}/ | ||
29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
30 | } | ||
31 | addtask deploy before do_build after do_package | ||
32 | |||
33 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf_2024.2.bb new file mode 100644 index 00000000..84765a39 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilpuf_2024.2.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpuf/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilpuf.a" | ||
5 | |||
6 | PACKAGECONFIG ??= "client server" | ||
7 | PACKAGECONFIG[client] ="-DXILPUF_Mode="client",," | ||
8 | PACKAGECONFIG[server] ="-DXILPUF_Mode="server",," | ||
9 | |||
10 | DEPENDS += "libxil xiltimer ${@'xilplmi' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else 'xilmailbox'}" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.1.bb new file mode 100644 index 00000000..3337dce9 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.1.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilrsa/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilrsa.a" | ||
5 | |||
6 | DEPENDS += "libxil" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
13 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | ) | ||
15 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.2.bb new file mode 100644 index 00000000..3337dce9 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilrsa_2024.2.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilrsa/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilrsa.a" | ||
5 | |||
6 | DEPENDS += "libxil" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
13 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | ) | ||
15 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.1.bb index a806c4ee..a2b4b7a5 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.1.bb | |||
@@ -26,7 +26,7 @@ do_install() { | |||
26 | 26 | ||
27 | do_deploy() { | 27 | do_deploy() { |
28 | install -d ${DEPLOYDIR}/${BPN}/ | 28 | install -d ${DEPLOYDIR}/${BPN}/ |
29 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
30 | } | 30 | } |
31 | addtask deploy before do_build after do_package | 31 | addtask deploy before do_build after do_package |
32 | 32 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.2.bb new file mode 100644 index 00000000..a2b4b7a5 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure-example_2024.2.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilsecure/examples/" | ||
4 | |||
5 | PACKAGECONFIG ??= "client server" | ||
6 | PACKAGECONFIG[client] ="-DXILSECURE_mode="client",," | ||
7 | PACKAGECONFIG[server] ="-DXILSECURE_mode="server",," | ||
8 | |||
9 | DEPENDS += "xilsecure" | ||
10 | |||
11 | do_configure:prepend() { | ||
12 | ( | ||
13 | cd ${S} | ||
14 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
15 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
16 | ) | ||
17 | } | ||
18 | |||
19 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
20 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}/${base_libdir}/firmware | ||
24 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
25 | } | ||
26 | |||
27 | do_deploy() { | ||
28 | install -d ${DEPLOYDIR}/${BPN}/ | ||
29 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
30 | } | ||
31 | addtask deploy before do_build after do_package | ||
32 | |||
33 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure_2024.2.bb new file mode 100644 index 00000000..be22ba90 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilsecure_2024.2.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilsecure/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilsecure.a" | ||
5 | |||
6 | PACKAGECONFIG ??= "client server" | ||
7 | PACKAGECONFIG[client] ="-DXILSECURE_mode="client",," | ||
8 | PACKAGECONFIG[server] ="-DXILSECURE_mode="server",," | ||
9 | |||
10 | DEPENDS += "libxil xiltimer ${@'xilplmi' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' or d.getVar('ESW_MACHINE') == 'psv_cortexa72_0' or d.getVar('ESW_MACHINE') == 'psv_cortexr5_0' else ''} ${@'xilmailbox' if d.getVar('ESW_MACHINE') == 'psv_cortexa72_0' or d.getVar('ESW_MACHINE') == 'psv_cortexr5_0' else ''}" | ||
11 | |||
12 | do_install:append() { | ||
13 | install -m 0755 ${B}/*.a ${D}${libdir} | ||
14 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilsem_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilsem_2024.2.bb new file mode 100644 index 00000000..3631d7f0 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilsem_2024.2.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilsem/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilsem.a" | ||
5 | |||
6 | DEPENDS += "xilstandalone libxil" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.1.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.1.bb index 5702beaf..a42d6fd2 100644 --- a/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.1.bb +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.1.bb | |||
@@ -22,7 +22,7 @@ do_install() { | |||
22 | 22 | ||
23 | do_deploy() { | 23 | do_deploy() { |
24 | install -d ${DEPLOYDIR}/${BPN}/ | 24 | install -d ${DEPLOYDIR}/${BPN}/ |
25 | install -Dm 0644 ${UNPACKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | 25 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ |
26 | } | 26 | } |
27 | addtask deploy before do_build after do_package | 27 | addtask deploy before do_build after do_package |
28 | 28 | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.2.bb new file mode 100644 index 00000000..a42d6fd2 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey-example_2024.2.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilskey/examples/" | ||
4 | |||
5 | DEPENDS += "xilskey xilsecure" | ||
6 | |||
7 | do_configure:prepend() { | ||
8 | ( | ||
9 | cd ${S} | ||
10 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
11 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
12 | ) | ||
13 | } | ||
14 | |||
15 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
16 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
17 | |||
18 | do_install() { | ||
19 | install -d ${D}/${base_libdir}/firmware | ||
20 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
21 | } | ||
22 | |||
23 | do_deploy() { | ||
24 | install -d ${DEPLOYDIR}/${BPN}/ | ||
25 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
26 | } | ||
27 | addtask deploy before do_build after do_package | ||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilskey_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey_2024.2.bb new file mode 100644 index 00000000..84782554 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilskey_2024.2.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit esw | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilskey/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilskey.a" | ||
5 | |||
6 | DEPENDS += "libxil" | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilstandalone_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilstandalone_2024.2.bb new file mode 100644 index 00000000..a4b0037b --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilstandalone_2024.2.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/bsp/standalone/src/" | ||
4 | ESW_COMPONENT_NAME = "libxilstandalone.a" | ||
5 | |||
6 | DEPENDS += "libgloss" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- baremetal_bspconfig_xlnx ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
13 | install -m 0755 MemConfig.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | install -m 0755 *.c ${S}/${ESW_COMPONENT_SRC} | ||
15 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
16 | install -m 0755 StandaloneExample.cmake ${S}/${ESW_COMPONENT_SRC}/common/ | ||
17 | LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} | ||
18 | install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/common/ | ||
19 | ) | ||
20 | |||
21 | } | ||
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xiltimer_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xiltimer_2024.2.bb new file mode 100644 index 00000000..dd19671d --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xiltimer_2024.2.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xiltimer/src/" | ||
4 | ESW_COMPONENT_NAME = "libxiltimer.a" | ||
5 | |||
6 | DEPENDS += "libxil" | ||
7 | |||
8 | do_configure:prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | ( | ||
11 | cd ${S} | ||
12 | lopper ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} | ||
13 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
14 | ) | ||
15 | } | ||