summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-03-24 13:58:20 -0700
committerJaewon Lee <jaewon.lee@xilinx.com>2020-03-24 14:04:24 -0700
commitee0da69995919bdcab4f7322fe5df779cdca3dc4 (patch)
tree0952e205de61e5a6fb6d6224d1bbfd200bae1287
parent9e8f6e05fa2228eb2962c1ea7962c047d3123e81 (diff)
downloadmeta-xilinx-ee0da69995919bdcab4f7322fe5df779cdca3dc4.tar.gz
esw.bbclass: Only work with xilinx-standalone distro
Issue: CR-1058773 There are two versions of the plm recipe. One that works with the traditional Linux based build (basically includes a prebuilt version) and one that is built from source using the standalone configuration. There is currently no way to say a recipe is only supported when used with a particular distribution, so we add code to the esw class that makes it only usable with xilinx-standalone and xilinx-standalone-lto. In the future, we may change the way this is done. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-standalone/classes/esw.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/classes/esw.bbclass b/meta-xilinx-standalone/classes/esw.bbclass
index b05a596d..d72976e9 100644
--- a/meta-xilinx-standalone/classes/esw.bbclass
+++ b/meta-xilinx-standalone/classes/esw.bbclass
@@ -87,6 +87,9 @@ CFLAGS_append = " ${ESW_CFLAGS}"
87# recurse a maximum of x times, could be fancier but it gets complicated since 87# recurse a maximum of x times, could be fancier but it gets complicated since
88# we dont know for certain we are running devtool or just externalsrc 88# we dont know for certain we are running devtool or just externalsrc
89python(){ 89python(){
90 if not d.getVar('DISTRO').startswith('xilinx-standalone'):
91 raise bb.parse.SkipRecipe('Recipe is only compatible with xilinx-standalone')
92
90 import os.path 93 import os.path
91 if bb.data.inherits_class('externalsrc', d) or d.getVar('EXTERNALSRC'): 94 if bb.data.inherits_class('externalsrc', d) or d.getVar('EXTERNALSRC'):
92 externalsrc = d.getVar('EXTERNALSRC') 95 externalsrc = d.getVar('EXTERNALSRC')