generic lzma loader: add support for memory copying, preserve prom arguments
[openwrt.git] / target / linux / image / generic / lzma-loader / Makefile
index daa8353..3de04a8 100644 (file)
@@ -9,7 +9,7 @@ PKG_BUILD_DIR := $(KDIR)/$(PKG_NAME)-$(PKG_VERSION)
 
 $(PKG_BUILD_DIR)/.prepared:
        mkdir $(PKG_BUILD_DIR)
-       cp -fpR ./src/* $(PKG_BUILD_DIR)/
+       $(CP) ./src/* $(PKG_BUILD_DIR)/
        touch $@
 
 $(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma
@@ -17,14 +17,15 @@ $(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.l
                LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS) \
                RAMSIZE=$(RAMSIZE) \
                LOADADDR=$(LOADADDR) \
-               KERNEL_ENTRY=$(KERNEL_ENTRY)
+               KERNEL_ENTRY=$(KERNEL_ENTRY) \
+               IMAGE_COPY=$(IMAGE_COPY)
 
 
 $(PKG_BUILD_DIR)/vmlinux.lzma: $(KDIR)/vmlinux.lzma
-       cp $< $@
+       $(CP) $< $@
 
 $(KDIR)/loader.elf: $(PKG_BUILD_DIR)/lzma.elf
-       cp $< $@
+       $(CP) $< $@
 
 source: 
 prepare: $(PKG_BUILD_DIR)/.prepared
This page took 0.021868 seconds and 4 git commands to generate.