[oe] [meta-xilinx 5/7] xilinx-boot.bbclass: Add support for selecting the xilinx hardware bitstream file.

Elvis Dowson elvis.dowson at gmail.com
Wed Aug 22 19:20:22 UTC 2012


* Remove hard-coded references to the xilinx hardware bitstream file, and
  allow selection via a variable XILINX_BITSTREAM_FILE .

Signed-off-by: Elvis Dowson <elvis.dowson at gmail.com>
---
 classes/xilinx-boot.bbclass |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/classes/xilinx-boot.bbclass b/classes/xilinx-boot.bbclass
index 85fb6d9..871f82a 100644
--- a/classes/xilinx-boot.bbclass
+++ b/classes/xilinx-boot.bbclass
@@ -104,7 +104,9 @@ fi
 # For Xilinx EDK 13.1 Bootloop is set by default
 #
 cd ${XILINX_BSP_PATH}
-if [ ! -f implementation/download.bit ]; then
+#XILINX_BITSTREAM_FILE=implementation/download.bit
+XILINX_BITSTREAM_FILE=implementation/system.bit
+if [ ! -f ${XILINX_BITSTREAM_FILE} ]; then
 	# Bitstream not found generate it
 	bbnote "bitstream not found, generating it"
 	make -f ${XILINX_BSP_PATH}/system.make init_bram
@@ -114,7 +116,7 @@ if [ "${TARGET_ARCH}" = "powerpc" ]; then
 	# Find u-boot start address
 	start_address=`${TARGET_PREFIX}objdump -x u-boot | grep -w "start address" | cut -d ' ' -f3`
 	# Generate ACE image
-	xmd -tcl genace.tcl -hw implementation/download.bit -elf u-boot \
+	xmd -tcl genace.tcl -hw ${XILINX_BITSTREAM_FILE} -elf u-boot \
 	-target ppc_hw -start_address ${start_address} -ace u-boot-${XILINX_BOARD}.ace \
 	-board ${XILINX_BOARD}
 fi
-- 
1.7.9.5





More information about the Openembedded-devel mailing list