summaryrefslogtreecommitdiffstats
path: root/usr/include/Kbuild
diff options
context:
space:
mode:
Diffstat (limited to 'usr/include/Kbuild')
-rw-r--r--usr/include/Kbuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/include/Kbuild b/usr/include/Kbuild
new file mode 100644
index 0000000..0032724
--- /dev/null
+++ b/usr/include/Kbuild
@@ -0,0 +1,11 @@
+always := asm
+
+$(obj)/asm:
+ @echo ' SYMLINK $@ -> include/asm-$(KLIBCASMARCH)'
+ $(Q)if [ '$(KLIBCKERNELSRC)/.' -ef '$(obj)/../..' ]; then \
+ ln -fsn ../../include/asm-$(KLIBCASMARCH) $@; \
+ else \
+ ln -fsn $(KLIBCKERNELSRC)/include/asm-$(KLIBCASMARCH) $@; \
+ fi
+
+clean-files := asm