summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb19
1 files changed, 18 insertions, 1 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
index 04e5e81a..2ec1d6cd 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb
@@ -1,8 +1,25 @@
1inherit esw python3native features_check 1inherit esw python3native features_check
2 2
3LIBXIL_CONFIG ??= "" 3LIBXIL_CONFIG ??= ""
4include ${LIBXIL_CONFIG}
4 5
5require ${LIBXIL_CONFIG} 6# The python code allows us to use an include above, instead of require
7# as it enforces that the file will be available for inclusion. It also
8# gives the user feedback if something isn't configured properly.
9python () {
10 libxil_cfg = d.getVar("LIBXIL_CONFIG")
11 if libxil_cfg:
12 bbpath = d.getVar('BBPATH')
13 libxil_path = bb.utils.which(bbpath, libxil_cfg)
14 if libxil_path:
15 return
16 else:
17 d.setVar('BB_DONT_CACHE', '1')
18 bb.parse.SkipRecipe("LIBXIL_CONFIG (%s) was not found." % libxil_cfg)
19 else:
20 d.setVar('BB_DONT_CACHE', '1')
21 raise bb.parse.SkipRecipe("No LIBXIL_CONFIG set.")
22}
6 23
7ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" 24ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"
8ESW_COMPONENT_NAME = "libxil.a" 25ESW_COMPONENT_NAME = "libxil.a"