mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 06:10:38 +02:00
add a Makefile.firmware for only compile firmware
This commit is contained in:
parent
c71ce8e15d
commit
fc85c030a9
16
Makefile.firmware
Normal file
16
Makefile.firmware
Normal 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
|
@ -11,7 +11,7 @@ INFLASH_SRC_PATH = ../src
|
||||
XBURST_INCLUDE_PATH = ../xburst_include
|
||||
|
||||
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
|
||||
|
||||
CFLAGS := -O2 -fno-unit-at-a-time -fno-zero-initialized-in-bss -mips32 -fno-pic \
|
||||
|
@ -11,7 +11,7 @@
|
||||
XBURST_INCLUDE_PATH = -I../xburst_include -I../src
|
||||
|
||||
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
|
||||
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
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
|
||||
|
||||
INCPATH = -I. -I../target-common/
|
||||
|
Loading…
Reference in New Issue
Block a user