1. 03 11月, 2015 1 次提交
  2. 15 10月, 2015 1 次提交
    • M
      scripts/kconfig/Makefile: Fix KBUILD_DEFCONFIG check when building with O= · bd960f09
      Michael Ellerman 提交于
      My recent commit d2036f30 ("scripts/kconfig/Makefile: Allow
      KBUILD_DEFCONFIG to be a target"), contained a bug in that when it
      checks if KBUILD_DEFCONFIG is a file it forgets to prepend $(srctree) to
      the path.
      
      This causes the build to fail when building out of tree (with O=), and
      when the value of KBUILD_DEFCONFIG is 'defconfig'. In that case we will
      fail to find the 'defconfig' file, because we look in the build
      directory not $(srctree), and so we will call Make again with
      'defconfig' as the target. From there we loop infinitely calling 'make
      defconfig' again and again.
      
      The fix is simple, we need to look for the file under $(srctree).
      
      Fixes: d2036f30 ("scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target")
      Reported-by: NOlof Johansson <olof@lixom.net>
      Acked-by: NMichal Marek <mmarek@suse.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      bd960f09
  3. 14 10月, 2015 2 次提交
  4. 01 10月, 2015 1 次提交
    • M
      scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target · d2036f30
      Michael Ellerman 提交于
      Arch Makefiles can set KBUILD_DEFCONFIG to tell kbuild the name of the
      defconfig that should be built by default.
      
      However currently there is an assumption that KBUILD_DEFCONFIG points to
      a file at arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG).
      
      We would like to use a target, using merge_config, as our defconfig, so
      adapt the logic in scripts/kconfig/Makefile to allow that.
      
      To minimise the chance of breaking anything, we first check if
      KBUILD_DEFCONFIG is a file, and if so we do the old logic. If it's not a
      file, then we call the top-level Makefile with KBUILD_DEFCONFIG as the
      target.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      Acked-by: NMichal Marek <mmarek@suse.com>
      d2036f30
  5. 16 6月, 2015 2 次提交
    • L
      kconfig: add xenconfig defconfig helper · 6c668505
      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>
      6c668505
    • L
      kconfig: clarify kvmconfig is for kvm · 9bcd776d
      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>
      9bcd776d
  6. 04 6月, 2015 1 次提交
  7. 03 6月, 2015 1 次提交
  8. 28 5月, 2015 1 次提交
  9. 09 4月, 2015 1 次提交
  10. 08 4月, 2015 1 次提交
  11. 24 3月, 2015 4 次提交
  12. 22 8月, 2014 1 次提交
  13. 19 8月, 2014 2 次提交
  14. 09 8月, 2014 2 次提交
    • J
      x86: Add "make tinyconfig" to configure the tiniest possible kernel · 0da1d4a0
      Josh Triplett 提交于
      Since commit 5d2acfc7 ("kconfig: make
      allnoconfig disable options behind EMBEDDED and EXPERT") in 3.15-rc1,
      "make allnoconfig" disables every possible config option.
      
      However, a few configuration options (CC_OPTIMIZE_FOR_SIZE,
      OPTIMIZE_INLINING) produce a smaller kernel when turned on, and a few
      choices exist (compression, highmem, allocator) for which a non-default
      option produces a smaller kernel.
      
      Add a "tinyconfig" option, which starts from allnoconfig and then sets
      these options to configure the tiniest possible kernel.  This provides a
      better baseline for embedded systems or efforts to reduce kernel size.
      Signed-off-by: NJosh Triplett <josh@joshtriplett.org>
      0da1d4a0
    • J
      x86, platform, kconfig: move kvmconfig functionality to a helper · 3aaefce1
      Josh Triplett 提交于
      The new mergeconfig helper makes it easier to add other partial
      configurations similar to kvmconfig.  Architecture-independent portions
      of those partial configurations should go in
      kernel/configs/${name}.config, and architecture-dependent portions
      should go in arch/${arch}/configs/${name}.config.
      
      Based on a patch by Luis R. Rodriguez <mcgrof@suse.com>.
      Originally-Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      
      Modified to make the helper name more general than just virtualization,
      support architecture-dependent and architecture-independent partial
      configurations, move the helper and kvmconfig to
      scripts/kconfig/Makefile, and factor out more of the common file path.
      Signed-off-by: NJosh Triplett <josh@joshtriplett.org>
      3aaefce1
  15. 10 6月, 2014 2 次提交
  16. 07 3月, 2013 1 次提交
  17. 21 12月, 2012 1 次提交
  18. 28 9月, 2012 1 次提交
  19. 26 7月, 2012 1 次提交
    • S
      kconfig: Document oldnoconfig to what it really does · 67d34a6a
      Steven Rostedt 提交于
      The make target 'oldnoconfig' is a misnomer. It doesn't set new symbols
      to 'n', but instead sets it to their default values.
      
      Unfortunately, assuming that it actually did this, broke ktest in some
      of its tests. For example, the tests to create a minimum config and even
      a config bisect, depends on removing various configs and using
      oldnoconfig to get rid of other configs that may have depended on it.
      
      But because some configs that it was trying to disable, were in fact
      default enabled, this caused those configs to re-enable and corrupt the
      test.
      
      I thought about fixing oldnoconfig, but I'm afraid that people are
      already dependent on its current behavior. Instead, I'm just updating
      the documentation to state that it sets the new symbols to their default
      values and not to 'n'.
      
      Ideally, this would be called, 'olddefconfig' and we have an
      'oldnoconfig' that actually disables the new symbols. But it's useless
      for me now. If it changed, ktest would need to be consistent between
      each version, and that would be to difficult to detect. I'll handle this
      issue with ktest with other means.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      67d34a6a
  20. 14 7月, 2012 1 次提交
  21. 13 7月, 2012 2 次提交
  22. 15 1月, 2012 1 次提交
  23. 19 12月, 2011 1 次提交
  24. 08 8月, 2011 3 次提交
  25. 10 6月, 2011 3 次提交
  26. 07 6月, 2011 2 次提交