[meta-xilinx] [PATCH 1/2] xsct-tc.bbclass: inherit xsctbase to get default XILINX_VER_MAIN value
Jean-Francois Dagenais
jeff.dagenais at gmail.com
Sun Jun 4 18:28:15 PDT 2017
We shouldn't count on local.conf to define a value for XILINX_VER_MAIN.
The use case for local.conf is to handle "local" definitions for the
build. Xilinx SDK version pinning is normally carefully chosen and kept
under source control, i.e. in a layer repo.
The default value for this variable found in xsctbase.bbclass is as good
as any place.
Since xsct-tc.bbclass references XILINX_VER_MAIN, it should explicitely
consider the file which defines a convenient default value for it.
This fixes the "bootgen: command not found" error from
xilinx-bootbin.bbclass when XILINX_VER_MAIN is not defined in local.conf
(or some other global conf file such as poky.conf).
Signed-off-by: Jean-Francois Dagenais <jeff.dagenais at gmail.com>
---
classes/xsct-tc.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/classes/xsct-tc.bbclass b/classes/xsct-tc.bbclass
index 937fbd2..880a9da 100644
--- a/classes/xsct-tc.bbclass
+++ b/classes/xsct-tc.bbclass
@@ -1,3 +1,5 @@
+inherit xsctbase
+
XSCT_PATH_ADD = "${XILINX_SDK_TOOLCHAIN}/bin:"
PATH =. "${XSCT_PATH_ADD}"
--
2.1.4
More information about the meta-xilinx
mailing list