From 766a5fa1180a7b0245b40fbde2edcc7265dd6375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 3 Oct 2023 14:18:45 +0200 Subject: [PATCH] agent: Allow specifying DESTDIR and AGENT_POLICY via env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will help to build the agent binary as part of the kata-deploy localbuild, as we need to pass the DESTDIR to where the agent will be installed, and also whether we're building the agent with policy support enabled or not. Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 1727487eef00283b159bb829540913cc5fa7a5da) Conflicts: src/agent/Makefile The conflict happened as AGENT_POLICY is not part of the stable-3.2, thus I've manually removed it. --- src/agent/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/Makefile b/src/agent/Makefile index a47e699110..94864aa9be 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -54,7 +54,7 @@ endif TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET) ##VAR DESTDIR= is a directory prepended to each installed target file -DESTDIR := +DESTDIR ?= ##VAR BINDIR= is a directory for installing executable programs BINDIR := /usr/bin