X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/ed63390cbbe8ef8ac18c64cf748173402979273e..9c9d170774c0991b3e9065fe7a36a118255a8959:/openwrt/target/linux/image/brcm/Makefile diff --git a/openwrt/target/linux/image/brcm/Makefile b/openwrt/target/linux/image/brcm/Makefile index 73d236a2d..31f941fc3 100644 --- a/openwrt/target/linux/image/brcm/Makefile +++ b/openwrt/target/linux/image/brcm/Makefile @@ -25,8 +25,13 @@ endif ifeq ($(FS),jffs2-4MB) TRXALIGN:=-a 0x10000 endif -$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx: - $(STAGING_DIR)/bin/trx -o $@ $(BUILD_DIR)/loader.gz $(KDIR)/vmlinux.lzma $(TRXALIGN) $(KDIR)/root.$(FS) + +$(KDIR)/loader.tmp.gz: + cp $(BUILD_DIR)/loader.gz $@ + echo -ne "\\x00" >> $@ + +$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx: $(KDIR)/loader.tmp.gz + $(STAGING_DIR)/bin/trx -o $@ $(KDIR)/loader.tmp.gz $(KDIR)/vmlinux.lzma $(TRXALIGN) $(KDIR)/root.$(FS) ifeq ($(KERNEL),2.6) FSNAME:=$(patsubst jffs2-%,jffs2,$(FS))