1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 08:24:40 +02:00

add a Makefile.firmware for only compile firmware

This commit is contained in:
Xiangfu Liu 2012-02-20 16:35:45 +08:00
parent c71ce8e15d
commit fc85c030a9
4 changed files with 19 additions and 3 deletions

16
Makefile.firmware Normal file
View File

@ -0,0 +1,16 @@
all:
make -C usbboot/xburst_stage1
make -C usbboot/xburst_stage2
make -C xbboot/target-stage1
clean:
make -C usbboot/xburst_stage1 clean
make -C usbboot/xburst_stage2 clean
make -C xbboot/target-stage1 clean
install: all
install -d ${datadir}/xburst-tools/
install -m 644 usbboot/xburst_stage1/xburst_stage1.bin ${datadir}/xburst-tools
install -m 644 usbboot/xburst_stage1/xburst_stage2.bin ${datadir}/xburst-tools
install -m 644 xbboot/target-stage1/stage1.bin ${datadir}/xburst-tools

View File

@ -11,7 +11,7 @@ INFLASH_SRC_PATH = ../src
XBURST_INCLUDE_PATH = ../xburst_include XBURST_INCLUDE_PATH = ../xburst_include
ifeq ($(CROSS_COMPILE),) ifeq ($(CROSS_COMPILE),)
$(error CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-) $(warning CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-)
endif endif
CFLAGS := -O2 -fno-unit-at-a-time -fno-zero-initialized-in-bss -mips32 -fno-pic \ CFLAGS := -O2 -fno-unit-at-a-time -fno-zero-initialized-in-bss -mips32 -fno-pic \

View File

@ -11,7 +11,7 @@
XBURST_INCLUDE_PATH = -I../xburst_include -I../src XBURST_INCLUDE_PATH = -I../xburst_include -I../src
ifeq ($(CROSS_COMPILE),) ifeq ($(CROSS_COMPILE),)
$(error CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-) $(warning CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-)
endif endif
CC = $(CROSS_COMPILE)gcc CC = $(CROSS_COMPILE)gcc

View File

@ -8,7 +8,7 @@
# #
ifeq ($(CROSS_COMPILE),) ifeq ($(CROSS_COMPILE),)
$(error CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-) $(warning CROSS_COMPILE variable not set, should point to .../mipsel-openwrt-linux-)
endif endif
INCPATH = -I. -I../target-common/ INCPATH = -I. -I../target-common/