Skip to content
Snippets Groups Projects
Commit 655d5bc6 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am af292c00: am d4f6c5f0: Merge "Catch nonexistent BOARD_SEPOLICY_UNION policy files."

* commit 'af292c00':
  Catch nonexistent BOARD_SEPOLICY_UNION policy files.
parents 5dfb67d1 af292c00
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,15 @@ $(foreach pf, $(BOARD_SEPOLICY_REPLACE), \
) \
)
# Quick edge case error detection for BOARD_SEPOLICY_UNION.
# This ensures that a requested union file exists somewhere
# in one of the listed BOARD_SEPOLICY_DIRS.
$(foreach pf, $(BOARD_SEPOLICY_UNION), \
$(if $(filter 0, $(words $(wildcard $(addsuffix /$(pf), $(BOARD_SEPOLICY_DIRS))))), \
$(error No sepolicy file found for $(pf) in $(BOARD_SEPOLICY_DIRS)), \
) \
)
# Builds paths for all requested policy files w.r.t
# both BOARD_SEPOLICY_REPLACE and BOARD_SEPOLICY_UNION
# product variables.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment