From: Tobias Schramm Date: Thu, 3 May 2018 16:44:27 +0000 (+0200) Subject: ramips: Add lzma-loader targets X-Git-Tag: v18.06.0-rc1~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7381ed3d01262519fa616988ec30862790fd1216;p=oweals%2Fopenwrt.git ramips: Add lzma-loader targets Signed-off-by: Tobias Schramm --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 13934c5b06..8ab8aa3a6c 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 && \