X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=blobdiff_plain;f=Kbuild;h=2114113ceca2801770c57ac07c78fff2b0b8a477;hp=e3737ad72b5a7ab8ad916b5b6b2725eaf89122a1;hb=c9e2a72ff1acfdffdecb338b3d997f90c507e665;hpb=441f4058a04b2943685ff94e0f5f1992b0b3649e diff --git a/Kbuild b/Kbuild index e3737ad72b5a..2114113ceca2 100644 --- a/Kbuild +++ b/Kbuild @@ -53,6 +53,7 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s # Default sed regexp - multiline due to syntax constraints define sed-y "/^->/{s:->#\(.*\):/* \1 */:; \ + s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:->::; p;}" endef @@ -94,5 +95,5 @@ PHONY += missing-syscalls missing-syscalls: scripts/checksyscalls.sh FORCE $(call cmd,syscalls) -# Delete all targets during make clean -clean-files := $(addprefix $(objtree)/,$(filter-out $(bounds-file) $(offsets-file),$(targets))) +# Keep these two files during make clean +no-clean-files := $(bounds-file) $(offsets-file)