Skip to content
Snippets Groups Projects
Select Git revision
  • bpftask
  • bpf-spectre default protected
  • bpf-spectre-baseline
  • pkt-ptr-revert-v1
  • v6.5-rc6-bpf-spectre-nospec
  • master
  • spectector-bpf
  • bpftask-no-unused-args
  • bpftask-master
  • v5.9-bpftask
  • v5.8-amd-17h-em protected
  • v5.8-amd-17h-eas protected
  • freqinv-amd3950x-v5.8
  • v5.8-scale-inv-acc-amd-ryzen-3950x
  • 23186e43-amd-17h-eas protected
  • caffb99b6929-perf-x86-rapl-Enable-RAPL-for-AMD-Fam17h
  • 6a9ee74800a1-amd-17h-eas protected
  • add2fae34926-amd_17h_em
  • 3643c88e5545-Add-support-for-frequency-invariance-for-some-x86
  • 0d8e630a1e14-CPPC-optional-registers-AMD-support
  • v5.7-rc6
21 results

Kconfig

Blame
    • Masahiro Yamada's avatar
      8b59cd81
      kbuild: ensure full rebuild when the compiler is updated · 8b59cd81
      Masahiro Yamada authored
      
      Commit 21c54b77 ("kconfig: show compiler version text in the top
      comment") added the environment variable, CC_VERSION_TEXT in the comment
      of the top Kconfig file. It can detect the compiler update, and invoke
      the syncconfig because all environment variables referenced in Kconfig
      files are recorded in include/config/auto.conf.cmd
      
      This commit makes it a CONFIG option in order to ensure the full rebuild
      when the compiler is updated.
      
      This works like follows:
      
      include/config/kconfig.h contains "CONFIG_CC_VERSION_TEXT" in the comment
      block.
      
      The top Makefile specifies "-include $(srctree)/include/linux/kconfig.h"
      to guarantee it is included from all kernel source files.
      
      fixdep parses every source file and all headers included from it,
      searching for words prefixed with "CONFIG_". Then, fixdep finds
      CONFIG_CC_VERSION_TEXT in include/config/kconfig.h and adds
      include/config/cc/version/text.h into every .*.cmd file.
      
      When the compiler is updated, syncconfig is invoked because init/Kconfig
      contains the reference to the environment variable CC_VERTION_TEXT.
      CONFIG_CC_VERSION_TEXT is updated to the new version string, and
      include/config/cc/version/text.h is touched.
      
      In the next rebuild, Make will rebuild every files since the timestamp
      of include/config/cc/version/text.h is newer than that of target.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      8b59cd81
      History
      kbuild: ensure full rebuild when the compiler is updated
      Masahiro Yamada authored
      
      Commit 21c54b77 ("kconfig: show compiler version text in the top
      comment") added the environment variable, CC_VERSION_TEXT in the comment
      of the top Kconfig file. It can detect the compiler update, and invoke
      the syncconfig because all environment variables referenced in Kconfig
      files are recorded in include/config/auto.conf.cmd
      
      This commit makes it a CONFIG option in order to ensure the full rebuild
      when the compiler is updated.
      
      This works like follows:
      
      include/config/kconfig.h contains "CONFIG_CC_VERSION_TEXT" in the comment
      block.
      
      The top Makefile specifies "-include $(srctree)/include/linux/kconfig.h"
      to guarantee it is included from all kernel source files.
      
      fixdep parses every source file and all headers included from it,
      searching for words prefixed with "CONFIG_". Then, fixdep finds
      CONFIG_CC_VERSION_TEXT in include/config/kconfig.h and adds
      include/config/cc/version/text.h into every .*.cmd file.
      
      When the compiler is updated, syncconfig is invoked because init/Kconfig
      contains the reference to the environment variable CC_VERTION_TEXT.
      CONFIG_CC_VERSION_TEXT is updated to the new version string, and
      include/config/cc/version/text.h is touched.
      
      In the next rebuild, Make will rebuild every files since the timestamp
      of include/config/cc/version/text.h is newer than that of target.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Kconfig 555 B
    # SPDX-License-Identifier: GPL-2.0
    #
    # For a description of the syntax of this configuration file,
    # see Documentation/kbuild/kconfig-language.rst.
    #
    mainmenu "Linux/$(ARCH) $(KERNELVERSION) Kernel Configuration"
    
    source "scripts/Kconfig.include"
    
    source "init/Kconfig"
    
    source "kernel/Kconfig.freezer"
    
    source "fs/Kconfig.binfmt"
    
    source "mm/Kconfig"
    
    source "net/Kconfig"
    
    source "drivers/Kconfig"
    
    source "fs/Kconfig"
    
    source "security/Kconfig"
    
    source "crypto/Kconfig"
    
    source "lib/Kconfig"
    
    source "lib/Kconfig.debug"
    
    source "Documentation/Kconfig"