Deleted Added
full compact
Makefile (a82adfd5) Makefile (5f6e0fe0)
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 = -rc2
5EXTRAVERSION =
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

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

399# Additional ARCH settings for sparc
400ifeq ($(ARCH),sparc32)
401 SRCARCH := sparc
402endif
403ifeq ($(ARCH),sparc64)
404 SRCARCH := sparc
405endif
406
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

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

399# Additional ARCH settings for sparc
400ifeq ($(ARCH),sparc32)
401 SRCARCH := sparc
402endif
403ifeq ($(ARCH),sparc64)
404 SRCARCH := sparc
405endif
406
407# Additional ARCH settings for parisc
408ifeq ($(ARCH),parisc64)
409 SRCARCH := parisc
410endif
411
407export cross_compiling :=
408ifneq ($(SRCARCH),$(SUBARCH))
409cross_compiling := 1
410endif
411
412KCONFIG_CONFIG ?= .config
413export KCONFIG_CONFIG
414

--- 126 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
412export cross_compiling :=
413ifneq ($(SRCARCH),$(SUBARCH))
414cross_compiling := 1
415endif
416
417KCONFIG_CONFIG ?= .config
418export KCONFIG_CONFIG
419

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

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

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

841KBUILD_CFLAGS += -ftrivial-auto-var-init=zero
842KBUILD_CFLAGS += -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
843endif
844
845# While VLAs have been removed, GCC produces unreachable stack probes
846# for the randomize_kstack_offset feature. Disable it for all compilers.
847KBUILD_CFLAGS += $(call cc-option, -fno-stack-clash-protection)
848
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
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# ---------------------------------------------------------------------------
849DEBUG_CFLAGS :=
850
851# Workaround for GCC versions < 5.0
852# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61801
853ifdef CONFIG_CC_IS_GCC
854DEBUG_CFLAGS += $(call cc-ifversion, -lt, 0500, $(call cc-option, -fno-var-tracking-assignments))
855endif
856

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

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

--- 646 unchanged lines hidden ---
1335# Tools
1336
1337ifdef CONFIG_STACK_VALIDATION
1338prepare: tools/objtool
1339endif
1340
1341ifdef CONFIG_BPF
1342ifdef CONFIG_DEBUG_INFO_BTF

--- 646 unchanged lines hidden ---