From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gen_init_cpio fixes for 2.5.64
Date: Fri, 7 Mar 2003 16:44:05 -0800 [thread overview]
Message-ID: <20030308004405.GC23071@kroah.com> (raw)
In-Reply-To: <20030308004340.GB23071@kroah.com>
ChangeSet 1.1125, 2003/03/07 16:46:13-08:00, greg@kroah.com
kbuild: handle any failures of the gen_init_cpio or initramfs image to stop the build.
This also shows how to add files to the initramfs build, but is
commented out.
Patch originally done by Kai.
usr/Makefile | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff -Nru a/usr/Makefile b/usr/Makefile
--- a/usr/Makefile Fri Mar 7 16:48:16 2003
+++ b/usr/Makefile Fri Mar 7 16:48:16 2003
@@ -1,16 +1,34 @@
obj-y := initramfs_data.o
-host-progs := gen_init_cpio
+host-progs := gen_init_cpio
clean-files := initramfs_data.cpio.gz
LDFLAGS_initramfs_data.o := $(LDFLAGS_BLOB) -r -T
-$(obj)/initramfs_data.o: $(src)/initramfs_data.scr $(obj)/initramfs_data.cpio.gz FORCE
+$(obj)/initramfs_data.o: $(src)/initramfs_data.scr \
+ $(obj)/initramfs_data.cpio.gz FORCE
$(call if_changed,ld)
-$(obj)/initramfs_data.cpio.gz: $(obj)/gen_init_cpio
- ./$< | gzip -9c > $@
+# initramfs-y are the programs which will be copied into the CPIO
+# archive. Currently, the filenames are hardcoded in gen_init_cpio,
+# but we need the information for the build as well, so it's duplicated
+# here.
+# Commented out for now
+# initramfs-y := $(obj)/root/hello
+
+quiet_cmd_cpio = CPIO $@
+ cmd_cpio = ./$< > $@
+
+$(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio $(initramfs-y) FORCE
+ $(call if_changed,cpio)
+
+targets += $(obj)/initramfs_data.cpio
+
+$(obj)/initramfs_data.cpio.gz: $(obj)/initramfs_data.cpio FORCE
+ $(call if_changed,gzip)
+
+targets += $(obj)/initramfs_data.cpio.gz
next prev parent reply other threads:[~2003-03-08 0:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 6:08 [BK PATCH] klibc for 2.5.64 Greg KH
2003-03-08 0:42 ` [BK PATCH] gen_init_cpio fixes " Greg KH
2003-03-08 0:43 ` [PATCH] " Greg KH
2003-03-08 0:44 ` Greg KH [this message]
2003-03-08 14:37 ` Anders Gustafsson
2003-03-09 6:04 ` Greg KH
2003-03-09 21:28 ` Anders Gustafsson
2003-03-12 8:22 ` [PATCH] fix big initramfs (was: [PATCH] gen_init_cpio fixes for 2.5.64) Anders Gustafsson
2003-03-12 8:48 ` Andrew Morton
2003-03-12 9:25 ` Anders Gustafsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030308004405.GC23071@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.