[klibc] [PATCH] klibc: delete havesyscall.h during make clean

Sam Ravnborg sam at ravnborg.org
Tue Apr 11 13:15:27 PDT 2006


In the kernel KLIBCINC expands to a full path, whereas in klibc
it expands to a relative path.
So specify havesyscalls.h twice to cover both situations.
Note: kbuild will prefix relative paths with $(obj) when deleting.

Later we may use same type of definition for KLIBCINC
but until then we keep this workaround.

Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
---

diff --git a/klibc/syscalls/Kbuild b/klibc/syscalls/Kbuild
index c13555d..5554f7e 100644
--- a/klibc/syscalls/Kbuild
+++ b/klibc/syscalls/Kbuild
@@ -23,6 +23,7 @@ targets += $(syscall-objs)
 
 # Side effect of running syscalls.pl
 clean-files += $(objtree)/$(KLIBCINC)/klibc/havesyscall.h
+clean-files += $(KLIBCINC)/klibc/havesyscall.h
 # All the syscall stubs
 clean-files += *.o *.S *.c
 



More information about the klibc mailing list