diff --git a/Makefile b/Makefile index e37f35c136..2b2dc8e862 100644 --- a/Makefile +++ b/Makefile @@ -25,19 +25,28 @@ export MAKECMD=make ARCH=mips export UBOOT_GCC_4_3_3_EXTRA_CFLAGS=-fPIC export BUILD_TYPE=squashfs -BOARD_TYPE=carambola2 -export COMPRESSED_UBOOT=0 -export FLASH_SIZE=16 -export NEW_DDR_TAP_CAL=1 -export CONFIG_HORNET_XTAL=40 -export CONFIG_HORNET_1_1_WAR=1 -export CARABOOT_RELEASE=v2.2-dev - IMAGEPATH=$(BUILD_TOPDIR)/bin UBOOT_BINARY=u-boot.bin UBOOTFILE=$(BOARD_TYPE)_u-boot.bin -all: +skylab_config: +BOARD_TYPE:=skylab + export COMPRESSED_UBOOT=0 + export FLASH_SIZE=8 + export NEW_DDR_TAP_CAL=1 + export CONFIG_HORNET_1_1_WAR=1 + export CARABOOT_RELEASE=v2.2-dev + +carambola2_config: +BOARD_TYPE:=carambola2 + export COMPRESSED_UBOOT=0 + export FLASH_SIZE=16 + export NEW_DDR_TAP_CAL=1 + export CONFIG_HORNET_XTAL=40 + export CONFIG_HORNET_1_1_WAR=1 + export CARABOOT_RELEASE=v2.2-dev + +compile: cd $(UBOOTDIR) && $(MAKECMD) distclean cd $(UBOOTDIR) && $(MAKECMD) $(BOARD_TYPE)_config cd $(UBOOTDIR) && $(MAKECMD) all @@ -46,6 +55,11 @@ all: cp -f $(UBOOTDIR)/$(UBOOT_BINARY) $(IMAGEPATH)/$(UBOOTFILE) @echo Done + +carambola2: carambola2_config compile +skylab: skylab_config compile + +all: carambola2 clean: cd $(UBOOTDIR) && $(MAKECMD) distclean