summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-17 22:37:05 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-17 22:37:05 +0000
commit508383b431a6ef45c0992fdd47064edb581c6214 (patch)
tree012a15c3a1c024ae79cac38619db65b1638d212f /Makefile.in
parent17fc4be5ebc7910f4c99a8f45da1143460a7e666 (diff)
- add hack to check if generating sysnum.h worked out
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 174daca00..eb9d15db4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -167,6 +167,15 @@ include/bits/sysnum.h: $(top_srcdir)extra/scripts/gen_bits_syscall_h.sh
else \
mv -f $$tmp include/bits/sysnum.h; \
fi
+ @# Ugly linux specific hack..
+ $(Q)if grep -q __NR_ $@; then true; else \
+ rm -f $@; \
+ echo "ERROR: Could not generate syscalls."; \
+ echo "Make sure that you have proper kernel headers."; \
+ echo "Your .config in KERNEL_HEADERS=\"\" was set to:"; \
+ echo "${KERNEL_HEADERS}"; \
+ exit 1; \
+ fi
$(LOCAL_INSTALL_PATH):
$(Q)$(MAKE) PREFIX=$(shell pwd)/ RUNTIME_PREFIX=./ \