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