[meta-xilinx] [meta-xilinx-tools][PATCH] xilinx-bootbin_1.0.bb: Fix task dependencies for xilinx-bootbin
Manjukumar Matha
manjukumar.harthikote-matha at xilinx.com
Mon Apr 23 16:17:45 PDT 2018
Add all the required dependencies to DEPENDS and remove all the
unnecessary tasks like fetch, unpack and patch
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
recipes-bsp/bootbin/xilinx-bootbin_1.0.bb | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb b/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
index b18c924..ecaee00 100644
--- a/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
+++ b/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
@@ -11,10 +11,26 @@ inherit xsct-tc deploy
PROVIDES = "virtual/boot-bin"
+DEPENDS += "${@get_bootbin_depends(d)}"
+
PACKAGE_ARCH = "${MACHINE_ARCH}"
BIF_FILE_PATH ?= "${B}/bootgen.bif"
+do_fetch[noexec] = "1"
+do_unpack[noexec] = "1"
+do_patch[noexec] = "1"
+
+def get_bootbin_depends(d):
+ bootbindeps = ""
+ bifpartition = (d.getVar("BIF_PARTITION_ATTR", True) or "").split()
+ attrdepends = d.getVarFlags("BIF_PARTITION_DEPENDS") or {}
+ for cfg in bifpartition:
+ if cfg in attrdepends:
+ bootbindeps = bootbindeps + " " + attrdepends[cfg]
+
+ return bootbindeps
+
def create_bif(config, attrflags, attrimage, common_attr, biffd, d):
import re, os
for cfg in config:
@@ -65,18 +81,6 @@ python do_configure() {
}
do_configure[vardeps] += "BIF_PARTITION_ATTR BIF_PARTITION_IMAGE BIF_COMMON_ATTR"
-do_configure[depends] += "${@get_bootbin_depends(d)}"
-
-def get_bootbin_depends(d):
- bootbindeps = ""
- bifpartition = (d.getVar("BIF_PARTITION_ATTR", True) or "").split()
- attrdepends = d.getVarFlags("BIF_PARTITION_DEPENDS") or {}
- for cfg in bifpartition:
- if cfg in attrdepends:
- bootbindeps = bootbindeps + " " + attrdepends[cfg] + ":do_deploy"
-
- return bootbindeps
-
do_compile() {
cd ${WORKDIR}
--
2.7.4
More information about the meta-xilinx
mailing list