[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1408061504000.13545@chino.kir.corp.google.com>
Date: Wed, 6 Aug 2014 15:06:11 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Josh Triplett <josh@...htriplett.org>
cc: Andrew Morton <akpm@...ux-foundation.org>,
torvalds@...ux-foundation.org, "H. Peter Anvin" <hpa@...or.com>,
Ingo Molnar <mingo@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
"Luis R. Rodriguez" <mcgrof@...e.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86: Add "make tinyconfig" to configure the tiniest
possible kernel
On Wed, 6 Aug 2014, Josh Triplett wrote:
> Since commit 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a ("kconfig: make
> allnoconfig disable options behind EMBEDDED and EXPERT") in 3.15-rc1,
> "make allnoconfig" disables every possible config option.
>
> However, a few configuration options (CC_OPTIMIZE_FOR_SIZE,
> OPTIMIZE_INLINING) produce a smaller kernel when turned on, and a few
> choices exist (compression, highmem, allocator) for which a non-default
> option produces a smaller kernel.
>
> Add a "tinyconfig" target, which starts from allnoconfig and then sets
> these options to configure the tiniest possible kernel. This provides a
> better baseline for embedded systems or efforts to reduce kernel size.
>
I like it, the only comment that I have is that we already have a
xenconfig patchset sitting around that adds a helper function for this
functionality in the x86 Makefile that hasn't been merged yet.
The *config functionality is added in
http://marc.info/?l=linux-kernel&m=140233900403377
and then used in
http://marc.info/?l=linux-kernel&m=140233901403381
http://marc.info/?l=linux-kernel&m=140233904503428
and have been pending since June. I was going to ask Luis to rebase and
resend, but perhaps you can send the first patch along as a predecessor to
your patch and then let tinyconfig use build-virtconfig?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists