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

Commit bfc11df0 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Brint E. Kriebel
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 572938e1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -855,6 +855,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