## Kbuild for top-level directory of the kernel# This file takes care of the following:# 1) Generate bounds.h# 2) Generate asm-offsets.h (may need bounds.h)# 3) Check for missing system calls# Default sed regexp - multiline due to syntax constraintsdefine sed-y"/^->/{s:->#\(.*\):/* 1円 */:; \s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define 1円 2円 /* 3円 */:; \s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define 1円 2円 /* 3円 */:; \s:->::; p;}"endefquiet_cmd_offsets = GEN $@define cmd_offsets(set -e; \echo "#ifndef 2ドル"; \echo "#define 2ドル"; \echo "/*"; \echo " * DO NOT MODIFY."; \echo " *"; \echo " * This file was generated by Kbuild"; \echo " */"; \echo ""; \sed -ne $(sed-y) $<; \echo ""; \echo "#endif" ) > $@endef###### 1) Generate bounds.hbounds-file := include/generated/bounds.halways := $(bounds-file)targets := $(bounds-file) kernel/bounds.s# We use internal kbuild rules to avoid the "is up to date" message from makekernel/bounds.s: kernel/bounds.c FORCE$(Q)mkdir -p $(dir $@)$(call if_changed_dep,cc_s_c)$(obj)/$(bounds-file): kernel/bounds.s Kbuild$(Q)mkdir -p $(dir $@)$(call cmd,offsets,__LINUX_BOUNDS_H__)###### 2) Generate asm-offsets.h#offsets-file := include/generated/asm-offsets.halways += $(offsets-file)targets += $(offsets-file)targets += arch/$(SRCARCH)/kernel/asm-offsets.s# We use internal kbuild rules to avoid the "is up to date" message from makearch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \$(obj)/$(bounds-file) FORCE$(Q)mkdir -p $(dir $@)$(call if_changed_dep,cc_s_c)$(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild$(call cmd,offsets,__ASM_OFFSETS_H__)###### 3) Check for missing system calls#always += missing-syscallstargets += missing-syscallsquiet_cmd_syscalls = CALL $<cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags) $(missing_syscalls_flags)missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE$(call cmd,syscalls)# Keep these two files during make cleanno-clean-files := $(bounds-file) $(offsets-file)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。