forked from sylabs/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oci: add conmon to build via submodule
- Loading branch information
Showing
14 changed files
with
139 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "third_party/conmon"] | ||
path = third_party/conmon | ||
url = https://github.com/containers/conmon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This file contains all of the rules for building conmon | ||
|
||
conmon := $(SOURCEDIR)/third_party/conmon/bin/conmon | ||
conmon_dir := $(SOURCEDIR)/third_party/conmon/ | ||
conmon_src := $(SOURCEDIR)/third_party/conmon/Makefile | ||
conmon_INSTALL := $(DESTDIR)$(LIBEXECDIR)/singularity/bin/conmon | ||
|
||
# conmon currently fails to build with theses warnings as errors, | ||
# which are enforced for our own CGO compilations. | ||
conmon_CFLAGS := $(filter-out -Wstrict-prototypes,$(CFLAGS)) | ||
conmon_CFLAGS := $(filter-out -Wframe-larger-than=2047,$(conmon_CFLAGS)) | ||
conmon_CFLAGS := $(filter-out -Wpointer-arith,$(conmon_CFLAGS)) | ||
conmon_CFLAGS += -std=c99 | ||
|
||
$(conmon): $(conmon_src) | ||
@echo " CONMON" | ||
$(MAKE) CFLAGS='$(conmon_CFLAGS)' -C $(conmon_dir) | ||
|
||
$(conmon_INSTALL): $(conmon) | ||
@echo " INSTALL CONMON" $@ | ||
$(V)umask 0022 && mkdir -p $(@D) | ||
$(V)install -m 0755 $< $@ | ||
|
||
.PHONY: | ||
conmon_CLEAN: | ||
@echo " CLEAN CONMON" | ||
$(MAKE) -C $(conmon_dir) clean | ||
|
||
INSTALLFILES += $(conmon_INSTALL) | ||
ALL += $(conmon) | ||
CLEANTARGETS += conmon_CLEAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters