diff options
| author | ReFil <31960031+ReFil@users.noreply.github.com> | 2023-01-25 18:20:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 18:20:54 +0000 |
| commit | 06e684cbf221f313f89977d60305401ca3af5a52 (patch) | |
| tree | 1e7a9f05eab8fba150153a069e1c7779a51ca7fe | |
| parent | caeede0f564ee510531bc77a9e8a3796411d67e6 (diff) | |
| parent | d011eea95304d6ca3165868b7ca3bc3b19b72028 (diff) | |
Merge pull request #91 from ReFil/Fix-osx
Disable SELinux support on OS X
| -rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,13 +1,21 @@ DOCKER := $(shell { command -v podman || command -v docker; }) TIMESTAMP := $(shell date -u +"%Y%m%d%H%M%S") +detected_OS := $(shell uname) # Classify UNIX OS +ifeq ($(strip $(detected_OS)),Darwin) #We only care if it's OS X +SELINUX1 := +SELINUX2 := +else +SELINUX1 := :z +SELINUX2 := ,z +endif .PHONY: all clean all: $(DOCKER) build --tag zmk --file Dockerfile . $(DOCKER) run --rm -it --name zmk \ - -v $(PWD)/firmware:/app/firmware:z \ - -v $(PWD)/config:/app/config:ro,z \ + -v $(PWD)/firmware:/app/firmware$(SELINUX1) \ + -v $(PWD)/config:/app/config:ro$(SELINUX2) \ -e TIMESTAMP=$(TIMESTAMP) \ zmk |
