blob: b3c6bc27943e68e2383a67c443113bd4151a977b [file] [log] [blame]
# This file guards most of hardware/qcom/* from
# being used on devices which use hardware/qcom-caf/*
# Legacy CAF devices still want AOSP keymaster HAL.
CAF_DIRS := 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