diff options
-rw-r--r-- | meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb index 86225181..2cf4606d 100644 --- a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb +++ b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb | |||
@@ -55,6 +55,8 @@ BOOTSCR_DEP:versal-net = 'u-boot-xlnx-scr:do_deploy' | |||
55 | 55 | ||
56 | BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}" | 56 | BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}" |
57 | 57 | ||
58 | S = "${UNPACKDIR}" | ||
59 | |||
58 | do_patch[noexec] = "1" | 60 | do_patch[noexec] = "1" |
59 | 61 | ||
60 | do_compile[depends] .= " ${BOOTSCR_DEP}" | 62 | do_compile[depends] .= " ${BOOTSCR_DEP}" |
@@ -178,10 +180,10 @@ do_configure[vardeps] += "BIF_PARTITION_ATTR BIF_PARTITION_IMAGE BIF_COMMON_ATTR | |||
178 | do_configure[vardeps] += "BIF_FSBL_ATTR BIF_BITSTREAM_ATTR BIF_ATF_ATTR BIF_DEVICETREE_ATTR BIF_SSBL_ATTR" | 180 | do_configure[vardeps] += "BIF_FSBL_ATTR BIF_BITSTREAM_ATTR BIF_ATF_ATTR BIF_DEVICETREE_ATTR BIF_SSBL_ATTR" |
179 | 181 | ||
180 | do_compile() { | 182 | do_compile() { |
181 | cd ${UNPACKDIR} | 183 | cd ${S} |
182 | rm -f ${B}/BOOT.bin | 184 | rm -f ${B}/BOOT.bin |
183 | if [ "${BIF_FILE_PATH}" != "${B}/bootgen.bif" ];then | 185 | if [ "${BIF_FILE_PATH}" != "${B}/bootgen.bif" ];then |
184 | BIF_FILE_PATH="${UNPACKDIR}${BIF_FILE_PATH}" | 186 | BIF_FILE_PATH="${@os.path.join(d.getVar('S'), d.getVar('BIF_FILE_PATH'))}" |
185 | fi | 187 | fi |
186 | bootgen -image ${BIF_FILE_PATH} -arch ${BOOTGEN_ARCH} ${BOOTGEN_EXTRA_ARGS} -w -o ${B}/BOOT.bin | 188 | bootgen -image ${BIF_FILE_PATH} -arch ${BOOTGEN_ARCH} ${BOOTGEN_EXTRA_ARGS} -w -o ${B}/BOOT.bin |
187 | if [ ! -e ${B}/BOOT.bin ]; then | 189 | if [ ! -e ${B}/BOOT.bin ]; then |