- Aug 03, 2010
-
-
Sam Ravnborg authored
It is now possible to assign options to AS, CC and LD on the command line - which is only used when building modules. {A,C,LD}FLAGS_MODULE was all used both in the top-level Makefile in the arch makefiles, thus users had no way to specify additional options to AS, CC, LD when building modules without overriding the original value. Introduce a new set of variables KBUILD_{A,C,LD}FLAGS_MODULE that is used by arch specific files and free up {A,C,LD}FLAGS_MODULE so they can be assigned on the command line. All arch Makefiles that used the old variables has been updated. Note: Previously we had a MODFLAGS variable for both AS and CC. But in favour of consistency this was dropped. So in some cases arch Makefile has one assignmnet replaced by two assignmnets. Note2: MODFLAGS was not documented and is dropped without any notice. I do not expect much/any breakage from this. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org> Cc: Denys Vlasenko <vda.linux@googlemail.com> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Chen Liqin <liqin.chen@sunplusct.com> Acked-by: Mike Frysinger <vapier@gentoo.org> [blackfin] Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> [avr32] Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- May 27, 2010
-
-
Michal Marek authored
A more complete patch in the kernel-doc tree also contains this change. Reported-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Apr 14, 2010
-
-
Li Zefan authored
- fix a typo in documentation - fix a typo in a printk on error - fix comments in dialog_inputbox() Signed-off-by:
Li Zefan <lizf@cn.fujitsu.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Mar 03, 2010
-
-
John Kacur authored
make ALLSOURCE_ARCHS=all tags - Document this in kbuild.txt Without this change you have to type each arch separately. Signed-off-by:
John Kacur <jkacur@redhat.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Feb 17, 2010
-
-
Kirill Smelkov authored
Signed-off-by:
Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Dec 12, 2009
-
-
Michal Marek authored
To make it easier for module-init-tools and scripts like mkinitrd to distinguish builtin and missing modules, install a modules.builtin file listing all builtin modules. This is done by generating an additional config file (tristate.conf) with tristate options set to uppercase 'Y' or 'M'. If we source that config file, the builtin modules appear in obj-Y. Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Sam Ravnborg authored
Signed-off-by:
Sam Ravnborg <sam@ravnborg.org> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Sep 20, 2009
-
-
Sam Ravnborg authored
ld-option is used to check if $(LD) supports a specific option. Based on patch from Andi Kleen. Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org> First use is to check if option -X is supported (upcoming patch). Theis is ne
-
Sam Ravnborg authored
ld-option is misnamed as it test options to gcc, not to ld. Renamed it to reflect this. Cc: Andi Kleen <andi@firstfloor.org> Cc: Roland McGrath <roland@redhat.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Sam Ravnborg authored
Replace the use of CROSS_COMPILE to select a customized installkernel script with the possibility to set INSTALLKERNEL to select a custom installkernel script when running make: make INSTALLKERNEL=arm-installkernel install With this patch we are now more consistent across different architectures - they did not all support use of CROSS_COMPILE. The use of CROSS_COMPILE was a hack as this really belongs to gcc/binutils and the installkernel script does not change just because we change toolchain. The use of CROSS_COMPILE caused troubles with an upcoming patch that saves CROSS_COMPILE when a kernel is built - it would no longer be installable. [Thanks to Peter Z. for this hint] This patch undos what Ian did in commit: 0f8e2d62 ("use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh") The patch has been lightly tested on x86 only - but all changes looks obvious. Acked-by:
Peter Zijlstra <peterz@infradead.org> Acked-by: Mike Frysinger <vapier@gentoo.org> [blackfin] Acked-by: Russell King <linux@arm.linux.org.uk> [arm] Acked-by: Paul Mundt <lethal@linux-sh.org> [sh] Acked-by: "H. Peter Anvin" <hpa@zytor.com> [x86] Cc: Ian Campbell <icampbell@arcom.com> Cc: Tony Luck <tony.luck@intel.com> [ia64] Cc: Fenghua Yu <fenghua.yu@intel.com> [ia64] Cc: Hirokazu Takata <takata@linux-m32r.org> [m32r] Cc: Geert Uytterhoeven <geert@linux-m68k.org> [m68k] Cc: Kyle McMartin <kyle@mcmartin.ca> [parisc] Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> [powerpc] Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> [s390] Cc: Thomas Gleixner <tglx@linutronix.de> [x86] Cc: Ingo Molnar <mingo@redhat.com> [x86] Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jun 09, 2009
-
-
Markus Heidelberg authored
All the KCONFIG_ environment variables were previously located in a section "Environment variables in 'menuconfig'", but neither are they restricted to 'menuconfig' nor are they all used by 'menuconfig'. Introduce the following three sections for these variables: * Environment variables for '*config' * Environment variables for '{allyes/allmod/allno/rand}config' * Environment variables for 'silentoldconfig' Furthermore this puts MENUCONFIG_MODE next to MENUCONFIG_COLOR into a common section "User interface options for 'menuconfig'". Signed-off-by:
Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
David VomLehn authored
There is an error in the make syntax for one of the kbuild examples Signed-off-by:
David VomLehn <dvomlehn@cisco.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Apr 19, 2009
-
-
Sam Ravnborg authored
Following patch introduce support for setting options to gcc that has effect for current directory and all subdirectories. The typical use case are an architecture or a subsystem that decide to cover all files with -Werror. Today alpha, mips and sparc uses -Werror in almost all their Makefile- with subdir-ccflag-y it is now simpler to do so as only the top-level directories needs to be covered. Likewise if we decide to cover a full subsystem such as net/ with -Werror this is done by adding a single line to net/Makefile. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de>
-
- Apr 11, 2009
-
-
Sam Ravnborg authored
xtensa and arm have asked for a possibility to export headers and locate them in a specific directory when exported. Introduce destiantion-y to support this. This patch in additiona adds some limited documentation for the variables used for exported headers. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org> Cc: Oskar Schirmer <os@emlix.com> Cc: Mikael Starvik <mikael.starvik@axis.com>
-
- Jan 14, 2009
-
-
Randy Dunlap authored
Fix typos in the new kbuild.txt file. Signed-off-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jan 07, 2009
-
-
Wolfram Sang authored
The text always mentions ...bin.o_shipped, just the example makefiles actually use ...bin_shipped. It was corrected in one place some time ago, these ones seem to have been forgotten. Signed-off-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Jike Song authored
This patch reintroduce the ALLSOURCE_ARCHS support for tags/TAGS/ cscope targets. The Kbuild previously has this feature, but after moving the targets into scripts/tags.sh, ALLSOURCE_ARCHS disappears. It's something like this: $ make ALLSOURCE_ARCHS="x86 mips arm" tags cscope Signed-off-by:
Jike Song <albcamus@gmail.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jan 02, 2009
-
-
Sam Ravnborg authored
Add kbuild.txt to Documentation/kbuild More stuff can be added later - at least we have som of the varous environment variables documented now. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Randy Dunlap authored
Create a kconfig user assistance guide, with a few tips and hints about using menuconfig, xconfig, and gconfig. Mostly contains user interface, environment variables, and search topics, along with mini.config/custom.config usage. Signed-off-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Dec 03, 2008
-
-
Mike Frysinger authored
There is a bunch of places in the build system where we do 'echo' to show some nice status lines. This means we still get output when running in silent mode. So declare a new KECHO variable that only does 'echo' when we are in a suitable verbose build mode. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> [sam: added Documentation] Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- May 04, 2008
-
-
Adrian Bunk authored
For the use case the hint describe a simple dependency is enough. Signed-off-by:
Adrian Bunk <bunk@kernel.org> Acked-by:
Randy Dunlap <randy.dunlap@oracle.com>
-
- Apr 28, 2008
-
-
Matthew Wilcox authored
While select should be used with care, it is not actually evil. Signed-off-by:
Matthew Wilcox <willy@linux.intel.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Apr 25, 2008
-
-
Richard Hacker authored
This patch adds a new (Kbuild) Makefile variable KBUILD_EXTRA_SYMBOLS. The space separated list of file names assigned to KBUILD_EXTRA_SYMBOLS is used when calling scripts/mod/modpost during stage 2 of the Kbuild process for non-kernel-tree modules. Signed-off-by:
Richard Hacker <lerichi@gmx.net> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jan 28, 2008
-
-
Sam Ravnborg authored
It has been discussed on lkml several times but we need it documented as this is new stuff. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Roman Zippel authored
Add the possibility to import a value from the environment into kconfig via the option syntax. Beside flexibility this has the advantage providing proper dependencies. Documented the options syntax. Signed-off-by:
Roman Zippel <zippel@linux-m68k.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Randy Dunlap authored
Add a section on kconfig hints: how to do <something> in Kconfig files. Fix a few typos/spellos. Signed-off-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Oct 22, 2007
-
-
Geert Uytterhoeven authored
Spelling fixes for cc-cross-prefix documentation Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Oct 19, 2007
-
-
Randy Dunlap authored
Add kconfig-language docs for mainmenu, def_bool, and def_tristate. Remove "requires" as a synonym of "depends on" since it was removed from the parser in commit 247537b9. Signed-off-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Sam Ravnborg authored
cc-cross-prefix is useful for the architecture that like to provide a default CROSS_COMPILE value, but may have several to select between. Sample usage: ifneq ($(SUBARCH),$(ARCH)) ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-) endif endif Actual usage by the different archs will taken care of later. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Oct 15, 2007
-
-
Sam Ravnborg authored
Introduce ccflags-y, asflags-y and ldflags-y so we soon can deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. This patch does not touch any in-tree users - thats next round. Lets get this committed first and then fix the users of the soon to be deprecated variants next. The rationale behind this change is to introduce support for makefile fragments like: ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG As a replacement for the uglier: ifeq ($(CONFIG_WHATEVER_DEBUG),y) EXTRA_CFLAGS := -DDEBUG endif Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Sam Ravnborg authored
The variable CPPFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the tree and enabling one to use: make CPPFLAGS=... to specify additional CPP commandline options. Patch was tested on following architectures: alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390 Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Sam Ravnborg authored
The variable AFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. On top of that several people over time has asked for a way to pass in additional flags to gcc. This patch replace use of AFLAGS with KBUILD_AFLAGS all over the tree. Patch was tested on following architectures: alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390 Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Oct 14, 2007
-
-
Sam Ravnborg authored
The variable CFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. On top of that several people over time has asked for a way to pass in additional flags to gcc. This patch replace use of CFLAGS with KBUILD_CFLAGS all over the tree and enabling one to use: make CFLAGS=... to specify additional gcc commandline options. One usecase is when trying to find gcc bugs but other use cases has been requested too. Patch was tested on following architectures: alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k Test was simple to do a defconfig build, apply the patch and check that nothing got rebuild. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Oct 12, 2007
-
-
Sam Ravnborg authored
EXTRA_ARFLAGS have never been used so no need to carry around on this. A google search did not reveal any external module using this either. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Sam Ravnborg authored
Small error had sneaked in with respect to use of LDFLAGS_$@. LDFLAGS_$@ is not valid in normal kbuild files so do not say so. Fix a reference bug too. Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Aug 11, 2007
-
-
Jarek Poplawski authored
A warning note from Sam Ravnborg about kconfig's select evilness, dependencies and the future (slightly corrected). Signed-off-by:
Jarek Poplawski <jarkao2@o2.pl> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- Jul 16, 2007
-
-
Sam Ravnborg authored
Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- May 02, 2007
-
-
Anton Blanchard authored
The Makefile fragment in Documentation/kbuild/modules.txt looks to be missing some braces. Signed-off-by:
Anton Blanchard <anton@samba.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Feb 17, 2007
-
-
Randy Dunlap authored
Fix typos/spellos in kbuild/makefiles.txt. Signed-off-by:
Randy Dunlap <rdunlap@xenotime.net> Signed-off-by:
Adrian Bunk <bunk@stusta.de>
-
- Dec 12, 2006
-
-
Robert P. J. Day authored
Standardize the miniscule percentage of occurrences of "depends" in Kconfig files to "depends on", and update kconfig-language.txt to reflect that. Signed-off-by:
Robert P. J. Day <rpjday@mindspring.com> Signed-off-by:
Adrian Bunk <bunk@stusta.de>
-