Deleted Added
full compact
Makefile (7d2a07b7) Makefile (a82adfd5)
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 5
3PATCHLEVEL = 14
4SUBLEVEL = 0
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 5
3PATCHLEVEL = 14
4SUBLEVEL = 0
5EXTRAVERSION =
5EXTRAVERSION = -rc2
6NAME = Opossums on Parade
7
8# *DOCUMENTATION*
9# To see a list of typical targets execute "make help"
10# More info can be located in ./README
11# Comments in this file are targeted only to the developer, do not
12# expect to learn how to build the kernel reading this file.
13

--- 527 unchanged lines hidden (view full) ---

541
542# ===========================================================================
543# Rules shared between *config targets and build targets
544
545# Basic helpers built in scripts/basic/
546PHONY += scripts_basic
547scripts_basic:
548 $(Q)$(MAKE) $(build)=scripts/basic
6NAME = Opossums on Parade
7
8# *DOCUMENTATION*
9# To see a list of typical targets execute "make help"
10# More info can be located in ./README
11# Comments in this file are targeted only to the developer, do not
12# expect to learn how to build the kernel reading this file.
13

--- 527 unchanged lines hidden (view full) ---

541
542# ===========================================================================
543# Rules shared between *config targets and build targets
544
545# Basic helpers built in scripts/basic/
546PHONY += scripts_basic
547scripts_basic:
548 $(Q)$(MAKE) $(build)=scripts/basic
549 $(Q)rm -f .tmp_quiet_recordmcount
549
550PHONY += outputmakefile
551ifdef building_out_of_srctree
552# Before starting out-of-tree build, make sure the source tree is clean.
553# outputmakefile generates a Makefile in the output directory, if using a
554# separate output directory. This allows convenient use of make in the
555# output directory.
556# At the same time when output Makefile generated, generate .gitignore to

--- 279 unchanged lines hidden (view full) ---

836KBUILD_CFLAGS += -ftrivial-auto-var-init=zero
837KBUILD_CFLAGS += -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
838endif
839
840# While VLAs have been removed, GCC produces unreachable stack probes
841# for the randomize_kstack_offset feature. Disable it for all compilers.
842KBUILD_CFLAGS += $(call cc-option, -fno-stack-clash-protection)
843
550
551PHONY += outputmakefile
552ifdef building_out_of_srctree
553# Before starting out-of-tree build, make sure the source tree is clean.
554# outputmakefile generates a Makefile in the output directory, if using a
555# separate output directory. This allows convenient use of make in the
556# output directory.
557# At the same time when output Makefile generated, generate .gitignore to

--- 279 unchanged lines hidden (view full) ---

837KBUILD_CFLAGS += -ftrivial-auto-var-init=zero
838KBUILD_CFLAGS += -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
839endif
840
841# While VLAs have been removed, GCC produces unreachable stack probes
842# for the randomize_kstack_offset feature. Disable it for all compilers.
843KBUILD_CFLAGS += $(call cc-option, -fno-stack-clash-protection)
844
845# Clear used registers at func exit (to reduce data lifetime and ROP gadgets).
846ifdef CONFIG_ZERO_CALL_USED_REGS
847KBUILD_CFLAGS += -fzero-call-used-regs=used-gpr
848endif
849
844DEBUG_CFLAGS :=
845
846# Workaround for GCC versions < 5.0
847# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61801
848ifdef CONFIG_CC_IS_GCC
849DEBUG_CFLAGS += $(call cc-ifversion, -lt, 0500, $(call cc-option, -fno-var-tracking-assignments))
850endif
851

--- 460 unchanged lines hidden (view full) ---

1312prepare: headers
1313endif
1314
1315PHONY += scripts_unifdef
1316scripts_unifdef: scripts_basic
1317 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1318
1319# ---------------------------------------------------------------------------
850DEBUG_CFLAGS :=
851
852# Workaround for GCC versions < 5.0
853# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61801
854ifdef CONFIG_CC_IS_GCC
855DEBUG_CFLAGS += $(call cc-ifversion, -lt, 0500, $(call cc-option, -fno-var-tracking-assignments))
856endif
857

--- 460 unchanged lines hidden (view full) ---

1318prepare: headers
1319endif
1320
1321PHONY += scripts_unifdef
1322scripts_unifdef: scripts_basic
1323 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1324
1325# ---------------------------------------------------------------------------
1320# Install
1321
1322# Many distributions have the custom install script, /sbin/installkernel.
1323# If DKMS is installed, 'make install' will eventually recuses back
1324# to the this Makefile to build and install external modules.
1325# Cancel sub_make_done so that options such as M=, V=, etc. are parsed.
1326
1327install: sub_make_done :=
1328
1329# ---------------------------------------------------------------------------
1330# Tools
1331
1332ifdef CONFIG_STACK_VALIDATION
1333prepare: tools/objtool
1334endif
1335
1336ifdef CONFIG_BPF
1337ifdef CONFIG_DEBUG_INFO_BTF

--- 646 unchanged lines hidden ---
1326# Tools
1327
1328ifdef CONFIG_STACK_VALIDATION
1329prepare: tools/objtool
1330endif
1331
1332ifdef CONFIG_BPF
1333ifdef CONFIG_DEBUG_INFO_BTF

--- 646 unchanged lines hidden ---