2 # ---------------------------------------------------------
3 # Set the platform defines
4 # ---------------------------------------------------------
5 echo -n "/* Integrator configuration implied " > tmp.fil
6 echo " by Makefile target */" >> tmp.fil
7 echo -n "#define CONFIG_INTEGRATOR" >> tmp.fil
8 echo " /* Integrator board */" >> tmp.fil
9 echo -n "#define CONFIG_ARCH_CINTEGRATOR" >> tmp.fil
10 echo " 1 /* Integrator/CP */" >> tmp.fil
11 # ---------------------------------------------------------
12 # Set the core module defines according to Core Module
13 # ---------------------------------------------------------
14 CC=$(CROSS_COMPILE)gcc
19 echo "$0:: No preprocessor parameter - using $(CROSS_COMPILE)gcc"
27 echo "$0:: No parameters - using $(CROSS_COMPILE)gcc arm_intcm"
33 integratorcp_config | \
39 echo -n "#define CONFIG_CM922T_XA10" >> tmp.fil
40 echo " 1 /* CPU core is ARM922T_XA10 */" >> tmp.fil
46 echo -n "#define CONFIG_CM920T" >> tmp.fil
47 echo " 1 /* CPU core is ARM920T */" >> tmp.fil
52 echo -n "#define CONFIG_CM926EJ_S" >> tmp.fil
53 echo " 1 /* CPU core is ARM926EJ-S */ " >> tmp.fil
59 echo -n "#define CONFIG_CM946E_S" >> tmp.fil
60 echo " 1 /* CPU core is ARM946E-S */ " >> tmp.fil
65 echo -n "#define CONFIG_CM1136EJF_S" >> tmp.fil
66 echo " 1 /* CPU core is ARM1136JF-S */ " >> tmp.fil
70 echo "$0:: Unrecognised target - using arm_intcm"
78 if [ "$cpu" == "arm_intcm" ]
80 echo "/* Core module undefined/not ported */" >> tmp.fil
81 echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
82 echo -n "#undef CONFIG_CM_MULTIPLE_SSRAM" >> tmp.fil
83 echo -n " /* CM may not have " >> tmp.fil
84 echo "multiple SSRAM mapping */" >> tmp.fil
85 echo -n "#undef CONFIG_CM_SPD_DETECT " >> tmp.fil
86 echo -n " /* CM may not support SPD " >> tmp.fil
87 echo "query */" >> tmp.fil
88 echo -n "#undef CONFIG_CM_REMAP " >> tmp.fil
89 echo -n " /* CM may not support " >> tmp.fil
90 echo "remapping */" >> tmp.fil
91 echo -n "#undef CONFIG_CM_INIT " >> tmp.fil
92 echo -n " /* CM may not have " >> tmp.fil
93 echo "initialization reg */" >> tmp.fil
94 echo -n "#undef CONFIG_CM_TCRAM " >> tmp.fil
95 echo " /* CM may not have TCRAM */" >> tmp.fil
97 mv tmp.fil ./include/config.h
98 # ---------------------------------------------------------
99 # Ensure correct core object loaded first in U-Boot image
100 # ---------------------------------------------------------
101 $CC -E -P -C -D CPU_FILE=cpu/$cpu/start.o \
102 -o board/integratorcp/u-boot.lds board/integratorcp/u-boot.lds.S
103 # ---------------------------------------------------------
104 # Complete the configuration
105 # ---------------------------------------------------------
106 ./mkconfig -a integratorcp arm $cpu integratorcp;