summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAppana Durga Kedareswara rao <appana.durga.rao@xilinx.com>2019-12-10 11:10:45 +0530
committerMark Hatle <mark.hatle@xilinx.com>2020-02-27 08:33:25 -0800
commited70e2e44ef347b956c9efefcdbc39764b8a8547 (patch)
tree872f0f6e48c9ab1bc4e8304dfc9f5990711c2ce1
parent65101c31f2efe3f9274ac3d470349200dd47be7f (diff)
downloadmeta-xilinx-ed70e2e44ef347b956c9efefcdbc39764b8a8547.tar.gz
meta-xilinx-standalone: Using S instead of WORKDIR
External source class manipulates S to point to external source directories, so use this variable instead of WORKDIR. Point S to the top directory as we need to access scripts directory in top directory. And instead, using OECMAKE_SOURCEPATH to point to deeper driver specific directory with necessary cmake files. Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
-rw-r--r--meta-xilinx-standalone/classes/esw.bbclass11
-rw-r--r--meta-xilinx-standalone/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb4
-rw-r--r--meta-xilinx-standalone/recipes-libraries/libxil_git.bb8
-rw-r--r--meta-xilinx-standalone/recipes-libraries/xilstandalone_git.bb4
4 files changed, 14 insertions, 13 deletions
diff --git a/meta-xilinx-standalone/classes/esw.bbclass b/meta-xilinx-standalone/classes/esw.bbclass
index 87628f7e..8a24428e 100644
--- a/meta-xilinx-standalone/classes/esw.bbclass
+++ b/meta-xilinx-standalone/classes/esw.bbclass
@@ -2,7 +2,7 @@ inherit pkgconfig cmake yocto-cmake-translation
2 2
3LICENSE = "Proprietary" 3LICENSE = "Proprietary"
4LICFILENAME = "license.txt" 4LICFILENAME = "license.txt"
5LIC_FILES_CHKSUM = "file://${ESWS}/${LICFILENAME};md5=f64f573816f568a50a7a8aad895b3d84" 5LIC_FILES_CHKSUM = "file://${S}/${LICFILENAME};md5=f64f573816f568a50a7a8aad895b3d84"
6 6
7XILINX_RELEASE_VERSION = "v2019.2" 7XILINX_RELEASE_VERSION = "v2019.2"
8 8
@@ -13,8 +13,9 @@ SRC_URI = "git://gitenterprise.xilinx.com/decoupling/embeddedsw.git;branch=maste
13 13
14SRCREV_FORMAT = "src_decouple" 14SRCREV_FORMAT = "src_decouple"
15 15
16ESWS = "${WORKDIR}/git/" 16S = "${WORKDIR}/git/"
17S = "${ESWS}/${ESW_COMPONENT_SRC}" 17B = "${WORKDIR}/build/"
18OECMAKE_SOURCEPATH = "${S}/${ESW_COMPONENT_SRC}"
18 19
19 20
20inherit ccmake 21inherit ccmake
@@ -90,10 +91,10 @@ python(){
90 lic_file = d.getVar('LIC_FILES_CHKSUM', False) 91 lic_file = d.getVar('LIC_FILES_CHKSUM', False)
91 licpath=externalsrc 92 licpath=externalsrc
92 for i in range(5): 93 for i in range(5):
93 licpath=os.path.dirname(licpath)
94 if os.path.isfile(licpath + '/' + d.getVar('LICFILENAME',True)): 94 if os.path.isfile(licpath + '/' + d.getVar('LICFILENAME',True)):
95 lic_file = lic_file.replace('${ESWS}',licpath) 95 lic_file = lic_file.replace('${S}',licpath)
96 d.setVar('LIC_FILES_CHKSUM', lic_file) 96 d.setVar('LIC_FILES_CHKSUM', lic_file)
97 return 97 return
98 licpath=os.path.dirname(licpath)
98 bb.error("Couldn't find license file: %s, within directory %s or his parent directories" % (d.getVar('LICFILENAME',True), externalsrc)) 99 bb.error("Couldn't find license file: %s, within directory %s or his parent directories" % (d.getVar('LICFILENAME',True), externalsrc))
99} 100}
diff --git a/meta-xilinx-standalone/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb b/meta-xilinx-standalone/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb
index a2b7fa05..5aae9024 100644
--- a/meta-xilinx-standalone/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb
+++ b/meta-xilinx-standalone/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb
@@ -8,13 +8,13 @@ PSU_INIT = "${RECIPE_SYSROOT}/${includedir}/devicetree/psu_init*"
8 8
9do_configure_prepend() { 9do_configure_prepend() {
10 # Copy psu_init* files to fsbl source code 10 # Copy psu_init* files to fsbl source code
11 cp ${PSU_INIT} ${WORKDIR}/git/lib/sw_apps/zynqmp_fsbl/src/ 11 cp ${PSU_INIT} ${S}/${ESW_COMPONENT_SRC}
12} 12}
13 13
14do_install() { 14do_install() {
15 install -d ${D}/${base_libdir}/firmware 15 install -d ${D}/${base_libdir}/firmware
16 # Note that we have to make the ELF executable for it to be stripped 16 # Note that we have to make the ELF executable for it to be stripped
17 install -m 0755 ${WORKDIR}/build/zynqmp_fsbl* ${D}/${base_libdir}/firmware 17 install -m 0755 ${B}/zynqmp_fsbl* ${D}/${base_libdir}/firmware
18} 18}
19 19
20ZYNQMP_FSBL_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" 20ZYNQMP_FSBL_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
diff --git a/meta-xilinx-standalone/recipes-libraries/libxil_git.bb b/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
index 4fa5dc75..7c693b96 100644
--- a/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
+++ b/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
@@ -8,13 +8,13 @@ DEPENDS += "dtc-native python3-pyyaml-native xilmem device-tree"
8do_generate_cmake (){ 8do_generate_cmake (){
9 # This will generate CMakeLists.txt which contains 9 # This will generate CMakeLists.txt which contains
10 # drivers for the libxil 10 # drivers for the libxil
11 cd ${WORKDIR}/git 11 cd ${S}
12 DRIVERS_LIST=$(nativepython3 ${WORKDIR}/git/scripts/getdrvlist.py -d ${DTBFILE}) 12 DRIVERS_LIST=$(nativepython3 ${S}/scripts/getdrvlist.py -d ${DTBFILE})
13} 13}
14do_generate_driver_data (){ 14do_generate_driver_data (){
15 # This script should also not rely on relative paths and such 15 # This script should also not rely on relative paths and such
16 cd ${WORKDIR}/git 16 cd ${S}
17 nativepython3 ${WORKDIR}/git/scripts/generate_drvdata.py -d ${DTBFILE} 17 nativepython3 ${S}/scripts/generate_drvdata.py -d ${DTBFILE}
18} 18}
19 19
20# Task dependencies might need to be fixed after unifying the DTB flow 20# Task dependencies might need to be fixed after unifying the DTB flow
diff --git a/meta-xilinx-standalone/recipes-libraries/xilstandalone_git.bb b/meta-xilinx-standalone/recipes-libraries/xilstandalone_git.bb
index 072f336f..5762b027 100644
--- a/meta-xilinx-standalone/recipes-libraries/xilstandalone_git.bb
+++ b/meta-xilinx-standalone/recipes-libraries/xilstandalone_git.bb
@@ -7,8 +7,8 @@ DEPENDS += "dtc-native python3-pyyaml-native libgloss device-tree"
7 7
8do_generate_bspcfg_data () { 8do_generate_bspcfg_data () {
9 # This script should also not rely on relative paths and such 9 # This script should also not rely on relative paths and such
10 cd ${WORKDIR}/git 10 cd ${S}
11 nativepython3 ${WORKDIR}/git/scripts/generate_libdata.py -d ${DTBFILE} 11 nativepython3 ${S}/scripts/generate_libdata.py -d ${DTBFILE}
12} 12}
13 13
14# Task dependencies might need to be fixed after unifying the DTB flow 14# Task dependencies might need to be fixed after unifying the DTB flow