[oe-commits] org.oe.dev classes/xilinx-bsp.bbclass : Add a class to handle xilinx kernel requirments

ifaistos commit openembedded-commits at lists.openembedded.org
Tue Aug 21 13:57:16 UTC 2007


classes/xilinx-bsp.bbclass : Add a class to handle xilinx kernel requirments

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 3758bac2795c6a73616af6995346408ec89a8f90
ViewMTN: http://monotone.openembedded.org/revision.psp?id=3758bac2795c6a73616af6995346408ec89a8f90
Files:
1
classes/xilinx-bsp.bbclass
Diffs:

#
# mt diff -r0dea00d57543fd353c9b38363b9f4aa52981b178 -r3758bac2795c6a73616af6995346408ec89a8f90
#
# 
# 
# add_file "classes/xilinx-bsp.bbclass"
#  content [1c5ead4afe4f57431d3f3a5a8c80bdaf34afa9b8]
# 
============================================================
--- classes/xilinx-bsp.bbclass	1c5ead4afe4f57431d3f3a5a8c80bdaf34afa9b8
+++ classes/xilinx-bsp.bbclass	1c5ead4afe4f57431d3f3a5a8c80bdaf34afa9b8
@@ -0,0 +1,53 @@
+# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+#
+#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
+#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
+#XILINX_BSP_PATH should have the complete path to your project dir
+#XILINX_BOARD should have the board type i.e ML403
+#
+#Currently supported boards
+#Xilinx ML403
+#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 -a ${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               
+
+
+}
+
+
+
+
+






More information about the Openembedded-commits mailing list