From 6ed989672e9c1308c59c5fd5043a84f1c23923a0 Mon Sep 17 00:00:00 2001 From: Al Hoang <13622+hoanga@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:09:25 -0500 Subject: [PATCH] update makefile to build on freebsd --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 1cf747dffd..c487c7de59 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,9 @@ ifeq ($(UNAME),Darwin) ## macOS uses a different unmounting utility UNMOUNT = diskutil unmount USB_DRIVES = $(shell diskutil list external | grep -s "/dev/" | awk '{print $$1}') +else ifeq ($(UNAME),FreeBSD) + UNMOUNT = umount + USB_DRIVES = $(shell usbconfig list | awk -F':' '{print $$1}') else ## Handle building for aarch64 on x86_64 Linux/WSL ifeq ($(ARCH),aarch64)