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