summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-09 11:33:26 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-09 11:34:17 +0200
commit0e761c303145d2440a9ecd730c530333ef7b777f (patch)
tree3dff335ee5d93cf6a1ecd79b41cf52a6e1980bf5
parentb9660824c013b3f222fe7c9ce86df4cbc31b686a (diff)
downloadvyos-1x-0e761c303145d2440a9ecd730c530333ef7b777f.tar.gz
vyos-1x-0e761c303145d2440a9ecd730c530333ef7b777f.zip
telegraf: T4515: we do not ship telegraf on arm64 builds - remove CLI definitions
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5e01108c0..2956443bb 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ SHIM_DIR := src/shim
XDP_DIR := src/xdp
LIBS := -lzmq
CFLAGS :=
+BUILD_ARCH := $(shell dpkg-architecture -q DEB_BUILD_ARCH)
J2LINT := $(shell command -v j2lint 2> /dev/null)
@@ -46,6 +47,14 @@ interface_definitions: $(config_xml_obj)
# could mask help strings or mandatory priority statements
find $(TMPL_DIR) -name node.def -type f -empty -exec false {} + || sh -c 'echo "There are empty node.def files! Check your interface definitions." && exit 1'
+ @echo BUILD_ARCH IS $(BUILD_ARCH)
+ifneq ($(BUILD_ARCH),amd64)
+ # There is no telegraf support - remove CLI definitions
+ rm -rf $(TMPL_DIR)/service/monitoring/telegraf
+ # We also do not select the SALT minion package for arm64
+ rm -rf $(TMPL_DIR)/service/salt-minion
+endif
+
.PHONY: op_mode_definitions
.ONESHELL:
op_mode_definitions: $(op_xml_obj)