Skip to content

Commit

Permalink
Merge pull request KinesisCorporation#91 from ReFil/Fix-osx
Browse files Browse the repository at this point in the history
Disable SELinux support on OS X
  • Loading branch information
ReFil authored and tricktux committed Feb 10, 2024
2 parents 6656657 + 7389b0c commit d127ea3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit d127ea3

Please sign in to comment.