···3333escsq = $(subst $(squote),'\$(squote)',$1)34343535###3636+# Quote a string to pass it to C files. foo => '"foo"'3737+stringify = $(squote)$(quote)$1$(quote)$(squote)3838+3939+###3640# Easy method for doing a status message3741 kecho := :3842 quiet_kecho := echo
+1-1
scripts/Makefile.lib
···9797# These flags are needed for modversions and compiling, so we define them here9898# $(modname_flags) defines KBUILD_MODNAME as the name of the module it will9999# end up in (or would, if it gets compiled in)100100-name-fix = $(squote)$(quote)$(subst $(comma),_,$(subst -,_,$1))$(quote)$(squote)100100+name-fix = $(call stringify,$(subst $(comma),_,$(subst -,_,$1)))101101basename_flags = -DKBUILD_BASENAME=$(call name-fix,$(basetarget))102102modname_flags = -DKBUILD_MODNAME=$(call name-fix,$(modname))103103