From 3da458d409b77b5f5a2388266026e363d51e30f7 Mon Sep 17 00:00:00 2001 From: Maor Vanmak Date: Mon, 24 Oct 2022 15:26:45 +0300 Subject: [PATCH] Procstat build: support compilation in lbv2 build system. 1. Use specific container for compiling Procstat without being depend on dockerize. 2. Add lbv2 for lbyaml v2 support. This change coexist with current build system (dockerize and lb-build) Signed-off-by: Maor Vanmak --- Makefile.container | 19 +++++++++++++++++++ lbv2.yaml | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 Makefile.container create mode 100644 lbv2.yaml diff --git a/Makefile.container b/Makefile.container new file mode 100644 index 0000000..0a070c1 --- /dev/null +++ b/Makefile.container @@ -0,0 +1,19 @@ +include $(WORKSPACE_TOP)/common/Makefile.env + +all: build + +LBGO_CONTAINER_VERSION = $(shell component-tool version --repo=lb_containers --type=$(BUILD_TYPE) lbcpp) + +build: + run_in_container -i lbcpp:${LBGO_CONTAINER_VERSION} -- ${MAKE} -f Makefile.lb $@ + +install: + run_in_container -i lbcpp:latest -- ${MAKE} -f Makefile.lb $@ + +checkin: + run_in_container -i lbcpp:latest -- ${MAKE} -f Makefile.lb $@ + +clean: + run_in_container -i lbcpp:latest -- ${MAKE} -f Makefile.lb $@ + +.PHONY: clean checkin build diff --git a/lbv2.yaml b/lbv2.yaml new file mode 100644 index 0000000..cbb80e7 --- /dev/null +++ b/lbv2.yaml @@ -0,0 +1,8 @@ +procstat: + procstat: + build: + - make -f Makefile.container all + install: + - make -f Makefile.container install + deps: + - file://src