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/classes | |
| 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/classes')
| -rw-r--r-- | meta-xilinx-standalone/classes/esw.bbclass | 11 |
1 files changed, 6 insertions, 5 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 | } |
