diff options
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 |
