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