From: Adrian Alonso <aalonso00@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 4/7] xilinx-bsp.bbclass: add support for xilinx ml507
Date: Fri, 5 Mar 2010 17:15:16 -0600 [thread overview]
Message-ID: <1267830919-14718-4-git-send-email-aalonso00@gmail.com> (raw)
In-Reply-To: <1267830919-14718-3-git-send-email-aalonso00@gmail.com>
Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
---
classes/xilinx-bsp.bbclass | 52 ++++++++++++++++++++++---------------------
1 files changed, 27 insertions(+), 25 deletions(-)
diff --git a/classes/xilinx-bsp.bbclass b/classes/xilinx-bsp.bbclass
index f657e5b..8b44ec8 100644
--- a/classes/xilinx-bsp.bbclass
+++ b/classes/xilinx-bsp.bbclass
@@ -3,7 +3,7 @@
#
#This class handles all the intricasies of getting the required files from the
#ISE/EDK/project to the kernel and prepare the kernel for compilation.
-#The Xilinx EDK supports 2 different architectures : PowerPC (ppc 405) and Microblaze
+#The Xilinx EDK supports 2 different architectures : PowerPC (ppc 405,440) and Microblaze
#Only the PowerPC BSP has been tested so far
#For this to work correctly you need to add XILINX_BSP_PATH and XILINX_BOARD to your
#local.conf
@@ -12,38 +12,40 @@
#
#Currently supported boards
#Xilinx ML403
+#Xilinx ML507
#More to come soon ;)
do_configure_prepend() {
-
#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
-if [ -z "${XILINX_BSP_PATH}" ]; then
- oefatal "XILINX_BSP_PATH not defined ! Exiting..."
- exit 1
-
-else
- if [ -z "${XILINX_BOARD}" ]; then
- oefatal "XILINX_BOARD not defined ! Exiting"
- exit 1
- fi
-
-fi
#now depending on the board type and arch do what is nessesary
-case "${XILINX_BOARD}" in
- ML403)
- oenote "ML403 board setup"
- cp -pPR ${XILINX_BSP_PATH}/ppc405_0/libsrc/linux_2_6_v1_00_a/linux/arch/ppc/platforms/4xx/xparameters/xparameters_ml40x.h \
+if [ -n "${XILINX_BSP_PATH}" ]; then
+ case "${XILINX_BOARD}" in
+ ml403 | ML403)
+ oenote "ML403 board setup"
+ cp -pPR ${XILINX_BSP_PATH}/ppc405_0/libsrc/linux_2_6_v1_00_a/linux/arch/ppc/platforms/4xx/xparameters/xparameters_ml40x.h \
${S}/arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h
- ;;
-
- * )
- oefatal "! Unknow Xilinx board ! Exiting..."
- exit 1
- ;;
-esac
-
+ ;;
+ ml507 | ML507)
+ oenote "Xilinx ML507 board setup"
+ dts=`find "${XILINX_BSP_PATH}" -name *.dts -print`
+ if [ -n "$dts" ]; then
+ oenote "Replacing device tree with ${dts}"
+ cp -pP ${dts} ${S}/arch/powerpc/boot/dts/virtex440-ml507.dts
+ else
+ oenote "Device tree not found in project dir"
+ fi
+ ;;
+ *)
+ oefatal "! Unknow Xilinx board ! Exit ..."
+ exit 1
+ ;;
+ esac
+else
+ oefatal "XILINX_BSP_PATH not defined ! Exit"
+ exit 1
+fi
}
--
1.6.6.1
next prev parent reply other threads:[~2010-03-06 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-05 23:15 [PATCH 1/7] device_table_add-xsa: add dev nodes for system ace Adrian Alonso
2010-03-05 23:15 ` [PATCH 2/7] defconfig: xilinx ml507 kernel config Adrian Alonso
2010-03-05 23:15 ` [PATCH 3/7] linux-xilinx-ml507_git: new kernel recipe for xilinx ml507 Adrian Alonso
2010-03-05 23:15 ` Adrian Alonso [this message]
2010-03-05 23:15 ` [PATCH 5/7] linux.inc: add device tree " Adrian Alonso
2010-03-05 23:15 ` [PATCH 6/7] tune-ppc440.inc: add base to extra archs Adrian Alonso
2010-03-05 23:15 ` [PATCH 7/7] xilinx-ml507.conf: new config file for ml507 devboard Adrian Alonso
2010-03-16 19:00 ` [PATCH 1/7] device_table_add-xsa: add dev nodes for system ace Stefan Schmidt
2010-03-17 22:00 ` Adrian Alonso
2010-03-17 23:00 ` Khem Raj
2010-03-18 16:42 ` Adrian Alonso
2010-03-18 19:05 ` Khem Raj
2010-03-18 22:09 ` Adrian Alonso
2010-03-18 22:11 ` Khem Raj
2010-03-19 14:09 ` Adrian Alonso
-- strict thread matches above, loose matches on Subject: below --
2010-03-05 15:55 Adrian Alonso
2010-03-05 15:55 ` [PATCH 2/7] defconfig: xilinx ml507 kernel config Adrian Alonso
2010-03-05 15:55 ` [PATCH 3/7] linux-xilinx-ml507_git: new kernel recipe for xilinx ml507 Adrian Alonso
2010-03-05 15:55 ` [PATCH 4/7] xilinx-bsp.bbclass: add support " Adrian Alonso
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=1267830919-14718-4-git-send-email-aalonso00@gmail.com \
--to=aalonso00@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox