[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190807230737.GA11458@agluck-desk2.amr.corp.intel.com>
Date: Wed, 7 Aug 2019 16:07:37 -0700
From: "Luck, Tony" <tony.luck@...el.com>
To: 'Christoph Hellwig' <hch@....de>,
"Yu, Fenghua" <fenghua.yu@...el.com>
Cc: 'Arnd Bergmann' <arnd@...db.de>,
'Greg Kroah-Hartman' <gregkh@...uxfoundation.org>,
"'linux-ia64@...r.kernel.org'" <linux-ia64@...r.kernel.org>,
"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>
Subject: Re: remove sn2, hpsim and ia64 machvecs
On Wed, Aug 07, 2019 at 01:26:17PM -0700, Luck, Tony wrote:
> Ugh! The rule to do the compression was in arch/ia64/hp/sim/boot/Makefile
> which went away as part of the deletion of hpsim.
This fixes it ... should fold into the patch that dropped the
arch/ia64/hp/sim/boot/Makefile
I just cut/pasted in those cmd_gzip and cmd_objcopy definitions
from elsewhere in the tree. It might be possible to simplify them.
---
arch/ia64/Makefile | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile
index 6eaa0ffd15ca..e0bb2b6aaa35 100644
--- a/arch/ia64/Makefile
+++ b/arch/ia64/Makefile
@@ -39,6 +39,12 @@ $(error Sorry, you need a newer version of the assember, one that is built from
ftp://ftp.hpl.hp.com/pub/linux-ia64/gas-030124.tar.gz)
endif
+quiet_cmd_gzip = GZIP $@
+cmd_gzip = cat $(real-prereqs) | gzip -n -f -9 > $@
+
+quiet_cmd_objcopy = OBJCOPY $@
+cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
+
KBUILD_CFLAGS += $(cflags-y)
head-y := arch/ia64/kernel/head.o
@@ -57,7 +63,11 @@ compressed: vmlinux.gz
vmlinuz: vmlinux.gz
-vmlinux.gz: vmlinux
+vmlinux.gz: vmlinux.bin FORCE
+ $(call if_changed,gzip)
+
+vmlinux.bin: vmlinux FORCE
+ $(call if_changed,objcopy)
unwcheck: vmlinux
-$(Q)READELF=$(READELF) $(PYTHON) $(srctree)/arch/ia64/scripts/unwcheck.py $<
--
2.20.1
Powered by blists - more mailing lists