X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/14e96a8a42a27f36a7e53bc87acdb134b1fbdbd8..adde7768a2eab2950a7628319ec832c63a00ff03:/target/linux/generic-2.6/image/lzma-loader/src/Makefile diff --git a/target/linux/generic-2.6/image/lzma-loader/src/Makefile b/target/linux/generic-2.6/image/lzma-loader/src/Makefile index d5f712a1d..910172c4f 100644 --- a/target/linux/generic-2.6/image/lzma-loader/src/Makefile +++ b/target/linux/generic-2.6/image/lzma-loader/src/Makefile @@ -49,7 +49,7 @@ lzma.bin: lzma.elf ifeq ($(IMAGE_COPY),1) LOADER_ENTRY ?= $(KERNEL_ENTRY) -lzma.o: decompress.o LzmaDecode.o kernel.o print.o printf.o uart16550.o +lzma.o: decompress.o LzmaDecode.o kernel.o sed -e 's,@LOADADDR@,$(LOADADDR),g' -e 's,@ENTRY@,entry,g' lzma.lds.in >lzma-stage2.lds $(LD) -static --no-warn-mismatch -e entry -Tlzma-stage2.lds -o temp-$@ $^ $(OBJCOPY) temp-$@ lzma.tmp @@ -60,7 +60,7 @@ lzma.elf: start.o lzma.o sed -e 's,@LOADADDR@,$(LOADER_ENTRY),g' lzma-copy.lds.in >lzma-copy.lds $(LD) -s -Tlzma-copy.lds -o $@ $^ else -lzma.elf: start.o decompress.o LzmaDecode.o kernel.o print.o printf.o uart16550.o +lzma.elf: start.o decompress.o LzmaDecode.o kernel.o $(LD) -s -Tlzma.lds -o $@ $^ endif