Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
Makefile
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263# SPDX-License-Identifier: GPL-2.0## Makefile for the linux kernel.#
ccflags-y := -fno-function-sections -fno-data-sections
obj-y := main.o version.o mounts.oifneq ($(CONFIG_BLK_DEV_INITRD),y)obj-y += noinitramfs.oelseobj-$(CONFIG_BLK_DEV_INITRD) += initramfs.oendifobj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.oobj-$(CONFIG_INITRAMFS_TEST) += initramfs_test.o
obj-y += init_task.o
mounts-y := do_mounts.omounts-$(CONFIG_BLK_DEV_RAM) += do_mounts_rd.omounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
## UTS_VERSION#
smp-flag-$(CONFIG_SMP) := SMPpreempt-flag-$(CONFIG_PREEMPT_BUILD) := PREEMPTpreempt-flag-$(CONFIG_PREEMPT_DYNAMIC) := PREEMPT_DYNAMICpreempt-flag-$(CONFIG_PREEMPT_RT) := PREEMPT_RT
build-version = $(or $(KBUILD_BUILD_VERSION), $(build-version-auto))build-timestamp = $(or $(KBUILD_BUILD_TIMESTAMP), $(build-timestamp-auto))
# Maximum length of UTS_VERSION is 64 charsfilechk_uts_version = \ utsver=$$(echo '$(pound)'"$(build-version)" $(smp-flag-y) $(preempt-flag-y) "$(build-timestamp)" | cut -b -64); \ echo '$(pound)'define UTS_VERSION \""$${utsver}"\"
## Build version.c with temporary UTS_VERSION#
$(obj)/utsversion-tmp.h: FORCE $(call filechk,uts_version)
clean-files += utsversion-tmp.h
$(obj)/version.o: $(obj)/utsversion-tmp.hCFLAGS_version.o := -include $(obj)/utsversion-tmp.h
## Build version-timestamp.c with final UTS_VERSION#
include/generated/utsversion.h: build-version-auto = $(shell $(srctree)/scripts/build-version)include/generated/utsversion.h: build-timestamp-auto = $(shell LC_ALL=C date)include/generated/utsversion.h: FORCE $(call filechk,uts_version)
$(obj)/version-timestamp.o: include/generated/utsversion.hCFLAGS_version-timestamp.o := -include include/generated/utsversion.h