- 14 10月, 2015 16 次提交
-
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Boris Barbulovski 提交于
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: NThiago Macieira <thiago.macieira@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 08 10月, 2015 1 次提交
-
-
由 Luis R. Rodriguez 提交于
Recursive dependency issues with kconfig are unavoidable due to some limitations with kconfig, since these issues are recurring provide a hint to the user how they can resolve these dependency issues and also document why such limitation exists. While at it also document a bit of future prospects of ways to enhance Kconfig, including providing formal semantics and evaluation of use of a SAT solver. If you're interested in this work or prospects of it check out the kconfig-sat project wiki [0] and mailing list [1]. [0] http://kernelnewbies.org/KernelProjects/kconfig-sat [1] https://groups.google.com/d/forum/kconfig-sat Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: James Bottomley <jbottomley@odin.com> Cc: Josh Triplett <josh@joshtriplett.org> Cc: Paul Bolle <pebolle@tiscali.nl> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Takashi Iwai <tiwai@suse.de> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Mate Soos <soos.mate@gmail.com> Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 20 8月, 2015 1 次提交
-
-
由 Sam Bobroff 提交于
Add a check for the existence of input files and exit (with failure) if they are missing. Without this additional check, missing files produce error messages but still result in an output file being generated and a successful exit code. Signed-off-by: NSam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 19 8月, 2015 3 次提交
-
-
由 Andreas Ruprecht 提交于
Update the shipped files generated by flex and gperf to support the explicit use of "---help---" and to emit warnings for unsupported characters on COMMAND tokens. As I could not find out which flex/gperf version was used to generate the previous version, I used flex 2.5.35 and gperf 3.0.4 from Ubuntu 14.04 - this also leads to the big number of changed lines in this patch. Signed-off-by: NAndreas Ruprecht <andreas.ruprecht@fau.de> Reviewed-by: NUlf Magnusson <ulfalizer@gmail.com> Tested-by: NUlf Magnusson <ulfalizer@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Andreas Ruprecht 提交于
In Kconfig, definitions of options take the following form: "<COMMAND> <PARAM> <PARAM> ...". COMMANDs and PARAMs are treated slightly different by the underlying parser. While commit 2e0d737f ("kconfig: don't silently ignore unhandled characters") introduced a warning for unsupported characters around PARAMs, it does not cover situations where a COMMAND has additional characters before it. This change makes Kconfig emit a warning if superfluous characters are found before COMMANDs. As the 'help' statement sometimes is written as '---help---', the '-' character would now also be regarded as unhandled and generate a warning. To avoid that, '-' is added to the list of allowed characters, and the token '---help---' is included in the zconf.gperf file. Reported-by: NValentin Rothberg <valentinrothberg@gmail.com> Signed-off-by: NAndreas Ruprecht <andreas.ruprecht@fau.de> Reviewed-by: NUlf Magnusson <ulfalizer@gmail.com> Tested-by: NUlf Magnusson <ulfalizer@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Markus Elfring 提交于
The sym_calc_value() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 12 8月, 2015 1 次提交
-
-
由 Richard Weinberger 提交于
In kbuild it is allowed to define objects in files named "Makefile" and "Kbuild". Currently localmodconfig reads objects only from "Makefile"s and misses modules like nouveau. Link: http://lkml.kernel.org/r/1437948415-16290-1-git-send-email-richard@nod.at Cc: stable@vger.kernel.org Reported-and-tested-by: NLeonidas Spyropoulos <artafinde@gmail.com> Signed-off-by: NRichard Weinberger <richard@nod.at> Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
-
- 16 6月, 2015 2 次提交
-
-
由 Luis R. Rodriguez 提交于
This lets you build a kernel which can support xen dom0 or xen guests on i386, x86-64 and arm64 by just using: make xenconfig You can start from an allnoconfig and then switch to xenconfig. This also splits out the options which are available currently to be built with x86 and 'make ARCH=arm64' under a shared config. Technically xen supports a dom0 kernel and also a guest kernel configuration but upon review with the xen team since we don't have many dom0 options its best to just combine these two into one. A few generic notes: we enable both of these: CONFIG_INET=y CONFIG_BINFMT_ELF=y although technically not required given you likely will end up with a pretty useless system otherwise. A few architectural differences worth noting: $ make allnoconfig; make xenconfig > /dev/null ; \ grep XEN .config > 64-bit-config $ make ARCH=i386 allnoconfig; make ARCH=i386 xenconfig > /dev/null; \ grep XEN .config > 32-bit-config $ make ARCH=arm64 allnoconfig; make ARCH=arm64 xenconfig > /dev/null; \ grep XEN .config > arm64-config Since the options are already split up with a generic config and architecture specific configs you anything on the x86 configs are known to only work right now on x86. For instance arm64 doesn't support MEMORY_HOTPLUG yet as such although we try to enabe it generically arm64 doesn't have it yet, so we leave the xen specific kconfig option XEN_BALLOON_MEMORY_HOTPLUG on x86's config file to set expecations correctly. Then on x86 we have differences between i386 and x86-64. The difference between 64-bit-config and 32-bit-config is you don't get XEN_MCE_LOG as this is only supported on 64-bit. You also do not get on i386 XEN_BALLOON_MEMORY_HOTPLUG, there does not seem to be any technical reasons to not allow this but I gave up after a few attempts. Cc: Josh Triplett <josh@joshtriplett.org> Cc: Borislav Petkov <bp@suse.de> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Michal Marek <mmarek@suse.cz> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: penberg@kernel.org Cc: levinsasha928@gmail.com Cc: mtosatti@redhat.com Cc: fengguang.wu@intel.com Cc: David Vrabel <david.vrabel@citrix.com> Cc: Ian Campbell <Ian.Campbell@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: xen-devel@lists.xenproject.org Acked-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: NJulien Grall <julien.grall@linaro.org> Acked-by: NMichal Marek <mmarek@suse.cz> Acked-by: NDavid Rientjes <rientjes@google.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com> Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
-
由 Luis R. Rodriguez 提交于
We'll be adding options for xen as well. Cc: Josh Triplett <josh@joshtriplett.org> Cc: Borislav Petkov <bp@suse.de> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Michal Marek <mmarek@suse.cz> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: penberg@kernel.org Cc: levinsasha928@gmail.com Cc: mtosatti@redhat.com Cc: fengguang.wu@intel.com Cc: David Vrabel <david.vrabel@citrix.com> Cc: Ian Campbell <Ian.Campbell@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: xen-devel@lists.xenproject.org Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Acked-by: NDavid Rientjes <rientjes@google.com> Acked-by: NBorislav Petkov <bp@suse.de> Acked-by: NMichal Marek <mmarek@suse.cz> Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com> Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
-
- 15 6月, 2015 2 次提交
-
-
由 Jan Beulich 提交于
Signed-off-by: NJan Beulich <jbeulich@suse.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Jan Beulich 提交于
Over the years I found it desirable to be able to use all sorts of relations, not just (in)equality. And apparently I'm not the only one, as there's at least one example in the tree where the programmer assumed this would work (see DEBUG_UART_8250_WORD in arch/arm/Kconfig.debug). Another possible use would e.g. be to fold the two SMP/NR_CPUS prompts into one: SMP could be promptless, simply depending on NR_CPUS > 1. A (desirable) side effect of this change - resulting from numeric values now necessarily being compared as numbers rather than as strings - is that comparing hex values now works as expected: Other than int ones (which aren't allowed to have leading zeroes), zeroes following the 0x prefix made them compare unequal even if their values were equal. Signed-off-by: NJan Beulich <jbeulich@suse.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 11 6月, 2015 1 次提交
-
-
由 Jan Beulich 提交于
At the very least we should tell people that what they wrote is not what the utility understands. Signed-off-by: NJan Beulich <jbeulich@suse.com> Acked-by: NPaul Bolle <pebolle@tiscali.nl> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 04 6月, 2015 1 次提交
-
-
由 Geert Uytterhoeven 提交于
Some "make help" text lines extend beyond 80 characters. Wrap them at 79 characters. Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 03 6月, 2015 1 次提交
-
-
由 Diego Viola 提交于
Signed-off-by: NDiego Viola <diego.viola@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 28 5月, 2015 1 次提交
-
-
由 Diego Viola 提交于
Signed-off-by: NDiego Viola <diego.viola@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 25 5月, 2015 1 次提交
-
-
由 Martin Walch 提交于
expr_eliminate_dups2() in scripts/kconfig/expr.c applies two invalid inference rules: (FOO || BAR) && (!FOO && !BAR) -> n (FOO && BAR) || (!FOO || !BAR) -> y They would be correct in propositional logic, but this is a three-valued logic, and here it is wrong in that it changes semantics. It becomes immediately visible when assigning the value 1 to both, FOO and BAR: (FOO || BAR) && (!FOO && !BAR) -> min(max(1, 1), min(2-1, 2-1)) = min(1, 1) = 1 while n evaluates to 0 and (FOO && BAR) || (!FOO || !BAR) -> max(min(1, 1), max(2-1, 2-1)) = max(1, 1) = 1 with y evaluating to 2. Fix it by removing expr_eliminate_dups2() and the functions that have no use anywhere else: expr_extract_eq_and(), expr_extract_eq_or(), and expr_extract_eq() from scripts/kconfig/expr.c Currently the bug is not triggered in mainline, so this patch does not modify the configuration space there. To observe the bug consider this example: config MODULES def_bool y option modules config FOO def_tristate m config BAR def_tristate m config TEST1 def_tristate y depends on (FOO || BAR) && (!FOO && !BAR) if TEST1 = n comment "TEST1 broken" endif config TEST2 def_tristate y depends on (FOO && BAR) || (!FOO || !BAR) if TEST2 = y comment "TEST2 broken" endif config TEST3 def_tristate y depends on m && !m if TEST3 = n comment "TEST3 broken" endif TEST1, TEST2 and TEST3 should all evaluate to m, but without the patch, none of them does. It is probably not obvious that TEST3 is the same bug, but it becomes clear when considering what happens internally to the expression m && !m": First it expands to (m && MODULES) && !(m && MODULES), then it is transformed into (m && MODULES) && (!m || !MODULES), and finally due to the bug it is replaced with n. As a side effect, this patch reduces code size in expr.c by roughly 10% and slightly improves startup time for all configuration frontends. Signed-off-by: NMartin Walch <walch.martin@web.de> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 09 4月, 2015 1 次提交
-
-
由 Michal Marek 提交于
Add an -s option to the various frontends and pass it when make -s is used. Also, use $(kecho) instead of @echo in the Makefile. Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 08 4月, 2015 1 次提交
-
-
由 Michal Marek 提交于
Use a single rule for targets handled directly by the conf program. Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 24 3月, 2015 6 次提交
-
-
由 Masahiro Yamada 提交于
"scripts/kconfig/merge_config.sh && make oldconfig" works well enough for merging local config fragments, but Kbuild currently has the entry points only for "kvmconfig" and "tinyconfig". This commit provides the generic target for mergeconfig, so we can manage our own config fragments easily: put "foo.config" in arch/$(SRCARCH)/configs/ or kernel/configs/, and then run "make foo.config". Now "make kvmconfig" is just a shorthand of "make kvm_guest.config". Likewise, "make tinyconfig" is equivalent to "make allnoconfig tiny.config". Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Masahiro Yamada 提交于
The variable "MAKE" is used to store the command name that has invoked the Makefile. (Actually, it is already set to "make" if you run this script from a Makefile.) In this script, however, it is used to determine if Make should be run or not. It is not what we usually expect. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Masahiro Yamada 提交于
It is true that we do not want to move the code too far to the right, but something like below is not preferred: if [ "x$PREV_VAL" != "x$NEW_VAL" ] ; then echo Value of $CFG is redefined by fragment $MERGE_FILE: echo Previous value: $PREV_VAL echo New value: $NEW_VAL echo elif [ "$WARNREDUN" = "true" ]; then echo Value of $CFG is redundant by fragment $MERGE_FILE: fi To fix this, call "continue" if the "grep" command fails to find the given CONFIG. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Masahiro Yamada 提交于
Kbuild always runs in $(objtree). Actually, $(objtree) is always set to "." by the top-level Makefile. We can omit "-O $(objtree)" and "$(objtree)/". Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Masahiro Yamada 提交于
Currently, "make tinyconfig" does not work with "-j" option. $ make mrproper $ make -j8 tinyconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --allnoconfig Kconfig # # configuration written to .config # scripts/kconfig/Makefile:122: *** You need an existing .config for this target. Stop. make: *** [tinyconfig] Error 2 As shown above, "allnoconfig" has created the .config file before mergeconfig is called, but Make still raises a false alarm because of some sort of race condition. We can fix this issue by moving the error check to the shell script. Anyway, scripts/kconfig/merge_config.sh always requires an existing .config as a base file. It is reasonable to check its existence in the shell script. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Masahiro Yamada 提交于
If "make kvmconfig" is run with "-j" option, a warning message, "jobserver unavailable: using -j1. Add `+' to parent make rule.", is displayed. $ make -s defconfig *** Default configuration is based on 'x86_64_defconfig' # # configuration written to .config # $ make -j8 kvmconfig Using ./.config as base Merging ./arch/x86/configs/kvm_guest.config [ snip ] # # merged configuration written to ./.config (needs make) # make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. scripts/kconfig/conf --oldconfig Kconfig [ snip ] # # configuration written to .config # Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 25 2月, 2015 1 次提交
-
-
由 Michal Marek 提交于
Signed-off-by: NMichal Marek <mmarek@suse.cz>
-