mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-18 16:08:53 +09:00
![Wolfgang Denk](/assets/img/avatar_default.png)
cpu_reset code from cpu/$(CPU) into the new cpu/$(CPU)/$(SOC) directories Patch by Andreas Engel, 13 Mar 2006
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# ---------------------------------------------------------
|
|
# Set the core module defines according to Core Module
|
|
# ---------------------------------------------------------
|
|
# ---------------------------------------------------------
|
|
# Set up the Versatile type define
|
|
# ---------------------------------------------------------
|
|
variant=PB926EJ-S
|
|
if [ "$1" == "" ]
|
|
then
|
|
echo "$0:: No parameters - using versatilepb_config"
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
variant=PB926EJ-S
|
|
else
|
|
case "$1" in
|
|
versatilepb_config | \
|
|
versatile_config)
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
;;
|
|
|
|
versatileab_config)
|
|
echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
|
|
variant=AB926EJ-S
|
|
;;
|
|
|
|
|
|
*)
|
|
echo "$0:: Unrecognised config - using versatilepb_config"
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
variant=PB926EJ-S
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
# ---------------------------------------------------------
|
|
# Complete the configuration
|
|
# ---------------------------------------------------------
|
|
./mkconfig -a versatile arm arm926ejs versatile NULL versatile
|
|
echo "Variant:: $variant"
|