From 9bd6ac8da0db902aceab40bcce0293c3195e91d7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 25 Oct 2017 15:27:48 +0000 Subject: [PATCH] Do a chdir to SRCTOP/sys/boot before starting the run. This lets one run this script from anywhere, but makes it only work on sys/boot. Sponsored by: Netflix --- tools/boot/universe.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/boot/universe.sh b/tools/boot/universe.sh index ee779a38ae5..e0be629d275 100755 --- a/tools/boot/universe.sh +++ b/tools/boot/universe.sh @@ -19,6 +19,9 @@ # Output is put into _.boot.$TARGET_ARCH.log in sys.boot. # +top=$(make -V SRCTOP) +cd $top/sys/boot + for i in \ amd64/amd64 \ arm/arm arm/armeb arm/armv7 \