wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000, 2001, 2002 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # See file CREDITS for list of people who contributed to this |
| 6 | # project. |
| 7 | # |
| 8 | # This program is free software; you can redistribute it and/or |
| 9 | # modify it under the terms of the GNU General Public License as |
| 10 | # published by the Free Software Foundation; either version 2 of |
| 11 | # the License, or (at your option) any later version. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program; if not, write to the Free Software |
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | # MA 02111-1307 USA |
| 22 | # |
| 23 | |
| 24 | HOSTARCH := $(shell uname -m | \ |
| 25 | sed -e s/i.86/i386/ \ |
| 26 | -e s/sun4u/sparc64/ \ |
| 27 | -e s/arm.*/arm/ \ |
| 28 | -e s/sa110/arm/ \ |
| 29 | -e s/powerpc/ppc/ \ |
| 30 | -e s/macppc/ppc/) |
| 31 | |
| 32 | HOSTOS := $(shell uname -s | tr A-Z a-z | \ |
| 33 | sed -e 's/\(cygwin\).*/cygwin/') |
| 34 | |
| 35 | export HOSTARCH |
| 36 | |
| 37 | # Deal with colliding definitions from tcsh etc. |
| 38 | VENDOR= |
| 39 | |
| 40 | ######################################################################### |
| 41 | |
| 42 | TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) |
| 43 | export TOPDIR |
| 44 | |
| 45 | ifeq (include/config.mk,$(wildcard include/config.mk)) |
| 46 | # load ARCH, BOARD, and CPU configuration |
| 47 | include include/config.mk |
| 48 | export ARCH CPU BOARD VENDOR |
| 49 | # load other configuration |
| 50 | include $(TOPDIR)/config.mk |
| 51 | |
| 52 | ifndef CROSS_COMPILE |
| 53 | ifeq ($(HOSTARCH),ppc) |
| 54 | CROSS_COMPILE = |
| 55 | else |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 56 | ifeq ($(ARCH),ppc) |
| 57 | CROSS_COMPILE = ppc_8xx- |
| 58 | endif |
| 59 | ifeq ($(ARCH),arm) |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 60 | CROSS_COMPILE = arm-linux- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 61 | endif |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 62 | ifeq ($(ARCH),i386) |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 63 | ifeq ($(HOSTARCH),i386) |
| 64 | CROSS_COMPILE = |
| 65 | else |
| 66 | CROSS_COMPILE = i386-linux- |
| 67 | endif |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 68 | endif |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 69 | ifeq ($(ARCH),mips) |
| 70 | CROSS_COMPILE = mips_4KC- |
| 71 | endif |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 72 | endif |
| 73 | endif |
| 74 | |
| 75 | export CROSS_COMPILE |
| 76 | |
| 77 | # The "tools" are needed early, so put this first |
| 78 | SUBDIRS = tools \ |
wdenk | f5300ab | 2003-09-12 15:35:15 +0000 | [diff] [blame] | 79 | examples \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 80 | lib_generic \ |
| 81 | lib_$(ARCH) \ |
| 82 | cpu/$(CPU) \ |
| 83 | board/$(BOARDDIR) \ |
| 84 | common \ |
| 85 | disk \ |
| 86 | fs \ |
| 87 | net \ |
| 88 | rtc \ |
| 89 | dtt \ |
| 90 | drivers \ |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 91 | drivers/sk98lin \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 92 | post \ |
wdenk | f5300ab | 2003-09-12 15:35:15 +0000 | [diff] [blame] | 93 | post/cpu |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 94 | |
| 95 | ######################################################################### |
| 96 | # U-Boot objects....order is important (i.e. start must be first) |
| 97 | |
| 98 | OBJS = cpu/$(CPU)/start.o |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 99 | ifeq ($(CPU),i386) |
| 100 | OBJS += cpu/$(CPU)/start16.o |
| 101 | OBJS += cpu/$(CPU)/reset.o |
| 102 | endif |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 103 | ifeq ($(CPU),ppc4xx) |
| 104 | OBJS += cpu/$(CPU)/resetvec.o |
| 105 | endif |
| 106 | |
| 107 | LIBS = board/$(BOARDDIR)/lib$(BOARD).a |
| 108 | LIBS += cpu/$(CPU)/lib$(CPU).a |
| 109 | LIBS += lib_$(ARCH)/lib$(ARCH).a |
wdenk | 71f9511 | 2003-06-15 22:40:42 +0000 | [diff] [blame] | 110 | LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 111 | LIBS += net/libnet.a |
| 112 | LIBS += disk/libdisk.a |
| 113 | LIBS += rtc/librtc.a |
| 114 | LIBS += dtt/libdtt.a |
| 115 | LIBS += drivers/libdrivers.a |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 116 | LIBS += drivers/sk98lin/libsk98lin.a |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 117 | LIBS += post/libpost.a post/cpu/libcpu.a |
| 118 | LIBS += common/libcommon.a |
| 119 | LIBS += lib_generic/libgeneric.a |
wdenk | 4f7cb08 | 2003-09-11 23:06:34 +0000 | [diff] [blame] | 120 | # Add GCC lib |
wdenk | fc3e216 | 2003-10-08 22:33:00 +0000 | [diff] [blame] | 121 | PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 122 | |
| 123 | ######################################################################### |
wdenk | bdccc4f | 2003-08-05 17:43:17 +0000 | [diff] [blame] | 124 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 125 | |
wdenk | bdccc4f | 2003-08-05 17:43:17 +0000 | [diff] [blame] | 126 | ALL = u-boot.srec u-boot.bin System.map |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 127 | |
wdenk | bdccc4f | 2003-08-05 17:43:17 +0000 | [diff] [blame] | 128 | all: $(ALL) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 129 | |
| 130 | u-boot.srec: u-boot |
| 131 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ |
| 132 | |
| 133 | u-boot.bin: u-boot |
| 134 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ |
| 135 | |
wdenk | bdccc4f | 2003-08-05 17:43:17 +0000 | [diff] [blame] | 136 | u-boot.img: u-boot.bin |
| 137 | ./tools/mkimage -A $(ARCH) -T firmware -C none \ |
| 138 | -a $(TEXT_BASE) -e 0 \ |
| 139 | -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ |
| 140 | sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ |
| 141 | -d $< $@ |
| 142 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 143 | u-boot.dis: u-boot |
| 144 | $(OBJDUMP) -d $< > $@ |
| 145 | |
| 146 | u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 147 | UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ |
| 148 | $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 149 | --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 150 | -Map u-boot.map -o u-boot |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 151 | |
| 152 | subdirs: |
| 153 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done |
| 154 | |
dzu | 8f713fd | 2003-08-07 14:20:31 +0000 | [diff] [blame] | 155 | gdbtools: |
| 156 | $(MAKE) -C tools/gdb || exit 1 |
| 157 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 158 | depend dep: |
| 159 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done |
| 160 | |
| 161 | tags: |
| 162 | ctags -w `find $(SUBDIRS) include \ |
| 163 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
| 164 | |
| 165 | etags: |
| 166 | etags -a `find $(SUBDIRS) include \ |
| 167 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
| 168 | |
| 169 | System.map: u-boot |
| 170 | @$(NM) $< | \ |
| 171 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ |
| 172 | sort > System.map |
| 173 | |
| 174 | ######################################################################### |
| 175 | else |
| 176 | all install u-boot u-boot.srec depend dep: |
| 177 | @echo "System not configured - see README" >&2 |
| 178 | @ exit 1 |
| 179 | endif |
| 180 | |
| 181 | ######################################################################### |
| 182 | |
| 183 | unconfig: |
| 184 | rm -f include/config.h include/config.mk |
| 185 | |
| 186 | #======================================================================== |
| 187 | # PowerPC |
| 188 | #======================================================================== |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 189 | |
| 190 | ######################################################################### |
| 191 | ## MPC5xx Systems |
| 192 | ######################################################################### |
| 193 | |
| 194 | cmi_mpc5xx_config: unconfig |
| 195 | @./mkconfig $(@:_config=) ppc mpc5xx cmi |
| 196 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 197 | ######################################################################### |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 198 | ## MPC5xxx Systems |
| 199 | ######################################################################### |
| 200 | IceCube_5200_config \ |
| 201 | IceCube_5100_config: unconfig |
| 202 | @ >include/config.h |
| 203 | @[ -z "$(findstring _5200,$@)" ] || \ |
| 204 | { echo "#define CONFIG_MPC5200" >>include/config.h ; \ |
| 205 | echo "... with MPC5200 processor" ; \ |
| 206 | } |
| 207 | @[ -z "$(findstring _5100,$@)" ] || \ |
| 208 | { echo "#define CONFIG_MGT5100" >>include/config.h ; \ |
| 209 | echo "... with MGT5100 processor" ; \ |
| 210 | } |
| 211 | @./mkconfig -a IceCube ppc mpc5xxx icecube |
| 212 | |
| 213 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 214 | ## MPC8xx Systems |
| 215 | ######################################################################### |
| 216 | |
wdenk | 0cb61d7 | 2003-08-30 00:05:50 +0000 | [diff] [blame] | 217 | AdderII_config: unconfig |
| 218 | @./mkconfig $(@:_config=) ppc mpc8xx adderII |
| 219 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 220 | ADS860_config: unconfig |
| 221 | @./mkconfig $(@:_config=) ppc mpc8xx fads |
| 222 | |
| 223 | AMX860_config : unconfig |
| 224 | @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel |
| 225 | |
| 226 | c2mon_config: unconfig |
| 227 | @./mkconfig $(@:_config=) ppc mpc8xx c2mon |
| 228 | |
| 229 | CCM_config: unconfig |
| 230 | @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens |
| 231 | |
| 232 | cogent_mpc8xx_config: unconfig |
| 233 | @./mkconfig $(@:_config=) ppc mpc8xx cogent |
| 234 | |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 235 | ELPT860_config: unconfig |
| 236 | @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX |
| 237 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 238 | ESTEEM192E_config: unconfig |
| 239 | @./mkconfig $(@:_config=) ppc mpc8xx esteem192e |
| 240 | |
| 241 | ETX094_config : unconfig |
| 242 | @./mkconfig $(@:_config=) ppc mpc8xx etx094 |
| 243 | |
| 244 | FADS823_config \ |
| 245 | FADS850SAR_config \ |
wdenk | 2535d60 | 2003-07-17 23:16:40 +0000 | [diff] [blame] | 246 | MPC86xADS_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 247 | FADS860T_config: unconfig |
| 248 | @./mkconfig $(@:_config=) ppc mpc8xx fads |
| 249 | |
| 250 | FLAGADM_config: unconfig |
| 251 | @./mkconfig $(@:_config=) ppc mpc8xx flagadm |
| 252 | |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 253 | xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) |
| 254 | |
| 255 | GEN860T_SC_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 256 | GEN860T_config: unconfig |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 257 | @ >include/config.h |
| 258 | @[ -z "$(findstring _SC,$@)" ] || \ |
| 259 | { echo "#define CONFIG_SC" >>include/config.h ; \ |
| 260 | echo "With reduced H/W feature set (SC)..." ; \ |
| 261 | } |
| 262 | @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 263 | |
| 264 | GENIETV_config: unconfig |
| 265 | @./mkconfig $(@:_config=) ppc mpc8xx genietv |
| 266 | |
| 267 | GTH_config: unconfig |
| 268 | @./mkconfig $(@:_config=) ppc mpc8xx gth |
| 269 | |
| 270 | hermes_config : unconfig |
| 271 | @./mkconfig $(@:_config=) ppc mpc8xx hermes |
| 272 | |
| 273 | IAD210_config: unconfig |
| 274 | @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens |
| 275 | |
| 276 | xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) |
| 277 | |
| 278 | ICU862_100MHz_config \ |
| 279 | ICU862_config: unconfig |
| 280 | @ >include/config.h |
| 281 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 282 | { echo "#define CONFIG_100MHz" >>include/config.h ; \ |
| 283 | echo "... with 100MHz system clock" ; \ |
| 284 | } |
| 285 | @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 |
| 286 | |
| 287 | IP860_config : unconfig |
| 288 | @./mkconfig $(@:_config=) ppc mpc8xx ip860 |
| 289 | |
| 290 | IVML24_256_config \ |
| 291 | IVML24_128_config \ |
| 292 | IVML24_config: unconfig |
| 293 | @ >include/config.h |
| 294 | @[ -z "$(findstring IVML24_config,$@)" ] || \ |
| 295 | { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ |
| 296 | } |
| 297 | @[ -z "$(findstring IVML24_128_config,$@)" ] || \ |
| 298 | { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ |
| 299 | } |
| 300 | @[ -z "$(findstring IVML24_256_config,$@)" ] || \ |
| 301 | { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ |
| 302 | } |
| 303 | @./mkconfig -a IVML24 ppc mpc8xx ivm |
| 304 | |
| 305 | IVMS8_256_config \ |
| 306 | IVMS8_128_config \ |
| 307 | IVMS8_config: unconfig |
| 308 | @ >include/config.h |
| 309 | @[ -z "$(findstring IVMS8_config,$@)" ] || \ |
| 310 | { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ |
| 311 | } |
| 312 | @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ |
| 313 | { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ |
| 314 | } |
| 315 | @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ |
| 316 | { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ |
| 317 | } |
| 318 | @./mkconfig -a IVMS8 ppc mpc8xx ivm |
| 319 | |
wdenk | 56f94be | 2002-11-05 16:35:14 +0000 | [diff] [blame] | 320 | KUP4K_config : unconfig |
| 321 | @./mkconfig $(@:_config=) ppc mpc8xx kup4k |
| 322 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 323 | LANTEC_config : unconfig |
| 324 | @./mkconfig $(@:_config=) ppc mpc8xx lantec |
| 325 | |
| 326 | lwmon_config: unconfig |
| 327 | @./mkconfig $(@:_config=) ppc mpc8xx lwmon |
| 328 | |
| 329 | MBX_config \ |
| 330 | MBX860T_config: unconfig |
| 331 | @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx |
| 332 | |
| 333 | MHPC_config: unconfig |
| 334 | @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec |
| 335 | |
| 336 | MVS1_config : unconfig |
| 337 | @./mkconfig $(@:_config=) ppc mpc8xx mvs1 |
| 338 | |
wdenk | 993cad9 | 2003-06-26 22:04:09 +0000 | [diff] [blame] | 339 | xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) |
| 340 | |
| 341 | NETVIA_V2_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 342 | NETVIA_config: unconfig |
wdenk | 993cad9 | 2003-06-26 22:04:09 +0000 | [diff] [blame] | 343 | @ >include/config.h |
| 344 | @[ -z "$(findstring NETVIA_config,$@)" ] || \ |
| 345 | { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ |
| 346 | echo "... Version 1" ; \ |
| 347 | } |
| 348 | @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ |
| 349 | { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ |
| 350 | echo "... Version 2" ; \ |
| 351 | } |
| 352 | @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 353 | |
| 354 | NX823_config: unconfig |
| 355 | @./mkconfig $(@:_config=) ppc mpc8xx nx823 |
| 356 | |
| 357 | pcu_e_config: unconfig |
| 358 | @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens |
| 359 | |
| 360 | R360MPI_config: unconfig |
| 361 | @./mkconfig $(@:_config=) ppc mpc8xx r360mpi |
| 362 | |
wdenk | 682011f | 2003-06-03 23:54:09 +0000 | [diff] [blame] | 363 | RBC823_config: unconfig |
| 364 | @./mkconfig $(@:_config=) ppc mpc8xx rbc823 |
| 365 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 366 | RPXClassic_config: unconfig |
| 367 | @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic |
| 368 | |
| 369 | RPXlite_config: unconfig |
| 370 | @./mkconfig $(@:_config=) ppc mpc8xx RPXlite |
| 371 | |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 372 | rmu_config: unconfig |
| 373 | @./mkconfig $(@:_config=) ppc mpc8xx rmu |
| 374 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 375 | RRvision_config: unconfig |
| 376 | @./mkconfig $(@:_config=) ppc mpc8xx RRvision |
| 377 | |
| 378 | RRvision_LCD_config: unconfig |
| 379 | @echo "#define CONFIG_LCD" >include/config.h |
| 380 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h |
| 381 | @./mkconfig -a RRvision ppc mpc8xx RRvision |
| 382 | |
| 383 | SM850_config : unconfig |
| 384 | @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx |
| 385 | |
| 386 | SPD823TS_config: unconfig |
| 387 | @./mkconfig $(@:_config=) ppc mpc8xx spd8xx |
| 388 | |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 389 | svm_sc8xx_config: unconfig |
| 390 | @ >include/config.h |
| 391 | @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx |
| 392 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 393 | SXNI855T_config: unconfig |
| 394 | @./mkconfig $(@:_config=) ppc mpc8xx sixnet |
| 395 | |
wdenk | db2f721 | 2003-03-06 00:58:30 +0000 | [diff] [blame] | 396 | # EMK MPC8xx based modules |
| 397 | TOP860_config: unconfig |
| 398 | @./mkconfig $(@:_config=) ppc mpc8xx top860 emk |
| 399 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 400 | # Play some tricks for configuration selection |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 401 | # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock, |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 402 | # but only 855 and 860 boards may come with FEC |
| 403 | # and 823 boards may have LCD support |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 404 | xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1))))) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 405 | |
| 406 | FPS850L_config \ |
wdenk | 384ae02 | 2002-11-05 00:17:55 +0000 | [diff] [blame] | 407 | FPS860L_config \ |
wdenk | f12e568 | 2003-07-07 20:07:54 +0000 | [diff] [blame] | 408 | NSCU_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 409 | TQM823L_config \ |
| 410 | TQM823L_66MHz_config \ |
| 411 | TQM823L_80MHz_config \ |
| 412 | TQM823L_LCD_config \ |
| 413 | TQM823L_LCD_66MHz_config \ |
| 414 | TQM823L_LCD_80MHz_config \ |
| 415 | TQM850L_config \ |
| 416 | TQM850L_66MHz_config \ |
| 417 | TQM850L_80MHz_config \ |
| 418 | TQM855L_config \ |
| 419 | TQM855L_66MHz_config \ |
| 420 | TQM855L_80MHz_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 421 | TQM860L_config \ |
| 422 | TQM860L_66MHz_config \ |
| 423 | TQM860L_80MHz_config \ |
wdenk | d126bfb | 2003-04-10 11:18:18 +0000 | [diff] [blame] | 424 | TQM862L_config \ |
| 425 | TQM862L_66MHz_config \ |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 426 | TQM862L_80MHz_config \ |
wdenk | ae3af05 | 2003-08-07 22:18:11 +0000 | [diff] [blame] | 427 | TQM823M_config \ |
| 428 | TQM823M_66MHz_config \ |
| 429 | TQM823M_80MHz_config \ |
| 430 | TQM850M_config \ |
| 431 | TQM850M_66MHz_config \ |
| 432 | TQM850M_80MHz_config \ |
wdenk | f12e568 | 2003-07-07 20:07:54 +0000 | [diff] [blame] | 433 | TQM855M_config \ |
| 434 | TQM855M_66MHz_config \ |
| 435 | TQM855M_80MHz_config \ |
| 436 | TQM860M_config \ |
| 437 | TQM860M_66MHz_config \ |
| 438 | TQM860M_80MHz_config \ |
| 439 | TQM862M_config \ |
| 440 | TQM862M_66MHz_config \ |
| 441 | TQM862M_80MHz_config \ |
wdenk | 71f9511 | 2003-06-15 22:40:42 +0000 | [diff] [blame] | 442 | TQM862M_100MHz_config: unconfig |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 443 | @ >include/config.h |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 444 | @[ -z "$(findstring _66MHz,$@)" ] || \ |
| 445 | { echo "#define CONFIG_66MHz" >>include/config.h ; \ |
| 446 | echo "... with 66MHz system clock" ; \ |
| 447 | } |
| 448 | @[ -z "$(findstring _80MHz,$@)" ] || \ |
| 449 | { echo "#define CONFIG_80MHz" >>include/config.h ; \ |
| 450 | echo "... with 80MHz system clock" ; \ |
| 451 | } |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 452 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 453 | { echo "#define CONFIG_100MHz" >>include/config.h ; \ |
| 454 | echo "... with 100MHz system clock" ; \ |
| 455 | } |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 456 | @[ -z "$(findstring _LCD,$@)" ] || \ |
| 457 | { echo "#define CONFIG_LCD" >>include/config.h ; \ |
| 458 | echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ |
| 459 | echo "... with LCD display" ; \ |
| 460 | } |
| 461 | @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx |
| 462 | |
| 463 | TTTech_config: unconfig |
| 464 | @echo "#define CONFIG_LCD" >include/config.h |
| 465 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h |
| 466 | @./mkconfig -a TQM823L ppc mpc8xx tqm8xx |
| 467 | |
wdenk | 608c914 | 2003-01-13 23:54:46 +0000 | [diff] [blame] | 468 | v37_config: unconfig |
| 469 | @echo "#define CONFIG_LCD" >include/config.h |
| 470 | @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h |
| 471 | @./mkconfig $(@:_config=) ppc mpc8xx v37 |
| 472 | |
dzu | 91e940d | 2003-09-25 22:32:40 +0000 | [diff] [blame] | 473 | wtk_config: unconfig |
| 474 | @echo "#define CONFIG_LCD" >include/config.h |
| 475 | @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h |
| 476 | @./mkconfig -a TQM823L ppc mpc8xx tqm8xx |
| 477 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 478 | ######################################################################### |
| 479 | ## PPC4xx Systems |
| 480 | ######################################################################### |
wdenk | fbe4b5c | 2003-10-06 21:55:32 +0000 | [diff] [blame] | 481 | xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1)))) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 482 | |
| 483 | ADCIOP_config: unconfig |
| 484 | @./mkconfig $(@:_config=) ppc ppc4xx adciop esd |
| 485 | |
| 486 | AR405_config: unconfig |
| 487 | @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd |
| 488 | |
stroese | 549826e | 2003-05-23 11:41:44 +0000 | [diff] [blame] | 489 | ASH405_config: unconfig |
| 490 | @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd |
| 491 | |
| 492 | BUBINGA405EP_config:unconfig |
| 493 | @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep |
| 494 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 495 | CANBT_config: unconfig |
| 496 | @./mkconfig $(@:_config=) ppc ppc4xx canbt esd |
| 497 | |
stroese | 549826e | 2003-05-23 11:41:44 +0000 | [diff] [blame] | 498 | CPCI405_config \ |
| 499 | CPCI4052_config \ |
| 500 | CPCI405AB_config: unconfig |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 501 | @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd |
| 502 | @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk |
| 503 | |
| 504 | CPCI440_config: unconfig |
| 505 | @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd |
| 506 | |
| 507 | CPCIISER4_config: unconfig |
| 508 | @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd |
| 509 | |
| 510 | CRAYL1_config:unconfig |
| 511 | @./mkconfig $(@:_config=) ppc ppc4xx L1 cray |
| 512 | |
| 513 | DASA_SIM_config: unconfig |
| 514 | @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd |
| 515 | |
stroese | 72cd5aa | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 516 | DP405_config: unconfig |
| 517 | @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd |
| 518 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 519 | DU405_config: unconfig |
| 520 | @./mkconfig $(@:_config=) ppc ppc4xx du405 esd |
| 521 | |
| 522 | EBONY_config:unconfig |
| 523 | @./mkconfig $(@:_config=) ppc ppc4xx ebony |
| 524 | |
| 525 | ERIC_config:unconfig |
| 526 | @./mkconfig $(@:_config=) ppc ppc4xx eric |
| 527 | |
wdenk | d1cbe85 | 2003-06-28 17:24:46 +0000 | [diff] [blame] | 528 | EXBITGEN_config:unconfig |
| 529 | @./mkconfig $(@:_config=) ppc ppc4xx exbitgen |
| 530 | |
stroese | 72cd5aa | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 531 | HUB405_config: unconfig |
| 532 | @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd |
| 533 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 534 | MIP405_config:unconfig |
| 535 | @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl |
| 536 | |
wdenk | f3e0de6 | 2003-06-04 15:05:30 +0000 | [diff] [blame] | 537 | MIP405T_config:unconfig |
| 538 | @echo "#define CONFIG_MIP405T" >include/config.h |
| 539 | @echo "Enable subset config for MIP405T" |
| 540 | @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl |
| 541 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 542 | ML2_config:unconfig |
| 543 | @./mkconfig $(@:_config=) ppc ppc4xx ml2 |
| 544 | |
| 545 | OCRTC_config \ |
| 546 | ORSG_config: unconfig |
| 547 | @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd |
| 548 | |
| 549 | PCI405_config: unconfig |
| 550 | @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd |
| 551 | |
| 552 | PIP405_config:unconfig |
| 553 | @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl |
| 554 | |
stroese | 72cd5aa | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 555 | PLU405_config: unconfig |
| 556 | @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd |
| 557 | |
stroese | 549826e | 2003-05-23 11:41:44 +0000 | [diff] [blame] | 558 | PMC405_config: unconfig |
| 559 | @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd |
| 560 | |
wdenk | fbe4b5c | 2003-10-06 21:55:32 +0000 | [diff] [blame] | 561 | PPChameleonEVB_MODEL_BA_config \ |
| 562 | PPChameleonEVB_MODEL_ME_config \ |
| 563 | PPChameleonEVB_MODEL_HI_config \ |
wdenk | 12f3424 | 2003-09-02 22:48:03 +0000 | [diff] [blame] | 564 | PPChameleonEVB_config: unconfig |
wdenk | fbe4b5c | 2003-10-06 21:55:32 +0000 | [diff] [blame] | 565 | @ >include/config.h |
| 566 | @[ -z "$(findstring _MODEL_BA,$@)" ] || \ |
| 567 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ |
| 568 | echo "... BASIC model" ; \ |
| 569 | } |
| 570 | @[ -z "$(findstring _MODEL_ME,$@)" ] || \ |
| 571 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ |
| 572 | echo "... MEDIUM model" ; \ |
| 573 | } |
| 574 | @[ -z "$(findstring _MODEL_HI,$@)" ] || \ |
| 575 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ |
| 576 | echo "... HIGH-END model" ; \ |
| 577 | } |
| 578 | @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave |
wdenk | 12f3424 | 2003-09-02 22:48:03 +0000 | [diff] [blame] | 579 | |
stroese | 72cd5aa | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 580 | VOH405_config: unconfig |
| 581 | @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd |
| 582 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 583 | W7OLMC_config \ |
| 584 | W7OLMG_config: unconfig |
| 585 | @./mkconfig $(@:_config=) ppc ppc4xx w7o |
| 586 | |
| 587 | WALNUT405_config:unconfig |
| 588 | @./mkconfig $(@:_config=) ppc ppc4xx walnut405 |
| 589 | |
| 590 | ######################################################################### |
| 591 | ## MPC824x Systems |
| 592 | ######################################################################### |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 593 | xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) |
| 594 | |
wdenk | 0332990 | 2003-06-20 22:36:30 +0000 | [diff] [blame] | 595 | A3000_config: unconfig |
| 596 | @./mkconfig $(@:_config=) ppc mpc824x a3000 |
| 597 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 598 | BMW_config: unconfig |
| 599 | @./mkconfig $(@:_config=) ppc mpc824x bmw |
| 600 | |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 601 | CPC45_config \ |
| 602 | CPC45_ROMBOOT_config: unconfig |
| 603 | @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 |
| 604 | @cd ./include ; \ |
| 605 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 606 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 607 | echo "... booting from 8-bit flash" ; \ |
| 608 | else \ |
| 609 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 610 | echo "... booting from 64-bit flash" ; \ |
| 611 | fi; \ |
| 612 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 613 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 614 | CU824_config: unconfig |
| 615 | @./mkconfig $(@:_config=) ppc mpc824x cu824 |
| 616 | |
| 617 | MOUSSE_config: unconfig |
| 618 | @./mkconfig $(@:_config=) ppc mpc824x mousse |
| 619 | |
| 620 | MUSENKI_config: unconfig |
| 621 | @./mkconfig $(@:_config=) ppc mpc824x musenki |
| 622 | |
| 623 | OXC_config: unconfig |
| 624 | @./mkconfig $(@:_config=) ppc mpc824x oxc |
| 625 | |
| 626 | PN62_config: unconfig |
| 627 | @./mkconfig $(@:_config=) ppc mpc824x pn62 |
| 628 | |
| 629 | Sandpoint8240_config: unconfig |
| 630 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint |
| 631 | |
| 632 | Sandpoint8245_config: unconfig |
| 633 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint |
| 634 | |
wdenk | d1cbe85 | 2003-06-28 17:24:46 +0000 | [diff] [blame] | 635 | SL8245_config: unconfig |
| 636 | @./mkconfig $(@:_config=) ppc mpc824x sl8245 |
| 637 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 638 | utx8245_config: unconfig |
| 639 | @./mkconfig $(@:_config=) ppc mpc824x utx8245 |
| 640 | |
| 641 | ######################################################################### |
| 642 | ## MPC8260 Systems |
| 643 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 644 | |
wdenk | 54387ac | 2003-10-08 22:45:44 +0000 | [diff] [blame^] | 645 | atc_config: unconfig |
| 646 | @./mkconfig $(@:_config=) ppc mpc8260 atc |
| 647 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 648 | cogent_mpc8260_config: unconfig |
| 649 | @./mkconfig $(@:_config=) ppc mpc8260 cogent |
| 650 | |
| 651 | CPU86_config \ |
| 652 | CPU86_ROMBOOT_config: unconfig |
| 653 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 |
| 654 | @cd ./include ; \ |
| 655 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 656 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 657 | echo "... booting from 8-bit flash" ; \ |
| 658 | else \ |
| 659 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 660 | echo "... booting from 64-bit flash" ; \ |
| 661 | fi; \ |
| 662 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 663 | |
| 664 | ep8260_config: unconfig |
| 665 | @./mkconfig $(@:_config=) ppc mpc8260 ep8260 |
| 666 | |
| 667 | gw8260_config: unconfig |
| 668 | @./mkconfig $(@:_config=) ppc mpc8260 gw8260 |
| 669 | |
| 670 | hymod_config: unconfig |
| 671 | @./mkconfig $(@:_config=) ppc mpc8260 hymod |
| 672 | |
| 673 | IPHASE4539_config: unconfig |
| 674 | @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 |
| 675 | |
| 676 | MPC8260ADS_config: unconfig |
| 677 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads |
| 678 | |
wdenk | db2f721 | 2003-03-06 00:58:30 +0000 | [diff] [blame] | 679 | MPC8266ADS_config: unconfig |
| 680 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads |
| 681 | |
wdenk | 10f6701 | 2003-03-25 18:06:06 +0000 | [diff] [blame] | 682 | PM825_config \ |
| 683 | PM825_ROMBOOT_config: unconfig |
| 684 | @echo "#define CONFIG_PCI" >include/config.h |
| 685 | @./mkconfig -a PM826 ppc mpc8260 pm826 |
| 686 | @cd ./include ; \ |
| 687 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 688 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 689 | echo "... booting from 8-bit flash" ; \ |
| 690 | else \ |
| 691 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 692 | echo "... booting from 64-bit flash" ; \ |
| 693 | fi; \ |
| 694 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ |
| 695 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 696 | PM826_config \ |
| 697 | PM826_ROMBOOT_config: unconfig |
| 698 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 |
| 699 | @cd ./include ; \ |
| 700 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 701 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 702 | echo "... booting from 8-bit flash" ; \ |
| 703 | else \ |
| 704 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 705 | echo "... booting from 64-bit flash" ; \ |
| 706 | fi; \ |
| 707 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ |
| 708 | |
| 709 | ppmc8260_config: unconfig |
| 710 | @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 |
| 711 | |
| 712 | RPXsuper_config: unconfig |
| 713 | @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper |
| 714 | |
| 715 | rsdproto_config: unconfig |
| 716 | @./mkconfig $(@:_config=) ppc mpc8260 rsdproto |
| 717 | |
| 718 | sacsng_config: unconfig |
| 719 | @./mkconfig $(@:_config=) ppc mpc8260 sacsng |
| 720 | |
| 721 | sbc8260_config: unconfig |
| 722 | @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 |
| 723 | |
| 724 | SCM_config: unconfig |
| 725 | @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens |
| 726 | |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 727 | TQM8255_AA_config \ |
| 728 | TQM8260_AA_config \ |
| 729 | TQM8260_AB_config \ |
| 730 | TQM8260_AC_config \ |
| 731 | TQM8260_AD_config \ |
| 732 | TQM8260_AE_config \ |
| 733 | TQM8260_AF_config \ |
| 734 | TQM8260_AG_config \ |
| 735 | TQM8260_AH_config \ |
| 736 | TQM8265_AA_config: unconfig |
| 737 | @case "$@" in \ |
| 738 | TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ |
| 739 | TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ |
| 740 | TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ |
| 741 | TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ |
| 742 | TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 743 | TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ |
| 744 | TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 745 | TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ |
| 746 | TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ |
| 747 | TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 748 | esac; \ |
| 749 | >include/config.h ; \ |
| 750 | if [ "$${CTYPE}" != "MPC8260" ] ; then \ |
| 751 | echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ |
| 752 | fi; \ |
| 753 | echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ |
| 754 | echo "... with $${CFREQ}MHz system clock" ; \ |
| 755 | if [ "$${CACHE}" == "yes" ] ; then \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 756 | echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 757 | echo "... with L2 Cache support" ; \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 758 | else \ |
| 759 | echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ |
| 760 | echo "... without L2 Cache support" ; \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 761 | fi; \ |
| 762 | if [ "$${BMODE}" == "60x" ] ; then \ |
| 763 | echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ |
| 764 | echo "... with 60x Bus Mode" ; \ |
| 765 | else \ |
| 766 | echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ |
| 767 | echo "... without 60x Bus Mode" ; \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 768 | fi |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 769 | @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 770 | |
wdenk | 54387ac | 2003-10-08 22:45:44 +0000 | [diff] [blame^] | 771 | ZPC1900_config: unconfig |
| 772 | @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 773 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 774 | ######################################################################### |
| 775 | ## 74xx/7xx Systems |
| 776 | ######################################################################### |
| 777 | |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 778 | AmigaOneG3SE_config: unconfig |
| 779 | @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI |
| 780 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 781 | EVB64260_config \ |
| 782 | EVB64260_750CX_config: unconfig |
| 783 | @./mkconfig EVB64260 ppc 74xx_7xx evb64260 |
| 784 | |
| 785 | ZUMA_config: unconfig |
| 786 | @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 |
| 787 | |
| 788 | PCIPPC2_config \ |
| 789 | PCIPPC6_config: unconfig |
| 790 | @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 |
| 791 | |
| 792 | BAB7xx_config: unconfig |
| 793 | @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec |
| 794 | |
| 795 | ELPPC_config: unconfig |
| 796 | @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec |
| 797 | |
wdenk | 12f3424 | 2003-09-02 22:48:03 +0000 | [diff] [blame] | 798 | P3G4_config: unconfig |
| 799 | @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 |
| 800 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 801 | #======================================================================== |
| 802 | # ARM |
| 803 | #======================================================================== |
| 804 | ######################################################################### |
| 805 | ## StrongARM Systems |
| 806 | ######################################################################### |
| 807 | |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 808 | at91rm9200dk_config : unconfig |
| 809 | @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk |
| 810 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 811 | lart_config : unconfig |
| 812 | @./mkconfig $(@:_config=) arm sa1100 lart |
| 813 | |
| 814 | dnp1110_config : unconfig |
| 815 | @./mkconfig $(@:_config=) arm sa1100 dnp1110 |
| 816 | |
| 817 | shannon_config : unconfig |
| 818 | @./mkconfig $(@:_config=) arm sa1100 shannon |
| 819 | |
| 820 | ######################################################################### |
wdenk | 2e5983d | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 821 | ## ARM92xT Systems |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 822 | ######################################################################### |
| 823 | |
wdenk | b0639ca | 2003-09-17 22:48:07 +0000 | [diff] [blame] | 824 | xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 825 | |
wdenk | 2e5983d | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 826 | omap1510inn_config : unconfig |
| 827 | @./mkconfig $(@:_config=) arm arm925t omap1510inn |
| 828 | |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 829 | omap1610inn_config : unconfig |
| 830 | @./mkconfig $(@:_config=) arm arm926ejs omap1610inn |
| 831 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 832 | smdk2400_config : unconfig |
| 833 | @./mkconfig $(@:_config=) arm arm920t smdk2400 |
| 834 | |
| 835 | smdk2410_config : unconfig |
| 836 | @./mkconfig $(@:_config=) arm arm920t smdk2410 |
| 837 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 838 | trab_config \ |
wdenk | b0639ca | 2003-09-17 22:48:07 +0000 | [diff] [blame] | 839 | trab_bigram_config \ |
| 840 | trab_bigflash_config \ |
wdenk | f54ebdf | 2003-09-17 15:10:32 +0000 | [diff] [blame] | 841 | trab_old_config: unconfig |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 842 | @ >include/config.h |
wdenk | b0639ca | 2003-09-17 22:48:07 +0000 | [diff] [blame] | 843 | @[ -z "$(findstring _bigram,$@)" ] || \ |
| 844 | { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ |
| 845 | echo "... with 8 MB Flash, 32 MB RAM" ; \ |
| 846 | } |
| 847 | @[ -z "$(findstring _bigflash,$@)" ] || \ |
| 848 | { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ |
| 849 | echo "... with 16 MB Flash, 16 MB RAM" ; \ |
| 850 | echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \ |
| 851 | } |
wdenk | f54ebdf | 2003-09-17 15:10:32 +0000 | [diff] [blame] | 852 | @[ -z "$(findstring _old,$@)" ] || \ |
| 853 | { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \ |
| 854 | echo "... with small memory configuration" ; \ |
wdenk | b0639ca | 2003-09-17 22:48:07 +0000 | [diff] [blame] | 855 | echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \ |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 856 | } |
| 857 | @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 858 | |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 859 | VCMA9_config : unconfig |
| 860 | @./mkconfig $(@:_config=) arm arm920t vcma9 mpl |
| 861 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 862 | ######################################################################### |
| 863 | ## ARM720T Systems |
| 864 | ######################################################################### |
| 865 | |
| 866 | impa7_config : unconfig |
| 867 | @./mkconfig $(@:_config=) arm arm720t impa7 |
| 868 | |
| 869 | ep7312_config : unconfig |
| 870 | @./mkconfig $(@:_config=) arm arm720t ep7312 |
| 871 | |
| 872 | ######################################################################### |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 873 | ## XScale Systems |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 874 | ######################################################################### |
| 875 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 876 | cradle_config : unconfig |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 877 | @./mkconfig $(@:_config=) arm pxa cradle |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 878 | |
| 879 | csb226_config : unconfig |
wdenk | 4c3b21a | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 880 | @./mkconfig $(@:_config=) arm pxa csb226 |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 881 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 882 | innokom_config : unconfig |
wdenk | 4c3b21a | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 883 | @./mkconfig $(@:_config=) arm pxa innokom |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 884 | |
| 885 | lubbock_config : unconfig |
wdenk | 4c3b21a | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 886 | @./mkconfig $(@:_config=) arm pxa lubbock |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 887 | |
wdenk | 52f52c1 | 2003-06-19 23:04:19 +0000 | [diff] [blame] | 888 | logodl_config : unconfig |
| 889 | @./mkconfig $(@:_config=) arm pxa logodl |
| 890 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 891 | wepep250_config : unconfig |
wdenk | 4c3b21a | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 892 | @./mkconfig $(@:_config=) arm pxa wepep250 |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 893 | |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 894 | #======================================================================== |
| 895 | # i386 |
| 896 | #======================================================================== |
| 897 | ######################################################################### |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 898 | ## AMD SC520 CDP |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 899 | ######################################################################### |
| 900 | sc520_cdp_config : unconfig |
| 901 | @./mkconfig $(@:_config=) i386 i386 sc520_cdp |
| 902 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 903 | sc520_spunk_config : unconfig |
| 904 | @./mkconfig $(@:_config=) i386 i386 sc520_spunk |
| 905 | |
| 906 | sc520_spunk_rel_config : unconfig |
| 907 | @./mkconfig $(@:_config=) i386 i386 sc520_spunk |
| 908 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 909 | #======================================================================== |
| 910 | # MIPS |
| 911 | #======================================================================== |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 912 | ######################################################################### |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 913 | ## MIPS32 4Kc |
| 914 | ######################################################################### |
| 915 | |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 916 | xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) |
| 917 | |
| 918 | incaip_100MHz_config \ |
| 919 | incaip_133MHz_config \ |
| 920 | incaip_150MHz_config \ |
| 921 | incaip_config: unconfig |
| 922 | @ >include/config.h |
| 923 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 924 | { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ |
| 925 | echo "... with 100MHz system clock" ; \ |
| 926 | } |
| 927 | @[ -z "$(findstring _133MHz,$@)" ] || \ |
| 928 | { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ |
| 929 | echo "... with 133MHz system clock" ; \ |
| 930 | } |
| 931 | @[ -z "$(findstring _150MHz,$@)" ] || \ |
| 932 | { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ |
| 933 | echo "... with 150MHz system clock" ; \ |
| 934 | } |
| 935 | @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip |
| 936 | |
| 937 | ######################################################################### |
| 938 | ## MIPS64 5Kc |
| 939 | ######################################################################### |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 940 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 941 | purple_config : unconfig |
| 942 | @./mkconfig $(@:_config=) mips mips purple |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 943 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 944 | ######################################################################### |
| 945 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 946 | |
| 947 | clean: |
| 948 | find . -type f \ |
| 949 | \( -name 'core' -o -name '*.bak' -o -name '*~' \ |
| 950 | -o -name '*.o' -o -name '*.a' \) -print \ |
| 951 | | xargs rm -f |
wdenk | 85ec0bc | 2003-03-31 16:34:49 +0000 | [diff] [blame] | 952 | rm -f examples/hello_world examples/timer \ |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 953 | examples/eepro100_eeprom examples/sched \ |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 954 | examples/mem_to_mem_idma2intr examples/82559_eeprom |
| 955 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 956 | rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr |
| 957 | rm -f tools/easylogo/easylogo tools/bmp_logo |
| 958 | rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 959 | rm -f tools/env/fw_printenv tools/env/fw_setenv |
wdenk | 7f70e85 | 2003-05-20 14:25:27 +0000 | [diff] [blame] | 960 | rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image |
wdenk | b0639ca | 2003-09-17 22:48:07 +0000 | [diff] [blame] | 961 | rm -f board/trab/trab_fkt board/trab/config.tmp |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 962 | |
| 963 | clobber: clean |
| 964 | find . -type f \ |
| 965 | \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ |
| 966 | -print \ |
| 967 | | xargs rm -f |
| 968 | rm -f $(OBJS) *.bak tags TAGS |
| 969 | rm -fr *.*~ |
wdenk | bdccc4f | 2003-08-05 17:43:17 +0000 | [diff] [blame] | 970 | rm -f u-boot u-boot.map $(ALL) |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 971 | rm -f tools/crc32.c tools/environment.c tools/env/crc32.c |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 972 | rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c |
wdenk | b783eda | 2003-06-25 22:26:29 +0000 | [diff] [blame] | 973 | rm -f include/asm/proc include/asm/arch include/asm |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 974 | |
| 975 | mrproper \ |
| 976 | distclean: clobber unconfig |
| 977 | |
| 978 | backup: |
| 979 | F=`basename $(TOPDIR)` ; cd .. ; \ |
| 980 | gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F |
| 981 | |
| 982 | ######################################################################### |