mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-06 13:58:53 +00:00
ramips: Add lzma-loader targets
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
This commit is contained in:
parent
5529e71357
commit
7381ed3d01
@ -57,6 +57,22 @@ define Build/trx
|
|||||||
-a 4 -f $(IMAGE_ROOTFS)
|
-a 4 -f $(IMAGE_ROOTFS)
|
||||||
endef
|
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
|
define Build/relocate-kernel
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/loader.bin bs=32 conv=sync && \
|
dd if=$(KDIR)/loader.bin bs=32 conv=sync && \
|
||||||
|
Loading…
Reference in New Issue
Block a user