Skip to content

Commit

Permalink
Procstat build: support compilation in lbv2 build system.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
maor-lb committed Nov 8, 2022
1 parent c9f01ce commit 13b4dd5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile.container
Original file line number Diff line number Diff line change
@@ -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} -c "${MAKE} -f Makefile.lb $@"

install:
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"

checkin:
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"

clean:
run_in_container -i lbcpp:latest -c "${MAKE} -f Makefile.lb $@"

.PHONY: clean checkin build
8 changes: 8 additions & 0 deletions lbv2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
procstat:
procstat:
build:
- make -f Makefile.container all
install:
- make -f Makefile.container install
deps:
- file://src

0 comments on commit 13b4dd5

Please sign in to comment.