blob: d32c60ec7358edc7d1f49edfa14fb6027fd08c69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# 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,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
#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
#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
#now depending on the board type and arch do what is nessesary
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
;;
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
}
|