LIBS = board/$(BOARDDIR)/lib$(BOARD).a
LIBS += cpu/$(CPU)/lib$(CPU).a
LIBS += lib_$(ARCH)/lib$(ARCH).a
-LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a
+LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
LIBS += net/libnet.a
LIBS += disk/libdisk.a
LIBS += rtc/librtc.a
$(OBJDUMP) -d $< > $@
u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
- $(LD) $(LDFLAGS) $(OBJS) \
+ UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
+ $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
--start-group $(LIBS) --end-group \
-Map u-boot.map -o u-boot
cmi_mpc5xx_config: unconfig
@./mkconfig $(@:_config=) ppc mpc5xx cmi
+#########################################################################
+## MPC5xxx Systems
+#########################################################################
+IceCube_5200_config \
+IceCube_5100_config: unconfig
+ @ >include/config.h
+ @[ -z "$(findstring _5200,$@)" ] || \
+ { echo "#define CONFIG_MPC5200" >>include/config.h ; \
+ echo "... with MPC5200 processor" ; \
+ }
+ @[ -z "$(findstring _5100,$@)" ] || \
+ { echo "#define CONFIG_MGT5100" >>include/config.h ; \
+ echo "... with MGT5100 processor" ; \
+ }
+ @./mkconfig -a IceCube ppc mpc5xxx icecube
+
#########################################################################
## MPC8xx Systems
#########################################################################
MVS1_config : unconfig
@./mkconfig $(@:_config=) ppc mpc8xx mvs1
+xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
+
+NETVIA_V2_config \
NETVIA_config: unconfig
- @./mkconfig $(@:_config=) ppc mpc8xx netvia
+ @ >include/config.h
+ @[ -z "$(findstring NETVIA_config,$@)" ] || \
+ { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
+ echo "... Version 1" ; \
+ }
+ @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
+ { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
+ echo "... Version 2" ; \
+ }
+ @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
NX823_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx nx823
RPXlite_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
+rmu_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc8xx rmu
+
RRvision_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx RRvision
@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
# Play some tricks for configuration selection
-# All boards can come with 50 MHz (default), 66MHz or 80MHz clock,
+# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
# but only 855 and 860 boards may come with FEC
# and 823 boards may have LCD support
-xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _LCD,,$(subst _config,,$1))))
+xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
FPS850L_config \
FPS860L_config \
+NSCU_config \
TQM823L_config \
TQM823L_66MHz_config \
TQM823L_80MHz_config \
TQM860L_80MHz_config \
TQM862L_config \
TQM862L_66MHz_config \
-TQM862L_80MHz_config: unconfig
+TQM862L_80MHz_config \
+TQM855M_config \
+TQM855M_66MHz_config \
+TQM855M_80MHz_config \
+TQM860M_config \
+TQM860M_66MHz_config \
+TQM860M_80MHz_config \
+TQM862M_config \
+TQM862M_66MHz_config \
+TQM862M_80MHz_config \
+TQM862M_100MHz_config: unconfig
@ >include/config.h
@[ -z "$(findstring _66MHz,$@)" ] || \
{ echo "#define CONFIG_66MHz" >>include/config.h ; \
{ echo "#define CONFIG_80MHz" >>include/config.h ; \
echo "... with 80MHz system clock" ; \
}
+ @[ -z "$(findstring _100MHz,$@)" ] || \
+ { echo "#define CONFIG_100MHz" >>include/config.h ; \
+ echo "... with 100MHz system clock" ; \
+ }
@[ -z "$(findstring _LCD,$@)" ] || \
{ echo "#define CONFIG_LCD" >>include/config.h ; \
echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
ERIC_config:unconfig
@./mkconfig $(@:_config=) ppc ppc4xx eric
+EXBITGEN_config:unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
+
MIP405_config:unconfig
@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
#########################################################################
xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
+A3000_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc824x a3000
+
BMW_config: unconfig
@./mkconfig $(@:_config=) ppc mpc824x bmw
Sandpoint8245_config: unconfig
@./mkconfig $(@:_config=) ppc mpc824x sandpoint
+SL8245_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc824x sl8245
+
utx8245_config: unconfig
@./mkconfig $(@:_config=) ppc mpc824x utx8245
@./mkconfig $(@:_config=) arm sa1100 shannon
#########################################################################
-## ARM920T Systems
+## ARM92xT Systems
#########################################################################
xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
+omap1510inn_config : unconfig
+ @./mkconfig $(@:_config=) arm arm925t omap1510inn
+
smdk2400_config : unconfig
@./mkconfig $(@:_config=) arm arm920t smdk2400
#########################################################################
cradle_config : unconfig
- @./mkconfig $(@:_config=) arm pxa cradle
+ @./mkconfig $(@:_config=) arm pxa cradle
csb226_config : unconfig
@./mkconfig $(@:_config=) arm pxa csb226
lubbock_config : unconfig
@./mkconfig $(@:_config=) arm pxa lubbock
+logodl_config : unconfig
+ @./mkconfig $(@:_config=) arm pxa logodl
+
wepep250_config : unconfig
@./mkconfig $(@:_config=) arm pxa wepep250
rm -f u-boot u-boot.bin u-boot.srec u-boot.map System.map
rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
- rm -f include/asm/arch include/asm
+ rm -f include/asm/proc include/asm/arch include/asm
mrproper \
distclean: clobber unconfig