2 # (C) Copyright 2000, 2001, 2002
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
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.
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.
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,
24 HOSTARCH
:= $(shell uname
-m | \
32 HOSTOS
:= $(shell uname
-s | tr A-Z a-z | \
33 sed
-e
's/\(cygwin\).*/cygwin/')
37 # Deal with colliding definitions from tcsh etc.
40 #########################################################################
42 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
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
53 ifeq ($(HOSTARCH
),ppc
)
57 CROSS_COMPILE
= ppc_8xx-
60 CROSS_COMPILE
= arm-linux-
63 ifeq ($(HOSTARCH
),i386
)
66 CROSS_COMPILE
= i386-linux-
70 CROSS_COMPILE
= mips_4KC-
73 CROSS_COMPILE
= nios-elf-
80 #########################################################################
81 # U-Boot objects....order is important (i.e. start must be first)
83 OBJS
= cpu
/$(CPU
)/start.o
85 OBJS
+= cpu
/$(CPU
)/start16.o
86 OBJS
+= cpu
/$(CPU
)/reset.o
89 OBJS
+= cpu
/$(CPU
)/resetvec.o
92 OBJS
+= cpu
/$(CPU
)/resetvec.o
95 LIBS
= board
/$(BOARDDIR
)/lib
$(BOARD
).a
96 LIBS
+= cpu
/$(CPU
)/lib
$(CPU
).a
97 LIBS
+= lib_
$(ARCH
)/lib
$(ARCH
).a
98 LIBS
+= fs
/jffs2
/libjffs2.a fs
/fdos
/libfdos.a fs
/fat
/libfat.a
100 LIBS
+= disk
/libdisk.a
103 LIBS
+= drivers
/libdrivers.a
104 LIBS
+= drivers
/sk98lin
/libsk98lin.a
105 LIBS
+= post
/libpost.a post
/cpu
/libcpu.a
106 LIBS
+= common
/libcommon.a
107 LIBS
+= lib_generic
/libgeneric.a
110 PLATFORM_LIBS
+= -L
$(shell dirname
`$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
112 # The "tools" are needed early, so put this first
113 # Don't include stuff already done in $(LIBS)
119 #########################################################################
120 #########################################################################
122 ALL
= u-boot.srec u-boot.bin System.map
127 $(OBJCOPY
) ${OBJCFLAGS} -O srec
$< $@
130 $(OBJCOPY
) ${OBJCFLAGS} -O binary
$< $@
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"/') \
140 $(OBJDUMP
) -d
$< > $@
142 u-boot
: depend
$(SUBDIRS
) $(OBJS
) $(LIBS
) $(LDSCRIPT
)
143 UNDEF_SYM
=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
144 $(LD
) $(LDFLAGS
) $$UNDEF_SYM $(OBJS
) \
145 --start-group
$(LIBS
) $(PLATFORM_LIBS
) --end-group \
146 -Map u-boot.map
-o u-boot
149 $(MAKE
) -C
`dirname $@`
152 @echo
"#### MAKE $@ ####"
156 $(MAKE
) -C tools
/gdb || exit
1
159 @for
dir in
$(SUBDIRS
) ; do
$(MAKE
) -C
$$dir .depend
; done
162 ctags
-w
`find $(SUBDIRS) include \
163 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
166 etags
-a
`find $(SUBDIRS) include \
167 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
171 grep
-v
'\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
174 #########################################################################
176 all install u-boot u-boot.srec depend dep
:
177 @echo
"System not configured - see README" >&2
181 #########################################################################
184 rm -f
include/config.h
include/config.mk
186 #========================================================================
188 #========================================================================
190 #########################################################################
192 #########################################################################
194 cmi_mpc5xx_config
: unconfig
195 @.
/mkconfig
$(@
:_config
=) ppc mpc5xx cmi
197 #########################################################################
199 #########################################################################
201 MPC5200LITE_LOWBOOT_config \
202 MPC5200LITE_LOWBOOT08_config \
203 icecube_5200_config \
204 IceCube_5200_config \
205 IceCube_5100_config
: unconfig
207 @
[ -z
"$(findstring LOWBOOT,$@)" ] || \
208 { echo
"TEXT_BASE = 0xFF000000" >board
/icecube
/config.tmp
; \
209 echo
"... with LOWBOOT configuration" ; \
211 @
[ -z
"$(findstring LOWBOOT08,$@)" ] || \
212 { echo
"TEXT_BASE = 0xFF800000" >board
/icecube
/config.tmp
; \
213 echo
"... with 8 MB flash only" ; \
215 @
[ -z
"$(findstring 5200,$@)" ] || \
216 { echo
"#define CONFIG_MPC5200" >>include/config.h
; \
217 echo
"... with MPC5200 processor" ; \
219 @
[ -z
"$(findstring 5100,$@)" ] || \
220 { echo
"#define CONFIG_MGT5100" >>include/config.h
; \
221 echo
"... with MGT5100 processor" ; \
223 @.
/mkconfig
-a IceCube ppc mpc5xxx icecube
225 #########################################################################
227 #########################################################################
229 AdderII_config
: unconfig
230 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx adderII
232 ADS860_config
: unconfig
233 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx fads
235 AMX860_config
: unconfig
236 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx amx860 westel
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
244 c2mon_config
: unconfig
245 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx c2mon
248 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx CCM siemens
250 cogent_mpc8xx_config
: unconfig
251 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx cogent
253 ELPT860_config
: unconfig
254 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx elpt860 LEOX
256 ESTEEM192E_config
: unconfig
257 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx esteem192e
259 ETX094_config
: unconfig
260 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx etx094
265 FADS860T_config
: unconfig
266 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx fads
268 FLAGADM_config
: unconfig
269 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx flagadm
271 xtract_GEN860T
= $(subst _SC
,,$(subst _config
,,$1))
274 GEN860T_config
: unconfig
276 @
[ -z
"$(findstring _SC,$@)" ] || \
277 { echo
"#define CONFIG_SC" >>include/config.h
; \
278 echo
"With reduced H/W feature set (SC)..." ; \
280 @.
/mkconfig
-a
$(call xtract_GEN860T
,$@
) ppc mpc8xx gen860t
282 GENIETV_config
: unconfig
283 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx genietv
286 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx gth
288 hermes_config
: unconfig
289 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx hermes
291 IAD210_config
: unconfig
292 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx IAD210 siemens
294 xtract_ICU862
= $(subst _100MHz
,,$(subst _config
,,$1))
296 ICU862_100MHz_config \
297 ICU862_config
: unconfig
299 @
[ -z
"$(findstring _100MHz,$@)" ] || \
300 { echo
"#define CONFIG_100MHz" >>include/config.h
; \
301 echo
"... with 100MHz system clock" ; \
303 @.
/mkconfig
-a
$(call xtract_ICU862
,$@
) ppc mpc8xx icu862
305 IP860_config
: unconfig
306 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx ip860
310 IVML24_config
: unconfig
312 @
[ -z
"$(findstring IVML24_config,$@)" ] || \
313 { echo
"#define CONFIG_IVML24_16M" >>include/config.h
; \
315 @
[ -z
"$(findstring IVML24_128_config,$@)" ] || \
316 { echo
"#define CONFIG_IVML24_32M" >>include/config.h
; \
318 @
[ -z
"$(findstring IVML24_256_config,$@)" ] || \
319 { echo
"#define CONFIG_IVML24_64M" >>include/config.h
; \
321 @.
/mkconfig
-a IVML24 ppc mpc8xx ivm
325 IVMS8_config
: unconfig
327 @
[ -z
"$(findstring IVMS8_config,$@)" ] || \
328 { echo
"#define CONFIG_IVMS8_16M" >>include/config.h
; \
330 @
[ -z
"$(findstring IVMS8_128_config,$@)" ] || \
331 { echo
"#define CONFIG_IVMS8_32M" >>include/config.h
; \
333 @
[ -z
"$(findstring IVMS8_256_config,$@)" ] || \
334 { echo
"#define CONFIG_IVMS8_64M" >>include/config.h
; \
336 @.
/mkconfig
-a IVMS8 ppc mpc8xx ivm
338 KUP4K_config
: unconfig
339 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx kup4k
341 LANTEC_config
: unconfig
342 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx lantec
344 lwmon_config
: unconfig
345 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx lwmon
348 MBX860T_config
: unconfig
349 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx mbx8xx
351 MHPC_config
: unconfig
352 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx mhpc eltec
354 MVS1_config
: unconfig
355 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx mvs1
357 xtract_NETVIA
= $(subst _V2
,,$(subst _config
,,$1))
360 NETVIA_config
: unconfig
362 @
[ -z
"$(findstring NETVIA_config,$@)" ] || \
363 { echo
"#define CONFIG_NETVIA_VERSION 1" >>include/config.h
; \
364 echo
"... Version 1" ; \
366 @
[ -z
"$(findstring NETVIA_V2_config,$@)" ] || \
367 { echo
"#define CONFIG_NETVIA_VERSION 2" >>include/config.h
; \
368 echo
"... Version 2" ; \
370 @.
/mkconfig
-a
$(call xtract_NETVIA
,$@
) ppc mpc8xx netvia
372 NX823_config
: unconfig
373 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx nx823
375 pcu_e_config
: unconfig
376 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx pcu_e siemens
378 R360MPI_config
: unconfig
379 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx r360mpi
381 RBC823_config
: unconfig
382 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx rbc823
384 RPXClassic_config
: unconfig
385 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx RPXClassic
387 RPXlite_config
: unconfig
388 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx RPXlite
391 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx rmu
393 RRvision_config
: unconfig
394 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx RRvision
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
401 SM850_config
: unconfig
402 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx tqm8xx
404 SPD823TS_config
: unconfig
405 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx spd8xx
407 svm_sc8xx_config
: unconfig
409 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx svm_sc8xx
411 SXNI855T_config
: unconfig
412 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx sixnet
414 # EMK MPC8xx based modules
415 TOP860_config
: unconfig
416 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx top860 emk
418 # Play some tricks for configuration selection
419 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
420 # but only 855 and 860 boards may come with FEC
421 # and 823 boards may have LCD support
422 xtract_8xx
= $(subst _66MHz
,,$(subst _80MHz
,,$(subst _100MHz
,,$(subst _LCD
,,$(subst _config
,,$1)))))
428 TQM823L_66MHz_config \
429 TQM823L_80MHz_config \
431 TQM823L_LCD_66MHz_config \
432 TQM823L_LCD_80MHz_config \
434 TQM850L_66MHz_config \
435 TQM850L_80MHz_config \
437 TQM855L_66MHz_config \
438 TQM855L_80MHz_config \
440 TQM860L_66MHz_config \
441 TQM860L_80MHz_config \
443 TQM862L_66MHz_config \
444 TQM862L_80MHz_config \
446 TQM823M_66MHz_config \
447 TQM823M_80MHz_config \
449 TQM850M_66MHz_config \
450 TQM850M_80MHz_config \
452 TQM855M_66MHz_config \
453 TQM855M_80MHz_config \
455 TQM860M_66MHz_config \
456 TQM860M_80MHz_config \
458 TQM862M_66MHz_config \
459 TQM862M_80MHz_config \
460 TQM862M_100MHz_config
: unconfig
462 @
[ -z
"$(findstring _66MHz,$@)" ] || \
463 { echo
"#define CONFIG_66MHz" >>include/config.h
; \
464 echo
"... with 66MHz system clock" ; \
466 @
[ -z
"$(findstring _80MHz,$@)" ] || \
467 { echo
"#define CONFIG_80MHz" >>include/config.h
; \
468 echo
"... with 80MHz system clock" ; \
470 @
[ -z
"$(findstring _100MHz,$@)" ] || \
471 { echo
"#define CONFIG_100MHz" >>include/config.h
; \
472 echo
"... with 100MHz system clock" ; \
474 @
[ -z
"$(findstring _LCD,$@)" ] || \
475 { echo
"#define CONFIG_LCD" >>include/config.h
; \
476 echo
"#define CONFIG_NEC_NL6448BC20" >>include/config.h
; \
477 echo
"... with LCD display" ; \
479 @.
/mkconfig
-a
$(call xtract_8xx
,$@
) ppc mpc8xx tqm8xx
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
487 @echo
"#define CONFIG_LCD" >include/config.h
488 @echo
"#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
489 @.
/mkconfig
$(@
:_config
=) ppc mpc8xx v37
492 @echo
"#define CONFIG_LCD" >include/config.h
493 @echo
"#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
494 @.
/mkconfig
-a TQM823L ppc mpc8xx tqm8xx
496 #########################################################################
498 #########################################################################
499 xtract_4xx
= $(subst _MODEL_BA
,,$(subst _MODEL_ME
,,$(subst _MODEL_HI
,,$(subst _config
,,$1))))
501 ADCIOP_config
: unconfig
502 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx adciop esd
504 AR405_config
: unconfig
505 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx ar405 esd
507 ASH405_config
: unconfig
508 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx ash405 esd
510 BUBINGA405EP_config
:unconfig
511 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx bubinga405ep
513 CANBT_config
: unconfig
514 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx canbt esd
518 CPCI405AB_config
: unconfig
519 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx cpci405 esd
520 @echo
"BOARD_REVISION = $(@:_config=)" >>include/config.mk
522 CPCI440_config
: unconfig
523 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx cpci440 esd
525 CPCIISER4_config
: unconfig
526 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx cpciiser4 esd
528 CRAYL1_config
:unconfig
529 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx L1 cray
531 DASA_SIM_config
: unconfig
532 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx dasa_sim esd
534 DP405_config
: unconfig
535 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx dp405 esd
537 DU405_config
: unconfig
538 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx du405 esd
540 EBONY_config
:unconfig
541 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx ebony
544 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx eric
546 EXBITGEN_config
:unconfig
547 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx exbitgen
549 HUB405_config
: unconfig
550 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx hub405 esd
552 MIP405_config
:unconfig
553 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx mip405 mpl
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
561 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx ml2
564 ORSG_config
: unconfig
565 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx ocrtc esd
567 PCI405_config
: unconfig
568 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx pci405 esd
570 PIP405_config
:unconfig
571 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx pip405 mpl
573 PLU405_config
: unconfig
574 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx plu405 esd
576 PMC405_config
: unconfig
577 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx pmc405 esd
579 PPChameleonEVB_MODEL_BA_config \
580 PPChameleonEVB_MODEL_ME_config \
581 PPChameleonEVB_MODEL_HI_config \
582 PPChameleonEVB_config
: unconfig
584 @
[ -z
"$(findstring _MODEL_BA,$@)" ] || \
585 { echo
"#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h
; \
586 echo
"... BASIC model" ; \
588 @
[ -z
"$(findstring _MODEL_ME,$@)" ] || \
589 { echo
"#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h
; \
590 echo
"... MEDIUM model" ; \
592 @
[ -z
"$(findstring _MODEL_HI,$@)" ] || \
593 { echo
"#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h
; \
594 echo
"... HIGH-END model" ; \
596 @.
/mkconfig
-a
$(call xtract_4xx
,$@
) ppc ppc4xx PPChameleonEVB dave
598 VOH405_config
: unconfig
599 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx voh405 esd
602 W7OLMG_config
: unconfig
603 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx w7o
605 WALNUT405_config
:unconfig
606 @.
/mkconfig
$(@
:_config
=) ppc ppc4xx walnut405
608 #########################################################################
610 #########################################################################
611 xtract_82xx
= $(subst _ROMBOOT
,,$(subst _L2
,,$(subst _266MHz
,,$(subst _300MHz
,,$(subst _config
,,$1)))))
613 A3000_config
: unconfig
614 @.
/mkconfig
$(@
:_config
=) ppc mpc824x a3000
617 @.
/mkconfig
$(@
:_config
=) ppc mpc824x bmw
620 CPC45_ROMBOOT_config
: unconfig
621 @.
/mkconfig
$(call xtract_82xx
,$@
) ppc mpc824x cpc45
623 if
[ "$(findstring _ROMBOOT_,$@)" ] ; then \
624 echo
"CONFIG_BOOT_ROM = y" >> config.mk
; \
625 echo
"... booting from 8-bit flash" ; \
627 echo
"CONFIG_BOOT_ROM = n" >> config.mk
; \
628 echo
"... booting from 64-bit flash" ; \
630 echo
"export CONFIG_BOOT_ROM" >> config.mk
;
632 CU824_config
: unconfig
633 @.
/mkconfig
$(@
:_config
=) ppc mpc824x cu824
635 MOUSSE_config
: unconfig
636 @.
/mkconfig
$(@
:_config
=) ppc mpc824x mousse
638 MUSENKI_config
: unconfig
639 @.
/mkconfig
$(@
:_config
=) ppc mpc824x musenki
641 MVBLUE_config
: unconfig
642 @.
/mkconfig
$(@
:_config
=) ppc mpc824x mvblue
645 @.
/mkconfig
$(@
:_config
=) ppc mpc824x oxc
647 PN62_config
: unconfig
648 @.
/mkconfig
$(@
:_config
=) ppc mpc824x pn62
650 Sandpoint8240_config
: unconfig
651 @.
/mkconfig
$(@
:_config
=) ppc mpc824x sandpoint
653 Sandpoint8245_config
: unconfig
654 @.
/mkconfig
$(@
:_config
=) ppc mpc824x sandpoint
656 SL8245_config
: unconfig
657 @.
/mkconfig
$(@
:_config
=) ppc mpc824x sl8245
659 utx8245_config
: unconfig
660 @.
/mkconfig
$(@
:_config
=) ppc mpc824x utx8245
662 #########################################################################
664 #########################################################################
667 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 atc
669 cogent_mpc8260_config
: unconfig
670 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 cogent
673 CPU86_ROMBOOT_config
: unconfig
674 @.
/mkconfig
$(call xtract_82xx
,$@
) ppc mpc8260 cpu86
676 if
[ "$(findstring _ROMBOOT_,$@)" ] ; then \
677 echo
"CONFIG_BOOT_ROM = y" >> config.mk
; \
678 echo
"... booting from 8-bit flash" ; \
680 echo
"CONFIG_BOOT_ROM = n" >> config.mk
; \
681 echo
"... booting from 64-bit flash" ; \
683 echo
"export CONFIG_BOOT_ROM" >> config.mk
;
685 ep8260_config
: unconfig
686 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 ep8260
688 gw8260_config
: unconfig
689 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 gw8260
691 hymod_config
: unconfig
692 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 hymod
694 IPHASE4539_config
: unconfig
695 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 iphase4539
697 MPC8260ADS_config
: unconfig
698 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 mpc8260ads
700 MPC8266ADS_config
: unconfig
701 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 mpc8266ads
704 PM825_ROMBOOT_config
: unconfig
705 @echo
"#define CONFIG_PCI" >include/config.h
706 @.
/mkconfig
-a PM826 ppc mpc8260 pm826
708 if
[ "$(findstring _ROMBOOT_,$@)" ] ; then \
709 echo
"CONFIG_BOOT_ROM = y" >> config.mk
; \
710 echo
"... booting from 8-bit flash" ; \
712 echo
"CONFIG_BOOT_ROM = n" >> config.mk
; \
713 echo
"... booting from 64-bit flash" ; \
715 echo
"export CONFIG_BOOT_ROM" >> config.mk
; \
718 PM826_ROMBOOT_config
: unconfig
719 @.
/mkconfig
$(call xtract_82xx
,$@
) ppc mpc8260 pm826
721 if
[ "$(findstring _ROMBOOT_,$@)" ] ; then \
722 echo
"CONFIG_BOOT_ROM = y" >> config.mk
; \
723 echo
"... booting from 8-bit flash" ; \
725 echo
"CONFIG_BOOT_ROM = n" >> config.mk
; \
726 echo
"... booting from 64-bit flash" ; \
728 echo
"export CONFIG_BOOT_ROM" >> config.mk
; \
730 ppmc8260_config
: unconfig
731 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 ppmc8260
733 RPXsuper_config
: unconfig
734 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 rpxsuper
736 rsdproto_config
: unconfig
737 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 rsdproto
739 sacsng_config
: unconfig
740 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 sacsng
742 sbc8260_config
: unconfig
743 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 sbc8260
746 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 SCM siemens
757 TQM8265_AA_config
: unconfig
759 TQM8255_AA_config
) CTYPE
=MPC8255
; CFREQ
=300; CACHE
=no
; BMODE
=8260;; \
760 TQM8260_AA_config
) CTYPE
=MPC8260
; CFREQ
=200; CACHE
=no
; BMODE
=8260;; \
761 TQM8260_AB_config
) CTYPE
=MPC8260
; CFREQ
=200; CACHE
=yes
; BMODE
=60x
;; \
762 TQM8260_AC_config
) CTYPE
=MPC8260
; CFREQ
=200; CACHE
=yes
; BMODE
=60x
;; \
763 TQM8260_AD_config
) CTYPE
=MPC8260
; CFREQ
=300; CACHE
=no
; BMODE
=60x
;; \
764 TQM8260_AE_config
) CTYPE
=MPC8260
; CFREQ
=266; CACHE
=no
; BMODE
=8260;; \
765 TQM8260_AF_config
) CTYPE
=MPC8260
; CFREQ
=300; CACHE
=no
; BMODE
=60x
;; \
766 TQM8260_AG_config
) CTYPE
=MPC8260
; CFREQ
=300; CACHE
=no
; BMODE
=8260;; \
767 TQM8260_AH_config
) CTYPE
=MPC8260
; CFREQ
=300; CACHE
=yes
; BMODE
=60x
;; \
768 TQM8265_AA_config
) CTYPE
=MPC8265
; CFREQ
=300; CACHE
=no
; BMODE
=60x
;; \
770 >include/config.h
; \
771 if
[ "$${CTYPE}" != "MPC8260" ] ; then \
772 echo
"#define CONFIG_$${CTYPE}" >>include/config.h
; \
774 echo
"#define CONFIG_$${CFREQ}MHz" >>include/config.h
; \
775 echo
"... with $${CFREQ}MHz system clock" ; \
776 if
[ "$${CACHE}" == "yes" ] ; then \
777 echo
"#define CONFIG_L2_CACHE" >>include/config.h
; \
778 echo
"... with L2 Cache support" ; \
780 echo
"#undef CONFIG_L2_CACHE" >>include/config.h
; \
781 echo
"... without L2 Cache support" ; \
783 if
[ "$${BMODE}" == "60x" ] ; then \
784 echo
"#define CONFIG_BUSMODE_60x" >>include/config.h
; \
785 echo
"... with 60x Bus Mode" ; \
787 echo
"#undef CONFIG_BUSMODE_60x" >>include/config.h
; \
788 echo
"... without 60x Bus Mode" ; \
790 @.
/mkconfig
-a TQM8260 ppc mpc8260 tqm8260
792 ZPC1900_config
: unconfig
793 @.
/mkconfig
$(@
:_config
=) ppc mpc8260 zpc1900
795 #########################################################################
797 #########################################################################
799 MPC8540ADS_config
: unconfig
800 @.
/mkconfig
$(@
:_config
=) ppc mpc85xx mpc8540ads
802 MPC8560ADS_config
: unconfig
803 @.
/mkconfig
$(@
:_config
=) ppc mpc85xx mpc8560ads
805 #########################################################################
807 #########################################################################
809 AmigaOneG3SE_config
: unconfig
810 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx AmigaOneG3SE MAI
812 BAB7xx_config
: unconfig
813 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx bab7xx eltec
815 debris_config
: unconfig
816 @.
/mkconfig
$(@
:_config
=) ppc mpc824x debris etin
818 ELPPC_config
: unconfig
819 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx elppc eltec
822 EVB64260_750CX_config
: unconfig
823 @.
/mkconfig EVB64260 ppc
74xx_7xx evb64260
825 P3G4_config
: unconfig
826 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx evb64260
829 PCIPPC6_config
: unconfig
830 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx pcippc2
832 ZUMA_config
: unconfig
833 @.
/mkconfig
$(@
:_config
=) ppc
74xx_7xx evb64260
835 #========================================================================
837 #========================================================================
838 #########################################################################
840 #########################################################################
842 at91rm9200dk_config
: unconfig
843 @.
/mkconfig
$(@
:_config
=) arm at91rm9200 at91rm9200dk
845 lart_config
: unconfig
846 @.
/mkconfig
$(@
:_config
=) arm sa1100 lart
848 dnp1110_config
: unconfig
849 @.
/mkconfig
$(@
:_config
=) arm sa1100 dnp1110
851 shannon_config
: unconfig
852 @.
/mkconfig
$(@
:_config
=) arm sa1100 shannon
854 #########################################################################
856 #########################################################################
858 xtract_trab
= $(subst _bigram
,,$(subst _bigflash
,,$(subst _old
,,$(subst _config
,,$1))))
860 omap1510inn_config
: unconfig
861 @.
/mkconfig
$(@
:_config
=) arm arm925t omap1510inn
863 omap1610inn_config
: unconfig
864 @.
/mkconfig
$(@
:_config
=) arm arm926ejs omap1610inn
866 smdk2400_config
: unconfig
867 @.
/mkconfig
$(@
:_config
=) arm arm920t smdk2400
869 smdk2410_config
: unconfig
870 @.
/mkconfig
$(@
:_config
=) arm arm920t smdk2410
874 trab_bigflash_config \
875 trab_old_config
: unconfig
877 @
[ -z
"$(findstring _bigram,$@)" ] || \
878 { echo
"#define CONFIG_FLASH_8MB" >>include/config.h
; \
879 echo
"... with 8 MB Flash, 32 MB RAM" ; \
881 @
[ -z
"$(findstring _bigflash,$@)" ] || \
882 { echo
"#define CONFIG_RAM_16MB" >>include/config.h
; \
883 echo
"... with 16 MB Flash, 16 MB RAM" ; \
884 echo
"TEXT_BASE = 0x0CF40000" >board
/trab
/config.tmp
; \
886 @
[ -z
"$(findstring _old,$@)" ] || \
887 { echo
"#define CONFIG_OLD_VERSION" >>include/config.h
; \
888 echo
"... with small memory configuration" ; \
889 echo
"TEXT_BASE = 0x0CF40000" >board
/trab
/config.tmp
; \
891 @.
/mkconfig
-a
$(call xtract_trab
,$@
) arm arm920t trab
893 VCMA9_config
: unconfig
894 @.
/mkconfig
$(@
:_config
=) arm arm920t vcma9 mpl
896 #########################################################################
898 #########################################################################
900 impa7_config
: unconfig
901 @.
/mkconfig
$(@
:_config
=) arm arm720t impa7
903 ep7312_config
: unconfig
904 @.
/mkconfig
$(@
:_config
=) arm arm720t ep7312
906 #########################################################################
908 #########################################################################
910 cradle_config
: unconfig
911 @.
/mkconfig
$(@
:_config
=) arm pxa cradle
913 csb226_config
: unconfig
914 @.
/mkconfig
$(@
:_config
=) arm pxa csb226
916 innokom_config
: unconfig
917 @.
/mkconfig
$(@
:_config
=) arm pxa innokom
919 ixdp425_config
: unconfig
920 @.
/mkconfig
$(@
:_config
=) arm ixp ixdp425
922 lubbock_config
: unconfig
923 @.
/mkconfig
$(@
:_config
=) arm pxa lubbock
925 logodl_config
: unconfig
926 @.
/mkconfig
$(@
:_config
=) arm pxa logodl
928 wepep250_config
: unconfig
929 @.
/mkconfig
$(@
:_config
=) arm pxa wepep250
931 #========================================================================
933 #========================================================================
934 #########################################################################
936 #########################################################################
937 sc520_cdp_config
: unconfig
938 @.
/mkconfig
$(@
:_config
=) i386 i386 sc520_cdp
940 sc520_spunk_config
: unconfig
941 @.
/mkconfig
$(@
:_config
=) i386 i386 sc520_spunk
943 sc520_spunk_rel_config
: unconfig
944 @.
/mkconfig
$(@
:_config
=) i386 i386 sc520_spunk
946 #========================================================================
948 #========================================================================
949 #########################################################################
951 #########################################################################
953 xtract_incaip
= $(subst _100MHz
,,$(subst _133MHz
,,$(subst _150MHz
,,$(subst _config
,,$1))))
955 incaip_100MHz_config \
956 incaip_133MHz_config \
957 incaip_150MHz_config \
958 incaip_config
: unconfig
960 @
[ -z
"$(findstring _100MHz,$@)" ] || \
961 { echo
"#define CPU_CLOCK_RATE 100000000" >>include/config.h
; \
962 echo
"... with 100MHz system clock" ; \
964 @
[ -z
"$(findstring _133MHz,$@)" ] || \
965 { echo
"#define CPU_CLOCK_RATE 133000000" >>include/config.h
; \
966 echo
"... with 133MHz system clock" ; \
968 @
[ -z
"$(findstring _150MHz,$@)" ] || \
969 { echo
"#define CPU_CLOCK_RATE 150000000" >>include/config.h
; \
970 echo
"... with 150MHz system clock" ; \
972 @.
/mkconfig
-a
$(call xtract_incaip
,$@
) mips mips incaip
974 #########################################################################
976 #########################################################################
978 purple_config
: unconfig
979 @.
/mkconfig
$(@
:_config
=) mips mips purple
981 #========================================================================
983 #========================================================================
984 #########################################################################
986 #########################################################################
988 DK1C20_config
: unconfig
989 @.
/mkconfig
$(@
:_config
=) nios nios dk1c20
992 #########################################################################
994 #########################################################################
995 dbau1000_config
: unconfig
997 @echo
"#define CONFIG_DBAU1000 1" >>include/config.h
998 @.
/mkconfig
-a dbau1x00 mips mips dbau1x00
1000 dbau1100_config
: unconfig
1002 @echo
"#define CONFIG_DBAU1100 1" >>include/config.h
1003 @.
/mkconfig
-a dbau1x00 mips mips dbau1x00
1005 dbau1500_config
: unconfig
1007 @echo
"#define CONFIG_DBAU1500 1" >>include/config.h
1008 @.
/mkconfig
-a dbau1x00 mips mips dbau1x00
1010 #########################################################################
1011 #########################################################################
1015 \
( -name
'core' -o
-name
'*.bak' -o
-name
'*~' \
1016 -o
-name
'*.o' -o
-name
'*.a' \
) -print \
1018 rm -f examples
/hello_world examples
/timer \
1019 examples
/eepro100_eeprom examples
/sched \
1020 examples
/mem_to_mem_idma2intr examples
/82559_eeprom
1022 rm -f tools
/img2srec tools
/mkimage tools
/envcrc tools
/gen_eth_addr
1023 rm -f tools
/easylogo
/easylogo tools
/bmp_logo
1024 rm -f tools
/gdb
/astest tools
/gdb
/gdbcont tools
/gdb
/gdbsend
1025 rm -f tools
/env
/fw_printenv tools
/env
/fw_setenv
1026 rm -f board
/cray
/L1
/bootscript.c board
/cray
/L1
/bootscript.image
1027 rm -f board
/trab
/trab_fkt board
/*/config.tmp
1031 \
( -name .depend
-o
-name
'*.srec' -o
-name
'*.bin' \
) \
1034 rm -f
$(OBJS
) *.bak
tags TAGS
1036 rm -f u-boot u-boot.map
$(ALL
)
1037 rm -f tools
/crc32.c tools
/environment.c tools
/env
/crc32.c
1038 rm -f tools
/inca-swap-bytes cpu
/mpc824x
/bedbug_603e.c
1039 rm -f
include/asm
/proc
include/asm
/arch
include/asm
1042 distclean: clobber unconfig
1045 F
=`basename $(TOPDIR)` ; cd ..
; \
1046 gtar
--force-local
-zcvf
`date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1048 #########################################################################