[OpenWrt-Devel] [PATCH v2 1/2] kernel: Use defconfig instead of full fledged kernel configuration

Maxime Ripard maxime.ripard at free-electrons.com
Tue Nov 25 16:42:41 EST 2014


On Tue, Nov 25, 2014 at 11:21:22AM +0100, Felix Fietkau wrote:
> On 2014-11-24 22:42, Maxime Ripard wrote:
> > Rely on the Kconfig defconfig mechanism to fill all the missing options,
> > instead of needing to set them all in the kernel configurations like what was
> > previously done.
> > 
> > This will allow to trim down a lot the configuration files, avoid carrying
> > unused configuration options and preserve the developpers mental health.
> > 
> > Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
> > ---
> >  include/kernel-defaults.mk | 40 ++++++++++++++++++++++++++++++++--------
> >  1 file changed, 32 insertions(+), 8 deletions(-)
> > 
> > diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
> > index 8abd32d7141d..9fd96a234e37 100644
> > --- a/include/kernel-defaults.mk
> > +++ b/include/kernel-defaults.mk
> > @@ -100,16 +100,40 @@ define Kernel/SetNoInitramfs
> >  	echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config
> >  endef
> >  
> > +ifeq ($(ARCH),armeb)
> > +  LINUX_ARCH := arm
> > +else ifeq ($(ARCH),mipsel)
> > +  LINUX_ARCH := mips
> > +else ifeq ($(ARCH),mips64)
> > +  LINUX_ARCH := mips
> > +else ifeq ($(ARCH),um)
> > +  LINUX_ARCH := x86
> > +else ifeq ($(ARCH),i386)
> > +  LINUX_ARCH := x86
> > +else ifeq ($(ARCH),x86_64)
> > +  LINUX_ARCH := x86
> > +else
> > +  LINUX_ARCH := $(ARCH)
> > +endif
> That looks a lot like LINUX_KARCH from include/kernel.mk

Ah, right.

Thanks for pointing this out, I'll send a v3.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141125/415b4c9c/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list