ifeq ($(ARCH),nios)
CROSS_COMPILE = nios-elf-
endif
+ifeq ($(ARCH),nios2)
+CROSS_COMPILE = nios2-elf-
+endif
ifeq ($(ARCH),m68k)
CROSS_COMPILE = m68k-elf-
endif
endif
LIBS += lib_$(ARCH)/lib$(ARCH).a
LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
- fs/reiserfs/libreiserfs.a
+ fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
LIBS += net/libnet.a
LIBS += disk/libdisk.a
LIBS += rtc/librtc.a
.PHONY : $(LIBS)
# Add GCC lib
-PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
# The "tools" are needed early, so put this first
all: $(ALL)
+u-boot.hex: u-boot
+ $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
+
u-boot.srec: u-boot
$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
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) $(PLATFORM_LIBS) --end-group \
+ --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
-Map u-boot.map -o u-boot
$(LIBS):
}
@./mkconfig -a IceCube ppc mpc5xxx icecube
+inka4x0_config: unconfig
+ @./mkconfig inka4x0 ppc mpc5xxx inka4x0
+
PM520_config \
PM520_DDR_config \
PM520_ROMBOOT_config \
}
@./mkconfig -a Total5200 ppc mpc5xxx total5200
+TQM5200_auto_config \
TQM5200_AA_config \
TQM5200_AB_config \
TQM5200_AC_config \
echo "... with 4 MB Flash, 128 MB SDRAM" ; \
echo "... with Graphics Controller"; \
}
+ @[ -z "$(findstring auto,$@)" ] || \
+ { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \
+ echo "... with automatic CS configuration" ; \
+ }
@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
#########################################################################
@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
+uc100_config : unconfig
+ @./mkconfig $(@:_config=) ppc mpc8xx uc100
+
v37_config: unconfig
@echo "#define CONFIG_LCD" >include/config.h
@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
ADCIOP_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
+APC405_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
+
AR405_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
CPCI405_config \
CPCI4052_config \
+CPCI405DT_config \
CPCI405AB_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
@echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
EXBITGEN_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
+G2000_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx g2000
+
+HH405_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
+
HUB405_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
}
@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
+sbc405_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx sbc405
+
VOH405_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
+VOM405_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
+
W7OLMC_config \
W7OLMG_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx w7o
WALNUT405_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx walnut405
+WUH405_config: unconfig
+ @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
+
XPEDITE1K_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
+#########################################################################
+## MPC8220 Systems
+#########################################################################
+Alaska8220_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc8220 alaska
+
+Yukon8220_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc8220 yukon
+
#########################################################################
## MPC824x Systems
#########################################################################
utx8245_config: unconfig
@./mkconfig $(@:_config=) ppc mpc824x utx8245
+cobra5272_config : unconfig
+ @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
+
#########################################################################
## MPC8260 Systems
#########################################################################
M5282EVB_config : unconfig
@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
+TASREG_config : unconfig
+ @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
+
#########################################################################
## MPC85xx Systems
#########################################################################
MPC8560ADS_config: unconfig
@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
-stxgp3_config: unconfig
- @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
+MPC8541CDS_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
+
+MPC8555CDS_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
+
+sbc8540_config \
+sbc8540_33_config \
+sbc8540_66_config: unconfig
+ @if [ "$(findstring _66_,$@)" ] ; then \
+ echo "#define CONFIG_PCI_66" >>include/config.h ; \
+ echo "... 66 MHz PCI" ; \
+ else \
+ >include/config.h ; \
+ echo "... 33 MHz PCI" ; \
+ fi
+ @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
sbc8560_config \
sbc8560_33_config \
sbc8560_66_config: unconfig
@if [ "$(findstring _66_,$@)" ] ; then \
- echo "#define CONFIG_PCI_66" >>include/config.h ; \
+ echo "#define CONFIG_PCI_66" >>include/config.h ; \
echo "... 66 MHz PCI" ; \
else \
>include/config.h ; \
fi
@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
+stxgp3_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
+
+TQM8540_config: unconfig
+ @./mkconfig $(@:_config=) ppc mpc85xx tqm8540
+
#########################################################################
## 74xx/7xx Systems
#########################################################################
BAB7xx_config: unconfig
@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
+CPCI750_config: unconfig
+ @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
+
DB64360_config: unconfig
@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
-integratorcp_config : unconfig
- @./mkconfig $(@:_config=) arm arm926ejs integratorcp
-
integratorap_config : unconfig
@./mkconfig $(@:_config=) arm arm926ejs integratorap
+integratorcp_config : unconfig
+ @./mkconfig $(@:_config=) arm arm926ejs integratorcp
+
lpd7a400_config \
lpd7a404_config: unconfig
@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
xsengine_config : unconfig
@./mkconfig $(@:_config=) arm pxa xsengine
+#########################################################################
+## ARM1136 Systems
+#########################################################################
+omap2420h4_config : unconfig
+ @./mkconfig $(@:_config=) arm arm1136 omap2420h4
+
#========================================================================
# i386
#========================================================================
@echo "#define CONFIG_DBAU1500 1" >>include/config.h
@./mkconfig -a dbau1x00 mips mips dbau1x00
+dbau1550_config : unconfig
+ @ >include/config.h
+ @echo "#define CONFIG_DBAU1550 1" >>include/config.h
+ @./mkconfig -a dbau1x00 mips mips dbau1x00
+
+dbau1550_el_config : unconfig
+ @ >include/config.h
+ @echo "#define CONFIG_DBAU1550 1" >>include/config.h
+ @./mkconfig -a dbau1x00 mips mips dbau1x00 "" little
+
#########################################################################
## MIPS64 5Kc
#########################################################################
}
@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
+#########################################################################
+## Nios-II
+#########################################################################
+
+PK1C20_config : unconfig
+ @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
+
+PCI5441_config : unconfig
+ @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
#========================================================================
# MicroBlaze
| xargs -0 rm -f
rm -f $(OBJS) *.bak tags TAGS
rm -fr *.*~
- rm -f u-boot u-boot.map $(ALL)
+ rm -f u-boot u-boot.map u-boot.hex $(ALL)
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/proc include/asm/arch include/asm