commit 262374062088bd4c4ca9d17019b0b4ad966e7589 parent 7203b58b51caf55cae2b17de08f9b09c0d322a61 Author: Ember Sawady <ecs@d2evs.net> Date: Tue, 22 Nov 2022 00:23:44 +0000 rt/configure: add NetBSD support Signed-off-by: Ember Sawady <ecs@d2evs.net> Diffstat:
M | rt/configure | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/rt/configure b/rt/configure @@ -80,6 +80,32 @@ rt() { rt: libhart.a rt/+openbsd/start+$arch.o EOF ;; + NetBSD) + case $arch in + amd64) + arch=x86_64 + ;; + *) + printf "unsupported NetBSD arch %s\n" "$arch" >&2 + exit 1 + ;; + esac + rtstart=rt/+netbsd/start+$arch.o + cat <<-EOF + rtstart=rt/+netbsd/start+$arch.o + + libhart_srcs=\ + rt/+netbsd/errno.ha \ + rt/+netbsd/segmalloc.ha \ + rt/+netbsd/syscallno.ha \ + rt/+netbsd/syscalls.ha \ + + libhart_objs=\ + rt/+netbsd/syscall+$arch.o + + rt: libhart.a rt/+netbsd/start+$arch.o + EOF + ;; *) printf "rt not supported for %s\n" "$(uname)" >&2 exit 1