diff options
| author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2019-12-10 11:10:45 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-27 08:33:25 -0800 |
| commit | ed70e2e44ef347b956c9efefcdbc39764b8a8547 (patch) | |
| tree | 872f0f6e48c9ab1bc4e8304dfc9f5990711c2ce1 /meta-xilinx-standalone | |
| parent | 65101c31f2efe3f9274ac3d470349200dd47be7f (diff) | |
| download | meta-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>
Diffstat (limited to 'meta-xilinx-standalone')
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 | ||
| 3 | LICENSE = "Proprietary" | 3 | LICENSE = "Proprietary" |
| 4 | LICFILENAME = "license.txt" | 4 | LICFILENAME = "license.txt" |
| 5 | LIC_FILES_CHKSUM = "file://${ESWS}/${LICFILENAME};md5=f64f573816f568a50a7a8aad895b3d84" | 5 | LIC_FILES_CHKSUM = "file://${S}/${LICFILENAME};md5=f64f573816f568a50a7a8aad895b3d84" |
| 6 | 6 | ||
| 7 | XILINX_RELEASE_VERSION = "v2019.2" | 7 | XILINX_RELEASE_VERSION = "v2019.2" |
| 8 | 8 | ||
| @@ -13,8 +13,9 @@ SRC_URI = "git://gitenterprise.xilinx.com/decoupling/embeddedsw.git;branch=maste | |||
| 13 | 13 | ||
| 14 | SRCREV_FORMAT = "src_decouple" | 14 | SRCREV_FORMAT = "src_decouple" |
| 15 | 15 | ||
| 16 | ESWS = "${WORKDIR}/git/" | 16 | S = "${WORKDIR}/git/" |
| 17 | S = "${ESWS}/${ESW_COMPONENT_SRC}" | 17 | B = "${WORKDIR}/build/" |
| 18 | OECMAKE_SOURCEPATH = "${S}/${ESW_COMPONENT_SRC}" | ||
| 18 | 19 | ||
| 19 | 20 | ||
| 20 | inherit ccmake | 21 | inherit 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 | ||
| 9 | do_configure_prepend() { | 9 | do_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 | ||
| 14 | do_install() { | 14 | do_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 | ||
| 20 | ZYNQMP_FSBL_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | 20 | ZYNQMP_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" | |||
| 8 | do_generate_cmake (){ | 8 | do_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 | } |
| 14 | do_generate_driver_data (){ | 14 | do_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 | ||
| 8 | do_generate_bspcfg_data () { | 8 | do_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 |
