X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Kbuild;h=2114113ceca2801770c57ac07c78fff2b0b8a477;hb=4dc217df68a17a57f8464c74c1b4785e40bddf77;hp=e3737ad72b5a7ab8ad916b5b6b2725eaf89122a1;hpb=66b89159c25a47d2177743526c61b5ada7acc39e;p=~andy%2Flinux diff --git a/Kbuild b/Kbuild index e3737ad72b5..2114113ceca 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)