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

Makefile

Blame
  • Makefile 62.87 KiB
    # SPDX-License-Identifier: GPL-2.0
    VERSION = 5
    PATCHLEVEL = 11
    SUBLEVEL = 0
    EXTRAVERSION = -rc5
    NAME = Kleptomaniac Octopus
    
    # *DOCUMENTATION*
    # To see a list of typical targets execute "make help"
    # More info can be located in ./README
    # Comments in this file are targeted only to the developer, do not
    # expect to learn how to build the kernel reading this file.
    
    $(if $(filter __%, $(MAKECMDGOALS)), \
    	$(error targets prefixed with '__' are only for internal use))
    
    # That's our default target when none is given on the command line
    PHONY := __all
    __all:
    
    # We are using a recursive build, so we need to do a little thinking
    # to get the ordering right.
    #
    # Most importantly: sub-Makefiles should only ever modify files in
    # their own directory. If in some directory we have a dependency on
    # a file in another dir (which doesn't happen often, but it's often
    # unavoidable when linking the built-in.a targets which finally
    # turn into vmlinux), we will call a sub make in that other dir, and
    # after that we are sure that everything which is in that other dir
    # is now up to date.
    #
    # The only cases where we need to modify files which have global
    # effects are thus separated out and done before the recursive
    # descending is started. They are now explicitly listed as the
    # prepare rule.
    
    ifneq ($(sub_make_done),1)
    
    # Do not use make's built-in rules and variables
    # (this increases performance and avoids hard-to-debug behaviour)
    MAKEFLAGS += -rR
    
    # Avoid funny character set dependencies
    unexport LC_ALL
    LC_COLLATE=C
    LC_NUMERIC=C
    export LC_COLLATE LC_NUMERIC
    
    # Avoid interference with shell env settings
    unexport GREP_OPTIONS
    
    # Beautify output
    # ---------------------------------------------------------------------------
    #
    # Normally, we echo the whole command before executing it. By making
    # that echo $($(quiet)$(cmd)), we now have the possibility to set
    # $(quiet) to choose other forms of output instead, e.g.
    #
    #         quiet_cmd_cc_o_c = Compiling $(RELDIR)/$@
    #         cmd_cc_o_c       = $(CC) $(c_flags) -c -o $@ $<
    #
    # If $(quiet) is empty, the whole command will be printed.
    # If it is set to "quiet_", only the short version will be printed.
    # If it is set to "silent_", nothing will be printed at all, since
    # the variable $(silent_cmd_cc_o_c) doesn't exist.
    #
    # A simple variant is to prefix commands with $(Q) - that's useful
    # for commands that shall be hidden in non-verbose mode.
    #
    #	$(Q)ln $@ :<