aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRichard Haines <richard_c_haines@btinternet.com>2015-12-11 10:39:19 +0000
committerRichard Haines <richard_c_haines@btinternet.com>2015-12-13 12:01:53 +0000
commitc8801fec63a785be65808e70232ea241c779fcb5 (patch)
treeb028945ad569dc198bab8eccb7d8131fadc3f6f2 /README
parentf01453ad453b29dd723838984ea03978167491e5 (diff)
downloadsepolicy-c8801fec63a785be65808e70232ea241c779fcb5.tar.gz
Ensure newlines are added between context config files
When multiple file_contexts, service_contexts and property_contexts are processed by the m4(1) macro processor, they will fail if one or more of the intermediate files final line is not terminated by a newline. This patch adds an intervening file only containing a newline. Change-Id: Ie66b32fe477d08c69e6d6eb1725f658adc384ce4 Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 13 insertions, 5 deletions
diff --git a/README b/README
index 972997a..a3c75b8 100644
--- a/README
+++ b/README
@@ -7,11 +7,19 @@ into the policy build as described below.
Policy Generation:
Additional, per device, policy files can be added into the
-policy build.
-
-They can be configured through the use of the BOARD_SEPOLICY_DIRS
-variable. This variable should be set in the BoardConfig.mk file in
-the device or vendor directories.
+policy build. These files should have each line including the
+final line terminated by a newline character (0x0A). This
+will allow files to be concatenated and processed whenever
+the m4(1) macro processor is called by the build process.
+Adding the newline will also make the intermediate text files
+easier to read when debugging build failures. The sets of file,
+service and property contexts files will automatically have a
+newline inserted between each file as these are common failure
+points.
+
+These device policy files can be configured through the use of
+the BOARD_SEPOLICY_DIRS variable. This variable should be set
+in the BoardConfig.mk file in the device or vendor directories.
BOARD_SEPOLICY_DIRS contains a list of directories to search
for additional policy files. Order matters in this list.