*: add pause binary as a build target

Take the pause binary's source code (from kubernetes/pause) and make it
part of the build setup for cri-o. This is necessary to remove the
Docker requirement for setting up the pause container, at least until
the storage API is set up so that we can make this far more flexible
(namely that we can pull the image from a registry or other transport,
even from an archive).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai 2016-10-02 19:36:39 +11:00
parent 37affbfd7a
commit 1313f0dd72
No known key found for this signature in database
GPG key ID: 9E18AA267DDB8DB4
5 changed files with 66 additions and 6 deletions

13
pause/Makefile Normal file
View file

@ -0,0 +1,13 @@
src = $(wildcard *.c)
obj = $(src:.c=.o)
override LIBS +=
override CFLAGS += -Os -Wall -Wextra -static
pause: $(obj)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
strip $@
.PHONY: clean
clean:
rm -f $(obj) pause