unifios-utilities/podman-update/build/net.Makefile.patch

42 lines
1.5 KiB
Diff
Raw Normal View History

2023-03-23 13:44:36 +00:00
diff --git a/Makefile b/Makefile
2023-03-23 14:04:12 +00:00
index a84312b1..6252bbe3 100644
2023-03-23 13:44:36 +00:00
--- a/Makefile
+++ b/Makefile
2023-03-23 14:04:12 +00:00
@@ -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
2023-03-23 13:44:36 +00:00
.PHONY: build_netavark
build_netavark: bin $(CARGO_TARGET_DIR)
- $(CARGO) build $(release)
2023-03-23 14:04:12 +00:00
- cp $(CARGO_TARGET_DIR)/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
2023-03-23 13:44:36 +00:00
+ $(CARGO) build --target aarch64-unknown-linux-gnu $(release)
2023-03-23 14:04:12 +00:00
+ cp $(CARGO_TARGET_DIR)/aarch64-unknown-linux-gnu/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
2023-03-23 13:44:36 +00:00
.PHONY: crate-publish
2023-03-23 14:04:12 +00:00
crate-publish:
2023-03-23 13:44:36 +00:00
@@ -75,7 +75,7 @@ clean:
.PHONY: client
client: bin $(CARGO_TARGET_DIR)
- $(CARGO) build --bin netavark-dhcp-proxy-client $(release)
2023-03-23 14:04:12 +00:00
+ $(CARGO) build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client $(release)
2023-03-23 13:44:36 +00:00
.PHONY: docs
2023-03-23 14:04:12 +00:00
@@ -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,)