| To: | Manuel Lauss <manuel.lauss@googlemail.com>, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] MIPS: zboot: make the vmlinuz be fresh all the time |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Wed, 14 Oct 2009 19:11:52 +0800 |
| Cc: | linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=VhHIX6ADd3NnUmjIX9SrU2Wm6m+O58Qdp5eROtFZvbo=; b=gO79mFCCtKyqyzYGAGfJ7lSh35trhBOGNjUwGFXx07k8Uqbba4dFzrMc+jUpYWkXRs VXwwkR0scWfKAhhgaRNbX21RYhiBkQ5uhQ1ameCt2Zdd06Sawi+velVjPLkQKaN5NNzP AeKZVu3BBl6Qs6xd4FdE3HLImwehiknpWLO/I= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=JzQ+DY0jmTtTjlEsaVhQpOMF8YvV/cwweCYzATb1IwcKDED/k/CRq70IG9ULVxrOz0 +N20wqPqCORPNx96S/x/4L/jdaUWWvcmKu73r3zaw4QL/v94rhyQJPH35WcAru4uG7RT HIM10rJ4+dJTJex8OOqaAnvJef4BztwSjeqRI= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Manuel Lauss have reported:
"when I change the compression type in a built tree, the compressed/ directoryy
doesn't get rebuilt and a stale vmlinuz remains"
This patch fixes it.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/Makefile | 2 +-
arch/mips/boot/compressed/Makefile | 3 ---
2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 05bcf99..c240f7d 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -712,7 +712,7 @@ makezboot =$(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
all: $(all-y)
-vmlinuz: vmlinux
+vmlinuz: vmlinux FORCE
+@$(call makezboot,$@)
vmlinuz.bin: vmlinux
diff --git a/arch/mips/boot/compressed/Makefile
b/arch/mips/boot/compressed/Makefile
index 5cf9b46..90e5879 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -49,20 +49,17 @@ tool_$(CONFIG_KERNEL_LZMA) = lzma
tool_$(CONFIG_KERNEL_LZO) = lzo
$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin
$(call if_changed,$(tool_y))
- $(Q)rm -f $<
$(obj)/piggy.o: $(obj)/vmlinux.$(suffix_y) $(obj)/dummy.o
$(Q)$(OBJCOPY) $(OBJCOPYFLAGS) \
--add-section=.image=$< \
--set-section-flags=.image=contents,alloc,load,readonly,data \
$(obj)/dummy.o $@
- $(Q)rm -f $<
LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T
vmlinuz: $(src)/ld.script $(obj-y) $(obj)/piggy.o
$(call if_changed,ld)
$(Q)$(OBJCOPY) $(OBJCOPYFLAGS) -R .comment -R .stab -R .stabstr -R
.initrd -R .sysmap $@
- $(Q)rm -f $(obj)/piggy.o
#
# Some DECstations need all possible sections of an ECOFF executable
--
1.6.2.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/2] spi_txx9: Fix bit rate calculation, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: Alchemy: fix hang with high-frequency edge interrupts, Ralf Baechle |
| Previous by Thread: | Re: [PATCH 2/2] spi_txx9: Fix bit rate calculation, Ralf Baechle |
| Next by Thread: | Re: [PATCH] MIPS: zboot: make the vmlinuz be fresh all the time, Manuel Lauss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |