]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/armltd/versatile/split_by_variant.sh
Revert "phylib: remove a couple of redundant code lines"
[people/ms/u-boot.git] / board / armltd / versatile / split_by_variant.sh
CommitLineData
87cb6862
WD
1#!/bin/sh
2# ---------------------------------------------------------
3# Set the core module defines according to Core Module
4# ---------------------------------------------------------
87cb6862
WD
5# ---------------------------------------------------------
6# Set up the Versatile type define
7# ---------------------------------------------------------
f9328639
MB
8
9mkdir -p ${obj}include
96782c63 10variant=PB926EJ-S
1aaab9bf 11if [ "$1" = "" ]
87cb6862 12then
96782c63 13 echo "$0:: No parameters - using versatilepb_config"
f9328639 14 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
96782c63 15 variant=PB926EJ-S
87cb6862 16else
96782c63 17 case "$1" in
87cb6862
WD
18 versatilepb_config | \
19 versatile_config)
f9328639 20 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
87cb6862
WD
21 ;;
22
23 versatileab_config)
f9328639 24 echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
96782c63 25 variant=AB926EJ-S
87cb6862
WD
26 ;;
27
28
29 *)
30 echo "$0:: Unrecognised config - using versatilepb_config"
f9328639 31 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
96782c63 32 variant=PB926EJ-S
87cb6862
WD
33 ;;
34
35 esac
36
37fi
38# ---------------------------------------------------------
39# Complete the configuration
40# ---------------------------------------------------------
e4943ec5 41$MKCONFIG -a versatile arm arm926ejs versatile armltd versatile
96782c63 42echo "Variant:: $variant"