From: Elvis Dowson <elvis.dowson@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Elvis Dowson <elvis.dowson@gmail.com>
Subject: [meta-xilinx 5/7] xilinx-boot.bbclass: Add support for selecting the xilinx hardware bitstream file.
Date: Wed, 22 Aug 2012 23:20:22 +0400 [thread overview]
Message-ID: <1345663224-42350-5-git-send-email-elvis.dowson@gmail.com> (raw)
In-Reply-To: <1345663224-42350-1-git-send-email-elvis.dowson@gmail.com>
* 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(-)
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
next prev parent reply other threads:[~2012-08-22 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 19:20 [meta-xilinx 1/7] tune-ppc440: Reorder tune features Elvis Dowson
2012-08-22 19:20 ` [meta-xilinx 2/7] tune-ppc405: Add glibc configure options Elvis Dowson
2012-08-22 19:20 ` [meta-xilinx 3/7] tune-ppc405e: Add tune-ppc405e file Elvis Dowson
2012-08-22 19:20 ` [meta-xilinx 4/7] tune-ppc440e: Add tune-ppc440e file Elvis Dowson
2012-08-22 19:20 ` Elvis Dowson [this message]
2012-08-22 19:20 ` [meta-xilinx 6/7] conf: Add bblayers.conf sample configuration file Elvis Dowson
2012-08-22 19:20 ` [meta-xilinx 7/7] conf: Add local.conf " Elvis Dowson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345663224-42350-5-git-send-email-elvis.dowson@gmail.com \
--to=elvis.dowson@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.