summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc')
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc
new file mode 100644
index 00000000..fdc252d1
--- /dev/null
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/imgsel-meta-xilinx-standalone.inc
@@ -0,0 +1,19 @@
1# Default imgsel configuration, using fsbl multiconfig
2IMGSEL_DEPENDS ?= ""
3IMGSEL_MCDEPENDS ?= "mc::${MACHINE}-cortexa53-fsbl:image-selector:do_deploy"
4IMGSEL_DEPLOY_DIR ?= "${TOPDIR}/tmp-${MACHINE}-cortexa53-fsbl/deploy/images/${MACHINE}/"
5IMGSEL_IMAGE_NAME ?= "image-selector-${MACHINE}"
6
7def check_imgsel_variables(d):
8 # If both are blank, the user MUST pass in the path to the firmware!
9 if not d.getVar('IMGSEL_DEPENDS') and not d.getVar('IMGSEL_MCDEPENDS'):
10 # Don't cache this, as the items on disk can change!
11 d.setVar('BB_DONT_CACHE', '1')
12
13 if not os.path.exists(d.getVar('IMGSEL_FILE') + ".bin"):
14 raise bb.parse.SkipRecipe("Could not open image selector file: %s.bin" % d.getVar('IMGSEL_FILE'))
15 else:
16 # We found the file, so be sure to track it
17 d.setVar('SRC_URI', 'file://${IMGSEL_FILE}.bin')
18 d.setVarFlag('do_install', 'file-checksums', '${IMGSEL_FILE}.bin:True')
19 d.setVarFlag('do_deploy', 'file-checksums', '${IMGSEL_FILE}.bin:True')