Makefile: replace make $(BOARD)_target's by global exports
This commit is contained in:
parent
3d9467d828
commit
476f1a788e
15
Makefile
15
Makefile
|
@ -25,18 +25,13 @@ export MAKECMD=make ARCH=mips
|
|||
export UBOOT_GCC_4_3_3_EXTRA_CFLAGS=-fPIC
|
||||
export BUILD_TYPE=squashfs
|
||||
|
||||
export COMPRESSED_UBOOT=0
|
||||
export CARABOOT_RELEASE=v2.2-dev
|
||||
|
||||
IMAGEPATH=$(BUILD_TOPDIR)/bin
|
||||
UBOOT_BINARY=u-boot.bin
|
||||
BOARD_TYPE:=
|
||||
|
||||
ap2_config:
|
||||
export COMPRESSED_UBOOT=0
|
||||
export CARABOOT_RELEASE=v2.2-dev
|
||||
|
||||
carambola2_config:
|
||||
export COMPRESSED_UBOOT=0
|
||||
export CARABOOT_RELEASE=v2.2-dev
|
||||
|
||||
compile:
|
||||
cd $(UBOOTDIR) && $(MAKECMD) distclean
|
||||
cd $(UBOOTDIR) && $(MAKECMD) $(BOARD_TYPE)_config
|
||||
|
@ -49,11 +44,11 @@ compile:
|
|||
|
||||
carambola2: BOARD_TYPE:= carambola2
|
||||
carambola2: UBOOTFILE=$(BOARD_TYPE)_u-boot.bin
|
||||
carambola2: carambola2_config compile
|
||||
carambola2: compile
|
||||
|
||||
ap2: BOARD_TYPE:= ap2
|
||||
ap2: UBOOTFILE=$(BOARD_TYPE)_u-boot.bin
|
||||
ap2: ap2_config compile
|
||||
ap2: compile
|
||||
|
||||
all: carambola2 ap2
|
||||
|
||||
|
|
Loading…
Reference in New Issue