aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-03-23 12:52:44 +0000
committerJohn Crispin <blogic@openwrt.org>2016-03-23 12:52:44 +0000
commitf85bed07bc35dc0ea5bdf336342c3702cd13a484 (patch)
treece8a952871b02d2b3e94ecad952a1603dfecf0d2 /target/linux
parent450df89c4bd0a04159f38f267a3988aa312f1bb3 (diff)
downloadmaster-187ad058-f85bed07bc35dc0ea5bdf336342c3702cd13a484.tar.gz
master-187ad058-f85bed07bc35dc0ea5bdf336342c3702cd13a484.tar.bz2
master-187ad058-f85bed07bc35dc0ea5bdf336342c3702cd13a484.zip
ar71xx/image: introduce LOADER_TYPE to support elf loaders
The loader decompress a lzma compressed kernel. Some bootloaders only support elf files like the tplink cpe510 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49079 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index be978561c4..0c8aaa2bfe 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -14,7 +14,7 @@ IMAGE_PROFILE:=$(if $(PROFILE),$(PROFILE),Default)
KERNEL_LOADADDR = 0x80060000
-DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD_ID NETGEAR_HW_ID CMDLINE CONSOLE IMAGE_SIZE BOARDNAME LOADER_FLASH_OFFS
+DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD_ID NETGEAR_HW_ID CMDLINE CONSOLE IMAGE_SIZE BOARDNAME LOADER_FLASH_OFFS LOADER_TYPE
define Build/netgear-squashfs
rm -rf $@.fs $@.squashfs
@@ -80,8 +80,8 @@ define Build/loader-common
TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \
KERNEL_CMDLINE="$(CMDLINE)" BOARD="$(BOARDNAME)" \
LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \
- $(1) compile loader.gz
- mv "$@.gz" "$@"
+ $(1) compile loader.$(LOADER_TYPE)
+ mv "$@.$(LOADER_TYPE)" "$@"
rm -rf $@.src
endef
@@ -264,6 +264,7 @@ TARGET_DEVICES += wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2
define Device/tplink
TPLINK_HWREV := 0x1
TPLINK_HEADER_VERSION := 1
+ LOADER_TYPE := gz
KERNEL := kernel-bin | patch-cmdline | lzma
KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
IMAGES := sysupgrade.bin factory.bin