Skip to content

Commit 13b4dd5

Browse files
committed
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 <maor@lightbitslabs.com>
1 parent c9f01ce commit 13b4dd5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Makefile.container

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
include $(WORKSPACE_TOP)/common/Makefile.env
2+
3+
all: build
4+
5+
LBGO_CONTAINER_VERSION = $(shell component-tool version --repo=lb_containers --type=$(BUILD_TYPE) lbcpp)
6+
7+
build:
8+
run_in_container -i lbcpp:${LBGO_CONTAINER_VERSION} -c "${MAKE} -f Makefile.lb $@"
9+
10+
install:
11+
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"
12+
13+
checkin:
14+
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"
15+
16+
clean:
17+
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"
18+
19+
.PHONY: clean checkin build

lbv2.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
procstat:
2+
procstat:
3+
build:
4+
- make -f Makefile.container all
5+
install:
6+
- make -f Makefile.container install
7+
deps:
8+
- file://src

0 commit comments

Comments
 (0)