From: Matthew Wilcox <matthew@wil.cx>
To: akpm@osdl.org
Cc: mm-commits@vger.kernel.org, jean-paul.saman@nxp.com,
linux-arch@vger.kernel.org, viro@zeniv.linux.org.uk
Subject: Re: + disable-init-initramfsc-updated.patch added to -mm tree
Date: Thu, 14 Dec 2006 14:45:26 -0700 [thread overview]
Message-ID: <20061214214526.GU21070@parisc-linux.org> (raw)
In-Reply-To: <200612142139.kBELdXC4028925@shell0.pdx.osdl.net>
On Thu, Dec 14, 2006 at 01:39:33PM -0800, akpm@osdl.org wrote:
> diff -puN init/Makefile~disable-init-initramfsc-updated init/Makefile
> --- a/init/Makefile~disable-init-initramfsc-updated
> +++ a/init/Makefile
> @@ -2,7 +2,12 @@
> # Makefile for the linux kernel.
> #
>
> -obj-y := main.o version.o mounts.o initramfs.o
> +obj-y := main.o version.o mounts.o
> +ifneq ($(CONFIG_BLK_DEV_INITRD),y)
> +obj-y += noinitramfs.o
> +else
> +obj-$(CONFIG_BLK_DEV_INITRD) += initramfs.o
> +endif
> obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o
>
> mounts-y := do_mounts.o
I thought we tried to avoid if/else/endif constructs in Makefiles these
days, opting for a more declarative:
init-y := noinitramfs.o
init-$(CONFIG_BLK_DEV_INITRD) := initramfs.o
obj-y := main.o version.o mounts.o $(init-y)
prev parent reply other threads:[~2006-12-14 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 21:39 + disable-init-initramfsc-updated.patch added to -mm tree akpm
2006-12-14 21:45 ` Matthew Wilcox [this message]
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=20061214214526.GU21070@parisc-linux.org \
--to=matthew@wil.cx \
--cc=akpm@osdl.org \
--cc=jean-paul.saman@nxp.com \
--cc=linux-arch@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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.