1#
2# Copyright (C) 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# WARNING: Everything listed here will be built on ALL platforms,
18# including x86, the emulator, and the SDK.  Modules must be uniquely
19# named (liblights.panda), and must build everywhere, or limit themselves
20# to only building on ARM if they include assembly. Individual makefiles
21# are responsible for having their own logic, for fine-grained control.
22
23ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
24
25LOCAL_PATH := $(call my-dir)
26
27
28ifeq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk))
29droidcore: $(PRODUCT_OUT)/missing_vendor_package
30$(PRODUCT_OUT)/missing_vendor_package:
31	echo
32	echo "Missing Linaro Vendor Package!"
33	echo "Please download new binaries here:"
34	echo "  $(VND_PKG_URL)"
35	echo "And extract in the ANDROID_TOP_DIR"
36	echo
37	false
38endif
39
40$(eval $(call declare-1p-copy-files,device/linaro/hikey,.conf))
41$(eval $(call declare-1p-copy-files,device/linaro/hikey,.img))
42$(eval $(call declare-1p-copy-files,device/linaro/hikey,.kl))
43$(eval $(call declare-1p-copy-files,device/linaro/hikey,.rc))
44$(eval $(call declare-1p-copy-files,device/linaro/hikey,.xml))
45$(eval $(call declare-1p-copy-files,device/linaro/hikey,fstab.hikey))
46$(eval $(call declare-1p-copy-files,device/linaro/hikey,fstab.hikey960))
47
48$(eval $(call declare-copy-files-license-metadata,device/linaro/hikey/bt-wifi-firmware-util,,SPDX-license-identifier-BSD,notice,device/linaro/hikey/bt-wifi-firmware-util/NOTICE,))
49
50# if some modules are built directly from this directory (not subdirectories),
51# their rules should be written here.
52
53include $(call all-makefiles-under,$(LOCAL_PATH))
54endif
55