3 # Script to create header files and links to configure
4 # U-Boot for a specific board.
6 # Parameters: Target Architecture CPU Board
8 # (C) 2002 DENX Software Engineering, Wolfgang Denk <wd@denx.de>
11 APPEND=no # Default: Create new config file
13 while [ $# -gt 0 ] ; do
16 -a) shift ; APPEND=yes ;;
21 [ $# -lt 4 ] && exit 1
22 [ $# -gt 5 ] && exit 1
24 echo "Configuring for $1 board..."
29 # Create link to architecture specific headers
34 ln -s arch-$3 asm-$2/arch
37 # Create include file for Make
39 echo "ARCH = $2" > config.mk
40 echo "CPU = $3" >> config.mk
41 echo "BOARD = $4" >> config.mk
43 [ "$5" ] && echo "VENDOR = $5" >> config.mk
46 # Create board specific header file
48 if [ "$APPEND" = "yes" ] # Append to existing config file
52 > config.h # Create new config file
54 echo "/* Automatically generated - do not edit */" >>config.h
55 echo "#include <configs/$1.h>" >>config.h