aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2016-11-10 20:24:21 +0800
committerZhao Wei Liew <zhaoweiliew@gmail.com>2016-11-11 06:07:56 -0700
commit3affb1db6aaaf0a19747a0ba05160a03e7e85421 (patch)
treee2c9ad74be2c2cef784ffa5dbef176b6ac52cdfd
parent78844e8b093739495b1e2b538525f39a2b332391 (diff)
msm8916: board: Use VENDOR_PATH define
This is cleaner. Change-Id: Ic62aeeda24345960d0946b5d9e6ad8d565c12797
-rw-r--r--BoardConfigCommon.mk4
-rw-r--r--board/releasetools.mk2
-rw-r--r--board/sepolicy.mk3
3 files changed, 6 insertions, 3 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 2239bf7..81992dc 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -13,5 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+VENDOR_PATH := device/cyanogen/msm8916-common
+
# Include board config fragments
-include device/cyanogen/msm8916-common/board/*.mk
+include $(VENDOR_PATH)/board/*.mk
diff --git a/board/releasetools.mk b/board/releasetools.mk
index bc1a595..b81c613 100644
--- a/board/releasetools.mk
+++ b/board/releasetools.mk
@@ -1 +1 @@
-TARGET_RELEASETOOLS_EXTENSIONS := device/cyanogen/msm8916-common
+TARGET_RELEASETOOLS_EXTENSIONS := $(VENDOR_PATH)
diff --git a/board/sepolicy.mk b/board/sepolicy.mk
index 9650039..852bd13 100644
--- a/board/sepolicy.mk
+++ b/board/sepolicy.mk
@@ -1 +1,2 @@
-BOARD_SEPOLICY_DIRS += device/cyanogen/msm8916-common/sepolicy
+BOARD_SEPOLICY_DIRS += \
+ $(VENDOR_PATH)/sepolicy