summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAppana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>2023-10-18 15:54:07 +0530
committerMark Hatle <mark.hatle@amd.com>2023-10-31 09:43:05 -0500
commit4539ea952092c96dd7c8dece1524a93c340920d9 (patch)
tree507c242442426da33761cd68a70ee2b688bffdca
parent106fe79d8b10d8d94e92f0a8a35654cd5d28a6da (diff)
downloadmeta-xilinx-4539ea952092c96dd7c8dece1524a93c340920d9.tar.gz
meta-xilinx-standalone-experimental: Update recipes as per unified embeddedsw sources
In the unified repo few driver recipes are depends on xparamters.h file so move the xparameters.h generation to xilstandalone recipe and update other recipes as per latest sources. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone-experimental/classes/esw.bbclass5
-rw-r--r--meta-xilinx-standalone-experimental/classes/esw_examples.bbclass1
-rw-r--r--meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb3
-rw-r--r--meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb6
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb10
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/xilplmi_git.bb2
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/xilsecure_git.bb4
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/xilstandalone_git.bb3
8 files changed, 24 insertions, 10 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass
index febdebad..a597a81c 100644
--- a/meta-xilinx-standalone-experimental/classes/esw.bbclass
+++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass
@@ -80,11 +80,11 @@ cmake_do_generate_toolchain_file:append() {
80 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) 80 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
81 set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) 81 set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" )
82 set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${S}/cmake) 82 set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${S}/cmake)
83 set( CMAKE_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR}) 83 set( CMAKE_LIBRARY_PATH ${B})
84 if ("${XLNX_CMAKE_PROCESSOR}" STREQUAL "plm_microblaze") 84 if ("${XLNX_CMAKE_PROCESSOR}" STREQUAL "plm_microblaze")
85 set( CMAKE_BUILD_TYPE Release) 85 set( CMAKE_BUILD_TYPE Release)
86 endif() 86 endif()
87 add_definitions( "${XLNX_CMAKE_BSP_VARS}" ) 87 add_definitions( "${XLNX_CMAKE_BSP_VARS} -DSDT" )
88EOF 88EOF
89} 89}
90 90
@@ -96,6 +96,7 @@ do_install() {
96} 96}
97 97
98CFLAGS:append = " ${ESW_CFLAGS}" 98CFLAGS:append = " ${ESW_CFLAGS}"
99EXTRA_OECMAKE += "-DYOCTO=ON"
99 100
100# We need to find the license file, which vaires depending on the component 101# We need to find the license file, which vaires depending on the component
101# recurse a maximum of x times, could be fancier but it gets complicated since 102# recurse a maximum of x times, could be fancier but it gets complicated since
diff --git a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
index 43e78191..9a94f3cd 100644
--- a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
+++ b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
@@ -7,6 +7,7 @@ do_configure:prepend() {
7 cd ${S} 7 cd ${S}
8 lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} 8 lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
9 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ 9 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
10 cp -rf ${S}/scripts/linker_files/ ${S}/${ESW_COMPONENT_SRC}/linker_files
10 ) 11 )
11} 12}
12 13
diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb
index 4bddb2c0..3a464480 100644
--- a/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb
@@ -8,3 +8,6 @@ DEPENDS += "xilstandalone "
8 8
9ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/clockps/src/" 9ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/clockps/src/"
10ESW_COMPONENT_NAME = "libclockps.a" 10ESW_COMPONENT_NAME = "libclockps.a"
11
12addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot
13do_prepare_recipe_sysroot[rdeptask] = "do_unpack"
diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb
index 541ff225..40d2a1ae 100644
--- a/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb
@@ -13,11 +13,13 @@ PACKAGECONFIG[clockps] = "${RECIPE_SYSROOT}/usr/lib/libclockps.a,,clockps,,"
13PACKAGECONFIG[scugic] = "${RECIPE_SYSROOT}/usr/lib/libscugic.a,,scugic,," 13PACKAGECONFIG[scugic] = "${RECIPE_SYSROOT}/usr/lib/libscugic.a,,scugic,,"
14PACKAGECONFIG[intc] = "${RECIPE_SYSROOT}/usr/lib/libintc.a,,intc,," 14PACKAGECONFIG[intc] = "${RECIPE_SYSROOT}/usr/lib/libintc.a,,intc,,"
15 15
16ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/common/src/" 16ESW_COMPONENT_SRC = "/lib/bsp/standalone/src/common/intr/"
17ESW_COMPONENT_NAME = "libcommon.a" 17ESW_COMPONENT_NAME = "libcommon.a"
18 18
19do_configure:prepend() { 19do_configure:prepend() {
20 LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/intc/src/ 20 LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/intc/src/
21 LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/scugic/src/ 21 LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/scugic/src/
22 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ 22 if [ -f *.cmake ]; then
23 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
24 fi
23} 25}
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
index 2ec1d6cd..8f33c848 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
@@ -28,11 +28,6 @@ DEPENDS += "xilstandalone "
28REQUIRED_MACHINE_FEATURES = "${MACHINE_FEATURES}" 28REQUIRED_MACHINE_FEATURES = "${MACHINE_FEATURES}"
29PACKAGECONFIG ?= "${MACHINE_FEATURES}" 29PACKAGECONFIG ?= "${MACHINE_FEATURES}"
30 30
31do_configure:prepend() {
32 LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S}
33 install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/
34}
35
36do_compile() { 31do_compile() {
37 # Combines the .a archives produced by all of the dependent items 32 # Combines the .a archives produced by all of the dependent items
38 cd ${RECIPE_SYSROOT}/usr/lib/ 33 cd ${RECIPE_SYSROOT}/usr/lib/
@@ -48,3 +43,8 @@ do_compile() {
48 ${AR} -M <libxil.mri 43 ${AR} -M <libxil.mri
49 cp libxil.a ${B} 44 cp libxil.a ${B}
50} 45}
46
47do_install() {
48 install -d ${D}${libdir}
49 install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir}
50}
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilplmi_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilplmi_git.bb
index 35a1efb0..61a5cef0 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/xilplmi_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilplmi_git.bb
@@ -3,4 +3,4 @@ inherit esw
3ESW_COMPONENT_SRC = "/lib/sw_services/xilplmi/src/" 3ESW_COMPONENT_SRC = "/lib/sw_services/xilplmi/src/"
4ESW_COMPONENT_NAME = "libxilplmi.a" 4ESW_COMPONENT_NAME = "libxilplmi.a"
5 5
6DEPENDS += "xilstandalone libxil cfupmc" 6DEPENDS += "xilstandalone libxil cfupmc xiltimer"
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure_git.bb
index 0001d3fb..c7a0a188 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure_git.bb
@@ -4,3 +4,7 @@ ESW_COMPONENT_SRC = "/lib/sw_services/xilsecure/src/"
4ESW_COMPONENT_NAME = "libxilsecure.a" 4ESW_COMPONENT_NAME = "libxilsecure.a"
5 5
6DEPENDS += "libxil xiltimer ${@'xilplmi' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''} ${@'xilmailbox' if d.getVar('ESW_MACHINE') == 'psv_cortexa72_0' or d.getVar('ESW_MACHINE') == 'psv_cortexr5_0' else ''}" 6DEPENDS += "libxil xiltimer ${@'xilplmi' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''} ${@'xilmailbox' if d.getVar('ESW_MACHINE') == 'psv_cortexa72_0' or d.getVar('ESW_MACHINE') == 'psv_cortexr5_0' else ''}"
7
8do_install:append() {
9 install -m 0755 ${B}/*.a ${D}${libdir}
10}
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilstandalone_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilstandalone_git.bb
index facbfbaa..a4b0037b 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/xilstandalone_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilstandalone_git.bb
@@ -14,5 +14,8 @@ do_configure:prepend() {
14 install -m 0755 *.c ${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} 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/ 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/
17 ) 19 )
20
18} 21}