[oe-commits] Adrian Alonso : xilinx-bsp.bbclass: add support for xilinx ml507

git version control git at git.openembedded.org
Wed Mar 17 10:48:02 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: c3289a93bb0bcf6d44118bc0c10054b2cb88dd6e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c3289a93bb0bcf6d44118bc0c10054b2cb88dd6e

Author: Adrian Alonso <aalonso00 at gmail.com>
Date:   Fri Mar  5 13:15:16 2010 +0000

xilinx-bsp.bbclass: add support for xilinx ml507

Signed-off-by: Adrian Alonso <aalonso00 at gmail.com>
Signed-off-by: Stefan Schmidt <stefan at datenfreihafen.org>

---

 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..d32c60e 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
 
 }
 





More information about the Openembedded-commits mailing list