aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Drysdale <drysdale@google.com>2016-03-10 14:24:26 +0000
committerDavid Drysdale <drysdale@google.com>2016-03-10 14:33:32 +0000
commit064e1a65a5ce848434e9ceef500d03f7bde65249 (patch)
tree3a9b9a5400d1ff123d84a23a3391c667c38d6de8 /Makefile
parent98cd0cc66d1cf22e99e096d51da39969a5bfc6d5 (diff)
sysgen: Cope with non-inline kernel build
When regenerating system call tables, cope with a local kernel tree where the kernel has been built into a separate directory (with `make O=...`) rather than inline. So: - LINUX makefile var / -linux command line option give location of source tree - LINUXBLD makefile var / -linuxbld command line option gives location of built kernel
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f1637eab..7c6be65e7 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ SYSCALL_FILES=sys/sys.txt sys/socket.txt sys/tty.txt sys/perf.txt \
sys/kvm.txt sys/sndseq.txt sys/sndtimer.txt sys/sndcontrol.txt sys/input.txt \
sys/netlink.txt sys/tun.txt sys/random.txt
generate: bin/syz-sysgen $(SYSCALL_FILES)
- bin/syz-sysgen -linux=$(LINUX) $(SYSCALL_FILES)
+ bin/syz-sysgen -linux=$(LINUX) -linuxbld=$(LINUXBLD) $(SYSCALL_FILES)
bin/syz-sysgen: sysgen/*.go
go build -o $@ sysgen/*.go