]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/versatile/split_by_variant.sh
Update make target for ARM supported boards.
[people/ms/u-boot.git] / board / versatile / split_by_variant.sh
CommitLineData
87cb6862
WD
1#!/bin/sh
2# ---------------------------------------------------------
3# Set the core module defines according to Core Module
4# ---------------------------------------------------------
5CC=$(CROSS_COMPILE)gcc
6config="versatilepb_config"
7
8if [ "$2" == "" ]
9then
10 echo "$0:: No preprocessor parameter - using $(CROSS_COMPILE)gcc"
11else
12 CC=$2
13fi
14
15
16# ---------------------------------------------------------
17# Set up the Versatile type define
18# ---------------------------------------------------------
19if [ "$1" == "" ]
20then
21 echo "$0:: No parameters - using $(CROSS_COMPILE)gcc versatilepb_config"
22
23else
24 case "$config" in
25 versatilepb_config | \
26 versatile_config)
27 echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
28 ;;
29
30 versatileab_config)
31 echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
32 ;;
33
34
35 *)
36 echo "$0:: Unrecognised config - using versatilepb_config"
37 ;;
38
39 esac
40
41fi
42# ---------------------------------------------------------
43# Complete the configuration
44# ---------------------------------------------------------
45./mkconfig -a versatile arm arm926ejs versatile