Quellcode durchsuchen

ramips: Add lzma-loader targets

Signed-off-by: Tobias Schramm <[email protected]>
Tobias Schramm vor 7 Jahren
Ursprung
Commit
c0167abcb0
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. 16 0
      target/linux/ramips/image/Makefile

+ 16 - 0
target/linux/ramips/image/Makefile

@@ -57,6 +57,22 @@ define Build/trx
 		-a 4 -f $(IMAGE_ROOTFS)
 endef
 
+define Build/loader-common
+	rm -rf [email protected]
+	$(MAKE) -C lzma-loader \
+		PKG_BUILD_DIR="[email protected]" \
+		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 [email protected]
+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 && \