Makefile: new targets skylab and carambola2

all target is still building carambola2
This commit is contained in:
Alexander Couzens 2015-03-03 01:41:05 +01:00
parent 8fda131810
commit 6944c3a4c1
1 changed files with 23 additions and 9 deletions

View File

@ -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