diff options
| author | Simon Shields <simon@lineageos.org> | 2019-09-26 01:23:17 +1000 |
|---|---|---|
| committer | Simon Shields <simon@lineageos.org> | 2019-09-26 01:23:17 +1000 |
| commit | d99225938bba296ef217aad252261f2ad348c9fb (patch) | |
| tree | 4b5fa6da0467941a65aa57043eff88ac6a99242a | |
| parent | 8f49fc188a15f1d6ab54041a73526cb99e3d2d86 (diff) | |
| download | android_hardware_qcom-caf_common-d99225938bba296ef217aad252261f2ad348c9fb.tar.gz android_hardware_qcom-caf_common-d99225938bba296ef217aad252261f2ad348c9fb.tar.bz2 android_hardware_qcom-caf_common-d99225938bba296ef217aad252261f2ad348c9fb.zip | |
Add guard for AOSP hardware/qcom dir
Change-Id: Idb18776a546deabf248254074491052d211e5304
| -rw-r--r-- | os_pickup_aosp.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/os_pickup_aosp.mk b/os_pickup_aosp.mk new file mode 100644 index 0000000..0594556 --- /dev/null +++ b/os_pickup_aosp.mk @@ -0,0 +1,14 @@ +# This file guards most of hardware/qcom/* from +# being used on devices which use hardware/qcom-caf/* + +# CAF devices still want AOSP bootctrl and keymaster HALs. +CAF_DIRS := bootctrl keymaster +LOCAL_PATH := $(call my-dir) + +ifeq ($(BOARD_USES_QCOM_HARDWARE),true) +# convert CAF_DIRS to something we can give to filter +filter_CAF_DIRS := $(foreach dir,$(CAF_DIRS),%/$(dir)/Android.mk) +include $(filter,$(filter_CAF_DIRS),$(call first-makefiles-under,$(LOCAL_PATH))) +else +include $(call first-makefiles-under,$(LOCAL_PATH)) +endif |
