mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
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> SVN-Revision: 49079
This commit is contained in:
parent
a8bf92457d
commit
5bac8f0fd4
@ -14,7 +14,7 @@ IMAGE_PROFILE:=$(if $(PROFILE),$(PROFILE),Default)
|
|||||||
|
|
||||||
KERNEL_LOADADDR = 0x80060000
|
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
|
define Build/netgear-squashfs
|
||||||
rm -rf $@.fs $@.squashfs
|
rm -rf $@.fs $@.squashfs
|
||||||
@ -80,8 +80,8 @@ define Build/loader-common
|
|||||||
TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \
|
TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \
|
||||||
KERNEL_CMDLINE="$(CMDLINE)" BOARD="$(BOARDNAME)" \
|
KERNEL_CMDLINE="$(CMDLINE)" BOARD="$(BOARDNAME)" \
|
||||||
LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \
|
LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \
|
||||||
$(1) compile loader.gz
|
$(1) compile loader.$(LOADER_TYPE)
|
||||||
mv "$@.gz" "$@"
|
mv "$@.$(LOADER_TYPE)" "$@"
|
||||||
rm -rf $@.src
|
rm -rf $@.src
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -264,6 +264,7 @@ TARGET_DEVICES += wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2
|
|||||||
define Device/tplink
|
define Device/tplink
|
||||||
TPLINK_HWREV := 0x1
|
TPLINK_HWREV := 0x1
|
||||||
TPLINK_HEADER_VERSION := 1
|
TPLINK_HEADER_VERSION := 1
|
||||||
|
LOADER_TYPE := gz
|
||||||
KERNEL := kernel-bin | patch-cmdline | lzma
|
KERNEL := kernel-bin | patch-cmdline | lzma
|
||||||
KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
|
KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
|
||||||
IMAGES := sysupgrade.bin factory.bin
|
IMAGES := sysupgrade.bin factory.bin
|
||||||
|
Loading…
Reference in New Issue
Block a user