diff options
author | Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> | 2022-02-24 16:56:26 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-02-28 12:31:03 -0800 |
commit | c30bea99d094e9d70117e6c4c3f3bd5f44f642d8 (patch) | |
tree | 86e2dd6f966e3c7d55f3a1b27491c73a819e7835 /meta-xilinx-core/classes | |
parent | f1246b4202b842444d8317cfdf2d5b54ec352ff7 (diff) | |
download | meta-xilinx-c30bea99d094e9d70117e6c4c3f3bd5f44f642d8.tar.gz |
fpgamanager_custom: Split SRC_URI with space
Splitting with file:// is not extracting the file name when git path is
in between (Ex: file://rp.xsa git://devicetree-xlnx.git file://base.tcl)
with above example the xsa path will be "rp.xsa
git://devicetree-xlnx.git" which is not proper.
To fix this splitting the SRC_URI with space and removes the prefix
'file://'.
Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
(cherry picked from commit 091a36ab03c04b5b507e8d862372c4e4d21a9814)
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/classes')
-rw-r--r-- | meta-xilinx-core/classes/fpgamanager_custom.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-xilinx-core/classes/fpgamanager_custom.bbclass b/meta-xilinx-core/classes/fpgamanager_custom.bbclass index 0b5fa249..848727fb 100644 --- a/meta-xilinx-core/classes/fpgamanager_custom.bbclass +++ b/meta-xilinx-core/classes/fpgamanager_custom.bbclass | |||
@@ -30,13 +30,13 @@ python (){ | |||
30 | or d.getVar("SRC_URI").count("shell.json") != 1: | 30 | or d.getVar("SRC_URI").count("shell.json") != 1: |
31 | raise bb.parse.SkipRecipe("Need one '.dtsi', one '.bit' and one 'shell.json' file added to SRC_URI") | 31 | raise bb.parse.SkipRecipe("Need one '.dtsi', one '.bit' and one 'shell.json' file added to SRC_URI") |
32 | 32 | ||
33 | d.setVar("DTSI_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split('file://') if '.dtsi' in a][0])) | 33 | d.setVar("DTSI_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split() if '.dtsi' in a][0].lstrip('file://'))) |
34 | d.setVar("BIT_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split('file://') if '.bit' in a][0])) | 34 | d.setVar("BIT_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split() if '.bit' in a][0].lstrip('file://'))) |
35 | d.setVar("JSON_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split('file://') if 'shell.json' in a][0])) | 35 | d.setVar("JSON_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split() if 'shell.json' in a][0].lstrip('file://'))) |
36 | 36 | ||
37 | #optional input | 37 | #optional input |
38 | if '.xclbin' in d.getVar("SRC_URI"): | 38 | if '.xclbin' in d.getVar("SRC_URI"): |
39 | d.setVar("XCL_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split('file://') if '.xclbin' in a][0])) | 39 | d.setVar("XCL_PATH",os.path.dirname([a for a in d.getVar('SRC_URI').split() if '.xclbin' in a][0].lstrip('file://'))) |
40 | } | 40 | } |
41 | python do_configure() { | 41 | python do_configure() { |
42 | import glob, re, shutil | 42 | import glob, re, shutil |