--- tensorflow/lite/tools/make/Makefile.orig	2019-10-14 21:08:43 UTC
+++ tensorflow/lite/tools/make/Makefile
@@ -16,12 +16,15 @@ else
 	ifeq ($(UNAME_S),Linux)
 		HOST_OS := linux
 	endif
+        ifeq ($(UNAME_S),FreeBSD)
+                HOST_OS := freebsd
+        endif
 	ifeq ($(UNAME_S),Darwin)
 		HOST_OS := osx
 	endif
 endif
 
-HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; else uname -m; fi)
+HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; elif uname -m | grep -q amd64; then echo x86_64; else uname -m; fi)
 
 # Override these on the make command line to target a specific architecture. For example:
 # make -f tensorflow/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l
