Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Makefile: Decide if agent will be built by seccomp tag
Browse files Browse the repository at this point in the history
Agent would be built by seccomp tag if SECCOMP is set to
yes. Else it shall be set to no.

Fixes: #420

Signed-off-by: Nitesh Konkar [email protected]
  • Loading branch information
nitkon committed Nov 29, 2018
1 parent 0ff3006 commit c25288a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ INIT := no
UNIT_DIR := /usr/lib/systemd/system

GENERATED_FILES :=
# Define if agent will be built by seccomp tag
SECCOMP := no

ifeq ($(INIT),no)
# Unit file to start kata agent in systemd systems
Expand All @@ -34,7 +32,9 @@ COMMIT := $(if $(shell git status --porcelain --untracked-files=no),${COMMIT_NO}
VERSION_COMMIT := $(if $(COMMIT),$(VERSION)-$(COMMIT),$(VERSION))
ARCH := $(shell go env GOARCH)
ifeq ($(SECCOMP),yes)
BUILDTAGS := seccomp
BUILDTAGS := seccomp
else
SECCOMP=no
endif
# go build common flags
BUILDFLAGS := -buildmode=pie
Expand Down

0 comments on commit c25288a

Please sign in to comment.