OSDN Git Service

This property is set when HAVE_SELINUX:=true during build.
authorWilliam Roberts <bill.c.roberts@gmail.com>
Tue, 3 Jul 2012 01:55:14 +0000 (18:55 -0700)
committerWilliam Roberts <bill.c.roberts@gmail.com>
Tue, 3 Jul 2012 18:05:03 +0000 (11:05 -0700)
This will provide a convenient method for determing build
configuration when in the Java layer. For instance, this will
be used in change id I69529fb7a3adfe31eccb16d79740fc4952ff5e68
to determine if the Settings app should display the SE Linux
status.

Change-Id: Idc8dff020aaac41649eac64f5fa8e311dabbc51f

core/main.mk

index 3337a8a..aefedf0 100644 (file)
@@ -230,6 +230,10 @@ ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),)
 is_sdk_build := true
 endif
 
+## have selinux ##
+ifeq ($(HAVE_SELINUX),true)
+ADDITIONAL_BUILD_PROPERTIES += ro.build.selinux=1
+endif # HAVE_SELINUX
 
 ## user/userdebug ##