ar71xx: use Image/BuildLoaderPatched for TPLINK-SAFELOADER images
authorFelix Fietkau <nbd@openwrt.org>
Sat, 30 May 2015 22:55:50 +0000 (22:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 30 May 2015 22:55:50 +0000 (22:55 +0000)
Building the loader in Image/Build/TPLINK-SAFELOADER would break the image
builder as no target compiler is available in that stage.

Fixes #19580

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 45855

target/linux/ar71xx/image/Makefile

index fc66908d64fed5ca2b6064f6126bb2f68efa4a6f..580a64078668138820df2c08eab93404731f8988 100644 (file)
@@ -1495,14 +1495,10 @@ define Image/Build/TPLINK-LZMA/initramfs
 endef
 
 
-Image/Build/TPLINK-SAFELOADER/buildkernel=$(call PatchKernelLzma,$(2),$(3) $(4))
+Image/Build/TPLINK-SAFELOADER/loader = $(call Image/BuildLoaderPatched,$(1),elf,$(2) $(3))
 
 define Image/Build/TPLINK-SAFELOADER
-       -rm -rf $(KDIR)/lzma-loader
-       $(LOADER_MAKE) LOADER=loader-$(2).elf\
-               LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \
-               LOADER_DATA="$(KDIR_TMP)/vmlinux-$(2).bin.lzma" BOARD="$(2)" \
-               compile loader.elf
+       [ -e "$(KDIR)/loader-$(2).elf" ]
 
        -$(STAGING_DIR_HOST)/bin/tplink-safeloader \
                -B $(5) \