Update net.Makefile.patch

This commit is contained in:
John Dorman 2023-03-23 07:04:12 -07:00 committed by GitHub
parent 41999d8bce
commit 6fba4da32b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,27 @@
diff --git a/Makefile b/Makefile
index a84312b1..5ec27081 100644
index a84312b1..6252bbe3 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ build: build_netavark build_proxy_client
@@ -17,7 +17,7 @@ GIT_TAG ?= $(shell git describe --tags)
# Set this to any non-empty string to enable unoptimized
# build w/ debugging features.
-debug ?=
+debug ?=
# Set path to cargo executable
CARGO ?= cargo
@@ -54,8 +54,8 @@ build: build_netavark build_proxy_client
.PHONY: build_netavark
build_netavark: bin $(CARGO_TARGET_DIR)
- $(CARGO) build $(release)
- cp $(CARGO_TARGET_DIR)/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
+ $(CARGO) build --target aarch64-unknown-linux-gnu $(release)
cp $(CARGO_TARGET_DIR)/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
+ cp $(CARGO_TARGET_DIR)/aarch64-unknown-linux-gnu/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
.PHONY: crate-publish
crate-publish:
@@ -75,7 +75,7 @@ clean:
.PHONY: client
@ -20,3 +31,11 @@ index a84312b1..5ec27081 100644
.PHONY: docs
@@ -143,5 +143,5 @@ help:
.PHONY: build_proxy_client
build_proxy_client: bin $(CARGO_TARGET_DIR)
- $(CARGO) build --bin netavark-dhcp-proxy-client $(release)
- cp $(CARGO_TARGET_DIR)/$(profile)/netavark-dhcp-proxy-client bin/netavark-dhcp-proxy-client$(if $(debug),.debug,)
+ $(CARGO) build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client $(release)
+ cp $(CARGO_TARGET_DIR)/aarch64-unknown-linux-gnu/$(profile)/netavark-dhcp-proxy-client bin/netavark-dhcp-proxy-client$(if $(debug),.debug,)