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:13:53 -0800 |
| commit | 091a36ab03c04b5b507e8d862372c4e4d21a9814 (patch) | |
| tree | fcdcc99c695014c03317096b7eb4beabbeaf5fd4 /meta-xilinx-core/classes | |
| parent | 81dcb9770253c668d87ca73ad0a4d9a7d2e3519f (diff) | |
| download | meta-xilinx-091a36ab03c04b5b507e8d862372c4e4d21a9814.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>
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 |
