diff --git a/Makefile.firmware b/Makefile.firmware new file mode 100644 index 0000000..72dcd25 --- /dev/null +++ b/Makefile.firmware @@ -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 diff --git a/usbboot/xburst_stage1/Makefile b/usbboot/xburst_stage1/Makefile index 8e0f161..b38e69c 100644 --- a/usbboot/xburst_stage1/Makefile +++ b/usbboot/xburst_stage1/Makefile @@ -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 \ diff --git a/usbboot/xburst_stage2/Makefile b/usbboot/xburst_stage2/Makefile index fc6ddd2..57bcbe5 100644 --- a/usbboot/xburst_stage2/Makefile +++ b/usbboot/xburst_stage2/Makefile @@ -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 diff --git a/xbboot/target-stage1/Makefile b/xbboot/target-stage1/Makefile index 750ed44..1575e6c 100644 --- a/xbboot/target-stage1/Makefile +++ b/xbboot/target-stage1/Makefile @@ -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/