diff options
author | Tobias Schramm <tobleminer@gmail.com> | 2018-05-03 18:44:27 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-06-21 06:55:10 +0200 |
commit | 7381ed3d01262519fa616988ec30862790fd1216 (patch) | |
tree | e171920bb3e67e339f52d1c7c920920887064e9f | |
parent | 5529e713578217fc9fac706783b8c61f3c649274 (diff) | |
download | mtk-20170518-7381ed3d01262519fa616988ec30862790fd1216.zip mtk-20170518-7381ed3d01262519fa616988ec30862790fd1216.tar.gz mtk-20170518-7381ed3d01262519fa616988ec30862790fd1216.tar.bz2 |
ramips: Add lzma-loader targets
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
-rw-r--r-- | target/linux/ramips/image/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 13934c5..8ab8aa3 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -57,6 +57,22 @@ define Build/trx -a 4 -f $(IMAGE_ROOTFS) endef +define Build/loader-common + rm -rf $@.src + $(MAKE) -C lzma-loader \ + PKG_BUILD_DIR="$@.src" \ + TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \ + BOARD="$(BOARDNAME)" PLATFORM="$(PLATFORM)" \ + LZMA_TEXT_START=0x82000000 LOADADDR=$(KERNEL_LOADADDR) \ + $(1) compile loader.$(LOADER_TYPE) + mv "$@.$(LOADER_TYPE)" "$@" + rm -rf $@.src +endef + +define Build/loader-kernel + $(call Build/loader-common,LOADER_DATA="$@") +endef + define Build/relocate-kernel ( \ dd if=$(KDIR)/loader.bin bs=32 conv=sync && \ |