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