diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-09-02 14:22:30 +0800 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-09-03 14:15:30 +0200 |
commit | b7013e9c4ad3b6944ac5a028d8ae9350be0859f0 (patch) | |
tree | f729626592cbde03fd31d3110e64800834b1644a /target | |
parent | cac9e3e2cb2327442406645b261f2861c2263cd5 (diff) | |
download | upstream-b7013e9c4ad3b6944ac5a028d8ae9350be0859f0.tar.gz upstream-b7013e9c4ad3b6944ac5a028d8ae9350be0859f0.tar.bz2 upstream-b7013e9c4ad3b6944ac5a028d8ae9350be0859f0.zip |
ramips: image: add recipe for OKLI loader
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/image/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index f5166f8ae1..10e9edd3bb 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -DEVICE_VARS += LOADER_TYPE +DEVICE_VARS += LOADER_TYPE LOADER_FLASH_OFFS DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK @@ -21,8 +21,12 @@ loadaddr-$(CONFIG_TARGET_ramips_mt7621) := 0x80001000 ldrplatform-y := ralink ldrplatform-$(CONFIG_TARGET_ramips_mt7621) := mt7621 +ldrflashstart-y := 0x1c000000 +ldrflashstart-$(CONFIG_TARGET_ramips_mt7621) := 0x1fc00000 + KERNEL_LOADADDR := $(loadaddr-y) LOADER_PLATFORM := $(ldrplatform-y) +LOADER_FLASH_START := $(ldrflashstart-y) KERNEL_DTB = kernel-bin | append-dtb | lzma @@ -74,6 +78,18 @@ define Build/loader-kernel $(call Build/loader-common,LOADER_DATA="$@") endef +define Build/loader-okli-compile + $(call Build/loader-common, \ + FLASH_START=$(LOADER_FLASH_START) \ + FLASH_OFFS=$(LOADER_FLASH_OFFS) \ + FLASH_MAX=0 \ + ) +endef + +define Build/append-loader-okli + cat "$(KDIR)/loader-$(word 1,$(1)).$(LOADER_TYPE)" >> "$@" +endef + # combine kernel and rootfs into one image # mkdlinkfw <type> <optional extra arguments to mkdlinkfw binary> define Build/mkdlinkfw |