File tree 6 files changed +12
-26
lines changed
6 files changed +12
-26
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ timeconst-file := include/generated/timeconst.h
26
26
27
27
targets += $(timeconst-file )
28
28
29
- define filechk_gentimeconst
30
- echo $(CONFIG_HZ ) | bc -q $<
31
- endef
29
+ filechk_gentimeconst = echo $(CONFIG_HZ ) | bc -q $<
32
30
33
31
$(timeconst-file ) : kernel/time/timeconst.bc FORCE
34
32
$(call filechk,gentimeconst)
Original file line number Diff line number Diff line change @@ -1041,9 +1041,8 @@ PHONY += $(vmlinux-dirs)
1041
1041
$(vmlinux-dirs ) : prepare
1042
1042
$(Q )$(MAKE ) $(build ) =$@ need-builtin=1
1043
1043
1044
- define filechk_kernel.release
1044
+ filechk_kernel.release = \
1045
1045
echo "$(KERNELVERSION )$$($(CONFIG_SHELL ) $(srctree ) /scripts/setlocalversion $(srctree ) ) "
1046
- endef
1047
1046
1048
1047
# Store (new) KERNELRELEASE string in include/config/kernel.release
1049
1048
include/config/kernel.release : $(srctree ) /Makefile FORCE
Original file line number Diff line number Diff line change @@ -24,17 +24,11 @@ uapi: $(uapi-hdrs-y)
24
24
_dummy := $(shell [ -d '$(uapi ) ' ] || mkdir -p '$(uapi ) ') \
25
25
$(shell [ -d '$(kapi ) ' ] || mkdir -p '$(kapi ) ')
26
26
27
- define filechk_syshdr
28
- $(CONFIG_SHELL ) '$(systbl ) ' -H -a $(syshdr_abi_$(basetarget ) ) -f "$2" < $<
29
- endef
27
+ filechk_syshdr = $(CONFIG_SHELL ) '$(systbl ) ' -H -a $(syshdr_abi_$(basetarget ) ) -f "$2" < $<
30
28
31
- define filechk_sysnr
32
- $(CONFIG_SHELL ) '$(systbl ) ' -N -a $(sysnr_abi_$(basetarget ) ) < $<
33
- endef
29
+ filechk_sysnr = $(CONFIG_SHELL ) '$(systbl ) ' -N -a $(sysnr_abi_$(basetarget ) ) < $<
34
30
35
- define filechk_syscalls
36
- $(CONFIG_SHELL ) '$(systbl ) ' -S < $<
37
- endef
31
+ filechk_syscalls = $(CONFIG_SHELL ) '$(systbl ) ' -S < $<
38
32
39
33
syshdr_abi_unistd_32 := common,32
40
34
$(uapi ) /unistd_32.h : $(syscall ) FORCE
Original file line number Diff line number Diff line change @@ -20,13 +20,10 @@ HOSTCFLAGS_gen_opcode_table.o += -Wall $(LINUXINCLUDE)
20
20
# Ensure output directory exists
21
21
_dummy := $(shell [ -d '$(kapi ) ' ] || mkdir -p '$(kapi ) ')
22
22
23
- define filechk_facility-defs.h
24
- $(obj ) /gen_facilities
25
- endef
23
+ filechk_facility-defs.h = $(obj ) /gen_facilities
26
24
27
- define filechk_dis-defs.h
25
+ filechk_dis-defs.h = \
28
26
$(obj ) /gen_opcode_table < $(srctree ) /arch/$(ARCH ) /tools/opcodes.txt
29
- endef
30
27
31
28
$(kapi ) /facility-defs.h : $(obj ) /gen_facilities FORCE
32
29
$(call filechk,facility-defs.h)
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ kecho := $($(quiet)kecho)
41
41
###
42
42
# filechk is used to check if the content of a generated file is updated.
43
43
# Sample usage:
44
- # define filechk_sample
45
- # echo $KERNELRELEASE
46
- # endef
47
- # version.h : Makefile
44
+ #
45
+ # filechk_sample = echo $(KERNELRELEASE)
46
+ # version.h: FORCE
48
47
# $(call filechk,sample)
48
+ #
49
49
# The rule defined shall write to stdout the content of the new file.
50
50
# The existing file will be compared with the new one.
51
51
# - If no file exist it is created
Original file line number Diff line number Diff line change @@ -201,9 +201,7 @@ HOSTCFLAGS_gconf.o = $(shell . $(obj)/.gconf-cfg && echo $$cflags)
201
201
$(obj ) /gconf.o : $(obj ) /.gconf-cfg
202
202
203
203
# check if necessary packages are available, and configure build flags
204
- define filechk_conf_cfg
205
- $(CONFIG_SHELL ) $<
206
- endef
204
+ filechk_conf_cfg = $(CONFIG_SHELL ) $<
207
205
208
206
$(obj ) /.% conf-cfg : $(src ) /% conf-cfg.sh FORCE
209
207
$(call filechk,conf_cfg)
You can’t perform that action at this time.
0 commit comments