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) |
| 60 | CROSS_COMPILE = arm_920TDI- |
| 61 | endif |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 62 | ifeq ($(ARCH),i386) |
| 63 | #CROSS_COMPILE = i386-elf- |
| 64 | endif |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 65 | ifeq ($(ARCH),mips) |
| 66 | CROSS_COMPILE = mips_4KC- |
| 67 | endif |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 68 | endif |
| 69 | endif |
| 70 | |
| 71 | export CROSS_COMPILE |
| 72 | |
| 73 | # The "tools" are needed early, so put this first |
| 74 | SUBDIRS = tools \ |
| 75 | lib_generic \ |
| 76 | lib_$(ARCH) \ |
| 77 | cpu/$(CPU) \ |
| 78 | board/$(BOARDDIR) \ |
| 79 | common \ |
| 80 | disk \ |
| 81 | fs \ |
| 82 | net \ |
| 83 | rtc \ |
| 84 | dtt \ |
| 85 | drivers \ |
| 86 | post \ |
| 87 | post/cpu \ |
| 88 | examples |
| 89 | |
| 90 | ######################################################################### |
| 91 | # U-Boot objects....order is important (i.e. start must be first) |
| 92 | |
| 93 | OBJS = cpu/$(CPU)/start.o |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 94 | ifeq ($(CPU),i386) |
| 95 | OBJS += cpu/$(CPU)/start16.o |
| 96 | OBJS += cpu/$(CPU)/reset.o |
| 97 | endif |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 98 | ifeq ($(CPU),ppc4xx) |
| 99 | OBJS += cpu/$(CPU)/resetvec.o |
| 100 | endif |
| 101 | |
| 102 | LIBS = board/$(BOARDDIR)/lib$(BOARD).a |
| 103 | LIBS += cpu/$(CPU)/lib$(CPU).a |
| 104 | LIBS += lib_$(ARCH)/lib$(ARCH).a |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 105 | LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 106 | LIBS += net/libnet.a |
| 107 | LIBS += disk/libdisk.a |
| 108 | LIBS += rtc/librtc.a |
| 109 | LIBS += dtt/libdtt.a |
| 110 | LIBS += drivers/libdrivers.a |
| 111 | LIBS += post/libpost.a post/cpu/libcpu.a |
| 112 | LIBS += common/libcommon.a |
| 113 | LIBS += lib_generic/libgeneric.a |
| 114 | |
| 115 | ######################################################################### |
| 116 | |
| 117 | all: u-boot.srec u-boot.bin System.map |
| 118 | |
| 119 | install: all |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 120 | -cp u-boot.bin /tftpboot/u-boot.bin |
| 121 | -cp u-boot.bin /net/denx/tftpboot/u-boot.bin |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 122 | |
| 123 | u-boot.srec: u-boot |
| 124 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ |
| 125 | |
| 126 | u-boot.bin: u-boot |
| 127 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ |
| 128 | |
| 129 | u-boot.dis: u-boot |
| 130 | $(OBJDUMP) -d $< > $@ |
| 131 | |
| 132 | u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 133 | $(LD) $(LDFLAGS) $(OBJS) \ |
| 134 | --start-group $(LIBS) --end-group \ |
| 135 | -Map u-boot.map -o u-boot |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 136 | |
| 137 | subdirs: |
| 138 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done |
| 139 | |
| 140 | depend dep: |
| 141 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done |
| 142 | |
| 143 | tags: |
| 144 | ctags -w `find $(SUBDIRS) include \ |
| 145 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
| 146 | |
| 147 | etags: |
| 148 | etags -a `find $(SUBDIRS) include \ |
| 149 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
| 150 | |
| 151 | System.map: u-boot |
| 152 | @$(NM) $< | \ |
| 153 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ |
| 154 | sort > System.map |
| 155 | |
| 156 | ######################################################################### |
| 157 | else |
| 158 | all install u-boot u-boot.srec depend dep: |
| 159 | @echo "System not configured - see README" >&2 |
| 160 | @ exit 1 |
| 161 | endif |
| 162 | |
| 163 | ######################################################################### |
| 164 | |
| 165 | unconfig: |
| 166 | rm -f include/config.h include/config.mk |
| 167 | |
| 168 | #======================================================================== |
| 169 | # PowerPC |
| 170 | #======================================================================== |
| 171 | ######################################################################### |
| 172 | ## MPC8xx Systems |
| 173 | ######################################################################### |
| 174 | |
| 175 | ADS860_config: unconfig |
| 176 | @./mkconfig $(@:_config=) ppc mpc8xx fads |
| 177 | |
| 178 | AMX860_config : unconfig |
| 179 | @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel |
| 180 | |
| 181 | c2mon_config: unconfig |
| 182 | @./mkconfig $(@:_config=) ppc mpc8xx c2mon |
| 183 | |
| 184 | CCM_config: unconfig |
| 185 | @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens |
| 186 | |
| 187 | cogent_mpc8xx_config: unconfig |
| 188 | @./mkconfig $(@:_config=) ppc mpc8xx cogent |
| 189 | |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 190 | ELPT860_config: unconfig |
| 191 | @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX |
| 192 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 193 | ESTEEM192E_config: unconfig |
| 194 | @./mkconfig $(@:_config=) ppc mpc8xx esteem192e |
| 195 | |
| 196 | ETX094_config : unconfig |
| 197 | @./mkconfig $(@:_config=) ppc mpc8xx etx094 |
| 198 | |
| 199 | FADS823_config \ |
| 200 | FADS850SAR_config \ |
| 201 | FADS860T_config: unconfig |
| 202 | @./mkconfig $(@:_config=) ppc mpc8xx fads |
| 203 | |
| 204 | FLAGADM_config: unconfig |
| 205 | @./mkconfig $(@:_config=) ppc mpc8xx flagadm |
| 206 | |
| 207 | GEN860T_config: unconfig |
| 208 | @./mkconfig $(@:_config=) ppc mpc8xx gen860t |
| 209 | |
| 210 | GENIETV_config: unconfig |
| 211 | @./mkconfig $(@:_config=) ppc mpc8xx genietv |
| 212 | |
| 213 | GTH_config: unconfig |
| 214 | @./mkconfig $(@:_config=) ppc mpc8xx gth |
| 215 | |
| 216 | hermes_config : unconfig |
| 217 | @./mkconfig $(@:_config=) ppc mpc8xx hermes |
| 218 | |
| 219 | IAD210_config: unconfig |
| 220 | @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens |
| 221 | |
| 222 | xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) |
| 223 | |
| 224 | ICU862_100MHz_config \ |
| 225 | ICU862_config: unconfig |
| 226 | @ >include/config.h |
| 227 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 228 | { echo "#define CONFIG_100MHz" >>include/config.h ; \ |
| 229 | echo "... with 100MHz system clock" ; \ |
| 230 | } |
| 231 | @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 |
| 232 | |
| 233 | IP860_config : unconfig |
| 234 | @./mkconfig $(@:_config=) ppc mpc8xx ip860 |
| 235 | |
| 236 | IVML24_256_config \ |
| 237 | IVML24_128_config \ |
| 238 | IVML24_config: unconfig |
| 239 | @ >include/config.h |
| 240 | @[ -z "$(findstring IVML24_config,$@)" ] || \ |
| 241 | { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ |
| 242 | } |
| 243 | @[ -z "$(findstring IVML24_128_config,$@)" ] || \ |
| 244 | { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ |
| 245 | } |
| 246 | @[ -z "$(findstring IVML24_256_config,$@)" ] || \ |
| 247 | { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ |
| 248 | } |
| 249 | @./mkconfig -a IVML24 ppc mpc8xx ivm |
| 250 | |
| 251 | IVMS8_256_config \ |
| 252 | IVMS8_128_config \ |
| 253 | IVMS8_config: unconfig |
| 254 | @ >include/config.h |
| 255 | @[ -z "$(findstring IVMS8_config,$@)" ] || \ |
| 256 | { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ |
| 257 | } |
| 258 | @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ |
| 259 | { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ |
| 260 | } |
| 261 | @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ |
| 262 | { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ |
| 263 | } |
| 264 | @./mkconfig -a IVMS8 ppc mpc8xx ivm |
| 265 | |
wdenk | 56f94be | 2002-11-05 16:35:14 +0000 | [diff] [blame] | 266 | KUP4K_config : unconfig |
| 267 | @./mkconfig $(@:_config=) ppc mpc8xx kup4k |
| 268 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 269 | LANTEC_config : unconfig |
| 270 | @./mkconfig $(@:_config=) ppc mpc8xx lantec |
| 271 | |
| 272 | lwmon_config: unconfig |
| 273 | @./mkconfig $(@:_config=) ppc mpc8xx lwmon |
| 274 | |
| 275 | MBX_config \ |
| 276 | MBX860T_config: unconfig |
| 277 | @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx |
| 278 | |
| 279 | MHPC_config: unconfig |
| 280 | @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec |
| 281 | |
| 282 | MVS1_config : unconfig |
| 283 | @./mkconfig $(@:_config=) ppc mpc8xx mvs1 |
| 284 | |
| 285 | NETVIA_config: unconfig |
| 286 | @./mkconfig $(@:_config=) ppc mpc8xx netvia |
| 287 | |
| 288 | NX823_config: unconfig |
| 289 | @./mkconfig $(@:_config=) ppc mpc8xx nx823 |
| 290 | |
| 291 | pcu_e_config: unconfig |
| 292 | @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens |
| 293 | |
| 294 | R360MPI_config: unconfig |
| 295 | @./mkconfig $(@:_config=) ppc mpc8xx r360mpi |
| 296 | |
| 297 | RPXClassic_config: unconfig |
| 298 | @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic |
| 299 | |
| 300 | RPXlite_config: unconfig |
| 301 | @./mkconfig $(@:_config=) ppc mpc8xx RPXlite |
| 302 | |
| 303 | RRvision_config: unconfig |
| 304 | @./mkconfig $(@:_config=) ppc mpc8xx RRvision |
| 305 | |
| 306 | RRvision_LCD_config: unconfig |
| 307 | @echo "#define CONFIG_LCD" >include/config.h |
| 308 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h |
| 309 | @./mkconfig -a RRvision ppc mpc8xx RRvision |
| 310 | |
| 311 | SM850_config : unconfig |
| 312 | @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx |
| 313 | |
| 314 | SPD823TS_config: unconfig |
| 315 | @./mkconfig $(@:_config=) ppc mpc8xx spd8xx |
| 316 | |
| 317 | SXNI855T_config: unconfig |
| 318 | @./mkconfig $(@:_config=) ppc mpc8xx sixnet |
| 319 | |
wdenk | db2f721f | 2003-03-06 00:58:30 +0000 | [diff] [blame] | 320 | # EMK MPC8xx based modules |
| 321 | TOP860_config: unconfig |
| 322 | @./mkconfig $(@:_config=) ppc mpc8xx top860 emk |
| 323 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 324 | # Play some tricks for configuration selection |
| 325 | # All boards can come with 50 MHz (default), 66MHz or 80MHz clock, |
| 326 | # but only 855 and 860 boards may come with FEC |
| 327 | # and 823 boards may have LCD support |
| 328 | xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _LCD,,$(subst _FEC,,$(subst _config,,$1))))) |
| 329 | |
| 330 | FPS850L_config \ |
wdenk | 384ae02 | 2002-11-05 00:17:55 +0000 | [diff] [blame] | 331 | FPS860L_config \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 332 | TQM823L_config \ |
| 333 | TQM823L_66MHz_config \ |
| 334 | TQM823L_80MHz_config \ |
| 335 | TQM823L_LCD_config \ |
| 336 | TQM823L_LCD_66MHz_config \ |
| 337 | TQM823L_LCD_80MHz_config \ |
| 338 | TQM850L_config \ |
| 339 | TQM850L_66MHz_config \ |
| 340 | TQM850L_80MHz_config \ |
| 341 | TQM855L_config \ |
| 342 | TQM855L_66MHz_config \ |
| 343 | TQM855L_80MHz_config \ |
| 344 | TQM855L_FEC_config \ |
| 345 | TQM855L_FEC_66MHz_config \ |
| 346 | TQM855L_FEC_80MHz_config \ |
| 347 | TQM860L_config \ |
| 348 | TQM860L_66MHz_config \ |
| 349 | TQM860L_80MHz_config \ |
| 350 | TQM860L_FEC_config \ |
| 351 | TQM860L_FEC_66MHz_config \ |
| 352 | TQM860L_FEC_80MHz_config: unconfig |
| 353 | @ >include/config.h |
| 354 | @[ -z "$(findstring _FEC,$@)" ] || \ |
| 355 | { echo "#define CONFIG_FEC_ENET" >>include/config.h ; \ |
| 356 | echo "... with FEC support" ; \ |
| 357 | } |
| 358 | @[ -z "$(findstring _66MHz,$@)" ] || \ |
| 359 | { echo "#define CONFIG_66MHz" >>include/config.h ; \ |
| 360 | echo "... with 66MHz system clock" ; \ |
| 361 | } |
| 362 | @[ -z "$(findstring _80MHz,$@)" ] || \ |
| 363 | { echo "#define CONFIG_80MHz" >>include/config.h ; \ |
| 364 | echo "... with 80MHz system clock" ; \ |
| 365 | } |
| 366 | @[ -z "$(findstring _LCD,$@)" ] || \ |
| 367 | { echo "#define CONFIG_LCD" >>include/config.h ; \ |
| 368 | echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ |
| 369 | echo "... with LCD display" ; \ |
| 370 | } |
| 371 | @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx |
| 372 | |
| 373 | TTTech_config: unconfig |
| 374 | @echo "#define CONFIG_LCD" >include/config.h |
| 375 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h |
| 376 | @./mkconfig -a TQM823L ppc mpc8xx tqm8xx |
| 377 | |
wdenk | 608c914 | 2003-01-13 23:54:46 +0000 | [diff] [blame] | 378 | v37_config: unconfig |
| 379 | @echo "#define CONFIG_LCD" >include/config.h |
| 380 | @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h |
| 381 | @./mkconfig $(@:_config=) ppc mpc8xx v37 |
| 382 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 383 | ######################################################################### |
| 384 | ## PPC4xx Systems |
| 385 | ######################################################################### |
| 386 | |
| 387 | ADCIOP_config: unconfig |
| 388 | @./mkconfig $(@:_config=) ppc ppc4xx adciop esd |
| 389 | |
| 390 | AR405_config: unconfig |
| 391 | @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd |
| 392 | |
| 393 | CANBT_config: unconfig |
| 394 | @./mkconfig $(@:_config=) ppc ppc4xx canbt esd |
| 395 | |
| 396 | CPCI405_config \ |
| 397 | CPCI4052_config: unconfig |
| 398 | @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd |
| 399 | @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk |
| 400 | |
| 401 | CPCI440_config: unconfig |
| 402 | @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd |
| 403 | |
| 404 | CPCIISER4_config: unconfig |
| 405 | @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd |
| 406 | |
| 407 | CRAYL1_config:unconfig |
| 408 | @./mkconfig $(@:_config=) ppc ppc4xx L1 cray |
| 409 | |
| 410 | DASA_SIM_config: unconfig |
| 411 | @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd |
| 412 | |
| 413 | DU405_config: unconfig |
| 414 | @./mkconfig $(@:_config=) ppc ppc4xx du405 esd |
| 415 | |
| 416 | EBONY_config:unconfig |
| 417 | @./mkconfig $(@:_config=) ppc ppc4xx ebony |
| 418 | |
| 419 | ERIC_config:unconfig |
| 420 | @./mkconfig $(@:_config=) ppc ppc4xx eric |
| 421 | |
| 422 | MIP405_config:unconfig |
| 423 | @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl |
| 424 | |
| 425 | ML2_config:unconfig |
| 426 | @./mkconfig $(@:_config=) ppc ppc4xx ml2 |
| 427 | |
| 428 | OCRTC_config \ |
| 429 | ORSG_config: unconfig |
| 430 | @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd |
| 431 | |
| 432 | PCI405_config: unconfig |
| 433 | @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd |
| 434 | |
| 435 | PIP405_config:unconfig |
| 436 | @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl |
| 437 | |
| 438 | W7OLMC_config \ |
| 439 | W7OLMG_config: unconfig |
| 440 | @./mkconfig $(@:_config=) ppc ppc4xx w7o |
| 441 | |
| 442 | WALNUT405_config:unconfig |
| 443 | @./mkconfig $(@:_config=) ppc ppc4xx walnut405 |
| 444 | |
| 445 | ######################################################################### |
| 446 | ## MPC824x Systems |
| 447 | ######################################################################### |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 448 | xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) |
| 449 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 450 | BMW_config: unconfig |
| 451 | @./mkconfig $(@:_config=) ppc mpc824x bmw |
| 452 | |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 453 | CPC45_config \ |
| 454 | CPC45_ROMBOOT_config: unconfig |
| 455 | @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 |
| 456 | @cd ./include ; \ |
| 457 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 458 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 459 | echo "... booting from 8-bit flash" ; \ |
| 460 | else \ |
| 461 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 462 | echo "... booting from 64-bit flash" ; \ |
| 463 | fi; \ |
| 464 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 465 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 466 | CU824_config: unconfig |
| 467 | @./mkconfig $(@:_config=) ppc mpc824x cu824 |
| 468 | |
| 469 | MOUSSE_config: unconfig |
| 470 | @./mkconfig $(@:_config=) ppc mpc824x mousse |
| 471 | |
| 472 | MUSENKI_config: unconfig |
| 473 | @./mkconfig $(@:_config=) ppc mpc824x musenki |
| 474 | |
| 475 | OXC_config: unconfig |
| 476 | @./mkconfig $(@:_config=) ppc mpc824x oxc |
| 477 | |
| 478 | PN62_config: unconfig |
| 479 | @./mkconfig $(@:_config=) ppc mpc824x pn62 |
| 480 | |
| 481 | Sandpoint8240_config: unconfig |
| 482 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint |
| 483 | |
| 484 | Sandpoint8245_config: unconfig |
| 485 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint |
| 486 | |
| 487 | utx8245_config: unconfig |
| 488 | @./mkconfig $(@:_config=) ppc mpc824x utx8245 |
| 489 | |
| 490 | ######################################################################### |
| 491 | ## MPC8260 Systems |
| 492 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 493 | |
| 494 | cogent_mpc8260_config: unconfig |
| 495 | @./mkconfig $(@:_config=) ppc mpc8260 cogent |
| 496 | |
| 497 | CPU86_config \ |
| 498 | CPU86_ROMBOOT_config: unconfig |
| 499 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 |
| 500 | @cd ./include ; \ |
| 501 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 502 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 503 | echo "... booting from 8-bit flash" ; \ |
| 504 | else \ |
| 505 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 506 | echo "... booting from 64-bit flash" ; \ |
| 507 | fi; \ |
| 508 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 509 | |
| 510 | ep8260_config: unconfig |
| 511 | @./mkconfig $(@:_config=) ppc mpc8260 ep8260 |
| 512 | |
| 513 | gw8260_config: unconfig |
| 514 | @./mkconfig $(@:_config=) ppc mpc8260 gw8260 |
| 515 | |
| 516 | hymod_config: unconfig |
| 517 | @./mkconfig $(@:_config=) ppc mpc8260 hymod |
| 518 | |
| 519 | IPHASE4539_config: unconfig |
| 520 | @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 |
| 521 | |
| 522 | MPC8260ADS_config: unconfig |
| 523 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads |
| 524 | |
wdenk | db2f721f | 2003-03-06 00:58:30 +0000 | [diff] [blame] | 525 | MPC8266ADS_config: unconfig |
| 526 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads |
| 527 | |
wdenk | 10f6701 | 2003-03-25 18:06:06 +0000 | [diff] [blame^] | 528 | PM825_config \ |
| 529 | PM825_ROMBOOT_config: unconfig |
| 530 | @echo "#define CONFIG_PCI" >include/config.h |
| 531 | @./mkconfig -a PM826 ppc mpc8260 pm826 |
| 532 | @cd ./include ; \ |
| 533 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 534 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 535 | echo "... booting from 8-bit flash" ; \ |
| 536 | else \ |
| 537 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 538 | echo "... booting from 64-bit flash" ; \ |
| 539 | fi; \ |
| 540 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ |
| 541 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 542 | PM826_config \ |
| 543 | PM826_ROMBOOT_config: unconfig |
| 544 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 |
| 545 | @cd ./include ; \ |
| 546 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 547 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 548 | echo "... booting from 8-bit flash" ; \ |
| 549 | else \ |
| 550 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 551 | echo "... booting from 64-bit flash" ; \ |
| 552 | fi; \ |
| 553 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ |
| 554 | |
| 555 | ppmc8260_config: unconfig |
| 556 | @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 |
| 557 | |
| 558 | RPXsuper_config: unconfig |
| 559 | @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper |
| 560 | |
| 561 | rsdproto_config: unconfig |
| 562 | @./mkconfig $(@:_config=) ppc mpc8260 rsdproto |
| 563 | |
| 564 | sacsng_config: unconfig |
| 565 | @./mkconfig $(@:_config=) ppc mpc8260 sacsng |
| 566 | |
| 567 | sbc8260_config: unconfig |
| 568 | @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 |
| 569 | |
| 570 | SCM_config: unconfig |
| 571 | @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens |
| 572 | |
| 573 | TQM8260_config \ |
| 574 | TQM8260_L2_config \ |
| 575 | TQM8260_266MHz_config \ |
| 576 | TQM8260_L2_266MHz_config \ |
| 577 | TQM8260_300MHz_config: unconfig |
| 578 | @ >include/config.h |
| 579 | @if [ "$(findstring _L2_,$@)" ] ; then \ |
| 580 | echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ |
| 581 | echo "... with L2 Cache support (60x Bus Mode)" ; \ |
| 582 | else \ |
| 583 | echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ |
| 584 | echo "... without L2 Cache support" ; \ |
| 585 | fi |
| 586 | @[ -z "$(findstring _266MHz,$@)" ] || \ |
| 587 | { echo "#define CONFIG_266MHz" >>include/config.h ; \ |
| 588 | echo "... with 266MHz system clock" ; \ |
| 589 | } |
| 590 | @[ -z "$(findstring _300MHz,$@)" ] || \ |
| 591 | { echo "#define CONFIG_300MHz" >>include/config.h ; \ |
| 592 | echo "... with 300MHz system clock" ; \ |
| 593 | } |
| 594 | @./mkconfig -a $(call xtract_82xx,$@) ppc mpc8260 tqm8260 |
| 595 | |
| 596 | ######################################################################### |
| 597 | ## 74xx/7xx Systems |
| 598 | ######################################################################### |
| 599 | |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 600 | AmigaOneG3SE_config: unconfig |
| 601 | @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI |
| 602 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 603 | EVB64260_config \ |
| 604 | EVB64260_750CX_config: unconfig |
| 605 | @./mkconfig EVB64260 ppc 74xx_7xx evb64260 |
| 606 | |
| 607 | ZUMA_config: unconfig |
| 608 | @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 |
| 609 | |
| 610 | PCIPPC2_config \ |
| 611 | PCIPPC6_config: unconfig |
| 612 | @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 |
| 613 | |
| 614 | BAB7xx_config: unconfig |
| 615 | @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec |
| 616 | |
| 617 | ELPPC_config: unconfig |
| 618 | @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec |
| 619 | |
| 620 | #======================================================================== |
| 621 | # ARM |
| 622 | #======================================================================== |
| 623 | ######################################################################### |
| 624 | ## StrongARM Systems |
| 625 | ######################################################################### |
| 626 | |
| 627 | lart_config : unconfig |
| 628 | @./mkconfig $(@:_config=) arm sa1100 lart |
| 629 | |
| 630 | dnp1110_config : unconfig |
| 631 | @./mkconfig $(@:_config=) arm sa1100 dnp1110 |
| 632 | |
| 633 | shannon_config : unconfig |
| 634 | @./mkconfig $(@:_config=) arm sa1100 shannon |
| 635 | |
| 636 | ######################################################################### |
| 637 | ## ARM920T Systems |
| 638 | ######################################################################### |
| 639 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 640 | xtract_trab = $(subst _big_flash,,$(subst _config,,$1)) |
| 641 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 642 | smdk2400_config : unconfig |
| 643 | @./mkconfig $(@:_config=) arm arm920t smdk2400 |
| 644 | |
| 645 | smdk2410_config : unconfig |
| 646 | @./mkconfig $(@:_config=) arm arm920t smdk2410 |
| 647 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 648 | trab_config \ |
| 649 | trab_big_flash_config: unconfig |
| 650 | @ >include/config.h |
| 651 | @[ -z "$(findstring _big_flash,$@)" ] || \ |
| 652 | { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \ |
| 653 | echo "... with big flash support" ; \ |
| 654 | } |
| 655 | @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 656 | |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 657 | VCMA9_config : unconfig |
| 658 | @./mkconfig $(@:_config=) arm arm920t vcma9 mpl |
| 659 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 660 | ######################################################################### |
| 661 | ## ARM720T Systems |
| 662 | ######################################################################### |
| 663 | |
| 664 | impa7_config : unconfig |
| 665 | @./mkconfig $(@:_config=) arm arm720t impa7 |
| 666 | |
| 667 | ep7312_config : unconfig |
| 668 | @./mkconfig $(@:_config=) arm arm720t ep7312 |
| 669 | |
| 670 | ######################################################################### |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 671 | ## XScale Systems |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 672 | ######################################################################### |
| 673 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 674 | cradle_config : unconfig |
| 675 | @./mkconfig $(@:_config=) arm xscale cradle |
| 676 | |
| 677 | csb226_config : unconfig |
| 678 | @./mkconfig $(@:_config=) arm xscale csb226 |
| 679 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 680 | innokom_config : unconfig |
| 681 | @./mkconfig $(@:_config=) arm xscale innokom |
| 682 | |
| 683 | lubbock_config : unconfig |
| 684 | @./mkconfig $(@:_config=) arm xscale lubbock |
| 685 | |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 686 | #======================================================================== |
| 687 | # i386 |
| 688 | #======================================================================== |
| 689 | ######################################################################### |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 690 | ## AMD SC520 CDP |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 691 | ######################################################################### |
| 692 | sc520_cdp_config : unconfig |
| 693 | @./mkconfig $(@:_config=) i386 i386 sc520_cdp |
| 694 | |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 695 | #======================================================================== |
| 696 | # MIPS |
| 697 | #======================================================================== |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 698 | ######################################################################### |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 699 | ## MIPS32 4Kc |
| 700 | ######################################################################### |
| 701 | |
| 702 | incaip_config : unconfig |
| 703 | @./mkconfig $(@:_config=) mips mips incaip |
| 704 | |
| 705 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 706 | |
| 707 | clean: |
| 708 | find . -type f \ |
| 709 | \( -name 'core' -o -name '*.bak' -o -name '*~' \ |
| 710 | -o -name '*.o' -o -name '*.a' \) -print \ |
| 711 | | xargs rm -f |
| 712 | rm -f examples/hello_world examples/timer examples/eepro100_eeprom |
| 713 | rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr |
| 714 | rm -f tools/easylogo/easylogo tools/bmp_logo |
| 715 | rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 716 | rm -f tools/env/fw_printenv tools/env/fw_setenv |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 717 | |
| 718 | clobber: clean |
| 719 | find . -type f \ |
| 720 | \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ |
| 721 | -print \ |
| 722 | | xargs rm -f |
| 723 | rm -f $(OBJS) *.bak tags TAGS |
| 724 | rm -fr *.*~ |
| 725 | rm -f u-boot u-boot.bin u-boot.elf u-boot.srec u-boot.map System.map |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 726 | rm -f tools/crc32.c tools/environment.c tools/env/crc32.c |
wdenk | 43d9616 | 2003-03-06 00:02:04 +0000 | [diff] [blame] | 727 | rm -f cpu/mpc824x/bedbug_603e.c |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 728 | rm -f include/asm/arch include/asm |
| 729 | |
| 730 | mrproper \ |
| 731 | distclean: clobber unconfig |
| 732 | |
| 733 | backup: |
| 734 | F=`basename $(TOPDIR)` ; cd .. ; \ |
| 735 | gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F |
| 736 | |
| 737 | ######################################################################### |