18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Makefile for the linux kernel.
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciccflags-y := -fno-function-sections -fno-data-sections
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciobj-y                          := main.o version.o mounts.o
98c2ecf20Sopenharmony_ciifneq ($(CONFIG_BLK_DEV_INITRD),y)
108c2ecf20Sopenharmony_ciobj-y                          += noinitramfs.o
118c2ecf20Sopenharmony_cielse
128c2ecf20Sopenharmony_ciobj-$(CONFIG_BLK_DEV_INITRD)   += initramfs.o
138c2ecf20Sopenharmony_ciendif
148c2ecf20Sopenharmony_ciobj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciobj-y                          += init_task.o
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cimounts-y			:= do_mounts.o
198c2ecf20Sopenharmony_cimounts-$(CONFIG_BLK_DEV_RAM)	+= do_mounts_rd.o
208c2ecf20Sopenharmony_cimounts-$(CONFIG_BLK_DEV_INITRD)	+= do_mounts_initrd.o
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci# dependencies on generated files need to be listed explicitly
238c2ecf20Sopenharmony_ci$(obj)/version.o: include/generated/compile.h
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci# compile.h changes depending on hostname, generation number, etc,
268c2ecf20Sopenharmony_ci# so we regenerate it always.
278c2ecf20Sopenharmony_ci# mkcompile_h will make sure to only update the
288c2ecf20Sopenharmony_ci# actual file if its content has changed.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci       chk_compile.h = :
318c2ecf20Sopenharmony_ci quiet_chk_compile.h = echo '  CHK     $@'
328c2ecf20Sopenharmony_cisilent_chk_compile.h = :
338c2ecf20Sopenharmony_ciinclude/generated/compile.h: FORCE
348c2ecf20Sopenharmony_ci	@$($(quiet)chk_compile.h)
358c2ecf20Sopenharmony_ci	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@	\
368c2ecf20Sopenharmony_ci	"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)"	\
378c2ecf20Sopenharmony_ci	"$(CONFIG_PREEMPT_RT)" $(CONFIG_CC_VERSION_TEXT) "$(LD)"
38