2014-12-09 20:02:26

by Paul Bolle

[permalink] [raw]
Subject: [PATCH] nios2: enable "make defconfig"

Running "make defconfig" currently fails for nios2:
$ make ARCH=nios2 defconfig
scripts/kconfig/conf --defconfig Kconfig
***
*** Can't find default configuration "arch/nios2/defconfig"!
***
make[1]: *** [defconfig] Error 1
make: *** [defconfig] Error 2

Add a definition for KBUILD_DEFCONFIG to the nios2's main Makefile to
enable this make target.

Signed-off-by: Paul Bolle <[email protected]>
---
arch/nios2/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index e142c9ee51fa..2328f82ba2a8 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -14,6 +14,8 @@
# Nios2 port by Wind River Systems Inc trough:
# [email protected] and [email protected]

+KBUILD_DEFCONFIG := 3c120_defconfig
+
UTS_SYSNAME = Linux

export MMU
--
1.9.3


2014-12-12 08:44:20

by Ley Foon Tan

[permalink] [raw]
Subject: Re: [PATCH] nios2: enable "make defconfig"

On Wed, Dec 10, 2014 at 4:02 AM, Paul Bolle <[email protected]> wrote:
> Running "make defconfig" currently fails for nios2:
> $ make ARCH=nios2 defconfig
> scripts/kconfig/conf --defconfig Kconfig
> ***
> *** Can't find default configuration "arch/nios2/defconfig"!
> ***
> make[1]: *** [defconfig] Error 1
> make: *** [defconfig] Error 2
>
> Add a definition for KBUILD_DEFCONFIG to the nios2's main Makefile to
> enable this make target.
>
> Signed-off-by: Paul Bolle <[email protected]>
> ---
Applied.

Thanks.