Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 33f1986f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Michael Bestas
Browse files

build: Add an option to block non-enforcing builds

Prevent accidental build of test configurations. Hopping back and
forth between states (especially disabled) leaves a mess in the
filesystems, and we want to try to ensure published builds go out
enforcing.

Change-Id: I2206975968de421dec842f49b02490fa85ca9f3b
parent 626f5b45
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -962,6 +962,11 @@ INTERNAL_RECOVERYIMAGE_ARGS := \

# Assumes this has already been stripped
ifdef BOARD_KERNEL_CMDLINE
  ifdef BUILD_ENFORCE_SELINUX
      ifneq (,$(filter androidboot.selinux=permissive androidboot.selinux=disabled, $(BOARD_KERNEL_CMDLINE)))
          $(error "Trying to apply non-default selinux settings. Aborting")
      endif
  endif
  INTERNAL_RECOVERYIMAGE_ARGS += --cmdline "$(BOARD_KERNEL_CMDLINE)"
endif
ifdef BOARD_KERNEL_BASE