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

login
register
mail settings
Submitter Elvis Dowson
Date Aug. 22, 2012, 7:20 p.m.
Message ID <1345663224-42350-5-git-send-email-elvis.dowson@gmail.com>
Download mbox | patch
Permalink /patch/35173/
State Superseded
Headers show

Comments

Elvis Dowson - Aug. 22, 2012, 7:20 p.m.
* 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@gmail.com>
---
 classes/xilinx-boot.bbclass |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Patch

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