Makefile (36302685f59345959de96d0d70a5ad20a3a3451b) | Makefile (b2d35fa5fc80c27e868e393dcab4c94a0d71737f) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2VERSION = 4 3PATCHLEVEL = 19 4SUBLEVEL = 0 | 1# SPDX-License-Identifier: GPL-2.0 2VERSION = 4 3PATCHLEVEL = 19 4SUBLEVEL = 0 |
5EXTRAVERSION = -rc2 | 5EXTRAVERSION = -rc1 |
6NAME = Merciless Moray 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 --- 280 unchanged lines hidden (view full) --- 294scripts/Kbuild.include: ; 295include scripts/Kbuild.include 296 297# Read KERNELRELEASE from include/config/kernel.release (if it exists) 298KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) 299KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) 300export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION 301 | 6NAME = Merciless Moray 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 --- 280 unchanged lines hidden (view full) --- 294scripts/Kbuild.include: ; 295include scripts/Kbuild.include 296 297# Read KERNELRELEASE from include/config/kernel.release (if it exists) 298KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) 299KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) 300export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION 301 |
302# SUBARCH tells the usermode build what the underlying arch is. That is set 303# first, and if a usermode build is happening, the "ARCH=um" on the command 304# line overrides the setting of ARCH below. If a native build is happening, 305# then ARCH is assigned, getting whatever value it gets normally, and 306# SUBARCH is subsequently ignored. | 302include scripts/subarch.include |
307 | 303 |
308SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ 309 -e s/sun4u/sparc64/ \ 310 -e s/arm.*/arm/ -e s/sa110/arm/ \ 311 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 312 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 313 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 314 -e s/riscv.*/riscv/) 315 | |
316# Cross compiling and selecting different set of gcc/bin-utils 317# --------------------------------------------------------------------------- 318# 319# When performing cross compilation for other architectures ARCH shall be set 320# to the target architecture. (See arch/* for the possibilities). 321# ARCH can be set during invocation of make: 322# make ARCH=ia64 323# Another way is to have ARCH set in the environment. --- 478 unchanged lines hidden (view full) --- 802NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) 803 804# warn about C99 declaration after statement 805KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) 806 807# disable pointer signed / unsigned warnings in gcc 4.0 808KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) 809 | 304# Cross compiling and selecting different set of gcc/bin-utils 305# --------------------------------------------------------------------------- 306# 307# When performing cross compilation for other architectures ARCH shall be set 308# to the target architecture. (See arch/* for the possibilities). 309# ARCH can be set during invocation of make: 310# make ARCH=ia64 311# Another way is to have ARCH set in the environment. --- 478 unchanged lines hidden (view full) --- 790NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) 791 792# warn about C99 declaration after statement 793KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) 794 795# disable pointer signed / unsigned warnings in gcc 4.0 796KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) 797 |
810# disable stringop warnings in gcc 8+ 811KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) 812 | |
813# disable invalid "can't wrap" optimizations for signed / pointers 814KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) 815 816# clang sets -fmerge-all-constants by default as optimization, but this 817# is non-conforming behavior for C and in fact breaks the kernel, so we 818# need to disable it here generally. 819KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants) 820 --- 922 unchanged lines hidden --- | 798# disable invalid "can't wrap" optimizations for signed / pointers 799KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) 800 801# clang sets -fmerge-all-constants by default as optimization, but this 802# is non-conforming behavior for C and in fact breaks the kernel, so we 803# need to disable it here generally. 804KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants) 805 --- 922 unchanged lines hidden --- |