From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo2.mail-out.ovh.net ([87.98.172.75]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YAvMJ-0005Vx-Gb for barebox@lists.infradead.org; Tue, 13 Jan 2015 06:53:48 +0000 Received: from mail94.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 368271000ECA for ; Tue, 13 Jan 2015 07:53:25 +0100 (CET) Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) From: Jean-Christophe PLAGNIOL-VILLARD In-Reply-To: <1421131570-7450-1-git-send-email-yamada.m@jp.panasonic.com> Date: Tue, 13 Jan 2015 14:53:19 +0800 Message-Id: <29573FD6-1527-4C63-ACBE-85847B0F1277@jcrosoft.com> References: <1421131570-7450-1-git-send-email-yamada.m@jp.panasonic.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] kbuild: add KBUILD_DEFCONFIG To: Masahiro Yamada Cc: barebox@lists.infradead.org > On Jan 13, 2015, at 2:46 PM, Masahiro Yamada wrote: > > This allows "make ARCH=... defconfig". > > Fox example, you can type "make defconfig" instead of > "make sandbox_defconfig". > > Signed-off-by: Masahiro Yamada > --- > > arch/arm/Makefile | 1 + > arch/blackfin/Makefile | 1 + > arch/efi/Makefile | 2 ++ > arch/nios2/Makefile | 2 ++ > arch/openrisc/Makefile | 2 ++ > arch/sandbox/Makefile | 1 + > arch/x86/Makefile | 2 ++ > 7 files changed, 11 insertions(+) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index f06e2a0..9dd983b 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -1,3 +1,4 @@ > +KBUILD_DEFCONFIG := versatilepb_defconfig no sure we need a default config on arm and some other I known we use them on the kernel but here it could result in a broken board if use not carefully for arch that only have 1 defconfig and will only have one maybe Best Regards, J. > > CPPFLAGS += -D__ARM__ -fno-strict-aliasing > # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb: > diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile > index 381c6a9..5c43bf7 100644 > --- a/arch/blackfin/Makefile > +++ b/arch/blackfin/Makefile > @@ -1,3 +1,4 @@ > +KBUILD_DEFCONFIG := ipe337_defconfig > > CPPFLAGS += -fno-strict-aliasing > > diff --git a/arch/efi/Makefile b/arch/efi/Makefile > index 85cb655..b078bd0 100644 > --- a/arch/efi/Makefile > +++ b/arch/efi/Makefile > @@ -1,3 +1,5 @@ > +KBUILD_DEFCONFIG := efi_defconfig > + > CFLAGS += -fpic -fshort-wchar -mno-sse -mno-mmx > > ifeq ($(CONFIG_X86_32),y) > diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile > index 681944f..d079190 100644 > --- a/arch/nios2/Makefile > +++ b/arch/nios2/Makefile > @@ -1,3 +1,5 @@ > +KBUILD_DEFCONFIG := generic_defconfig > + > CPPFLAGS += -fno-strict-aliasing -mno-hw-mul > > board-$(CONFIG_GENERIC) := generic > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index b0c8566..5394afb 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -1,3 +1,5 @@ > +KBUILD_DEFCONFIG := generic_defconfig > + > CPPFLAGS += -D__OR1K__ -ffixed-r10 -mhard-mul -mhard-div > > board-$(CONFIG_GENERIC) := generic > diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile > index ed5d3a3..e3fb039 100644 > --- a/arch/sandbox/Makefile > +++ b/arch/sandbox/Makefile > @@ -1,3 +1,4 @@ > +KBUILD_DEFCONFIG := sandbox_defconfig > > CPPFLAGS += -D__SANDBOX__ -fno-strict-aliasing > > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index a78fa22..da17d70 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -1,3 +1,5 @@ > +KBUILD_DEFCONFIG := generic_defconfig > + > CPPFLAGS += -D__X86__ -fno-strict-aliasing > > board-y := x86_generic > -- > 1.9.1 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox