• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2011 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.tuna), 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
23LOCAL_PATH := $(call my-dir)
24
25ifeq ($(BOARD_CREATE_TUNA_HDCP_KEYS_SYMLINK), true)
26include $(CLEAR_VARS)
27
28LOCAL_MODULE := tuna_hdcp_keys
29LOCAL_MODULE_TAGS := optional
30LOCAL_MODULE_CLASS := FAKE
31LOCAL_MODULE_SUFFIX := -timestamp
32
33include $(BUILD_SYSTEM)/base_rules.mk
34
35$(LOCAL_BUILT_MODULE): HDCP_KEYS_FILE := /factory/hdcp.keys
36$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT_VENDOR)/firmware/hdcp.keys
37$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk
38$(LOCAL_BUILT_MODULE):
39	$(hide) echo "Symlink: $(SYMLINK) -> $(HDCP_KEYS_FILE)"
40	$(hide) mkdir -p $(dir $@)
41	$(hide) mkdir -p $(dir $(SYMLINK))
42	$(hide) rm -rf $@
43	$(hide) rm -rf $(SYMLINK)
44	$(hide) ln -sf $(HDCP_KEYS_FILE) $(SYMLINK)
45	$(hide) touch $@
46
47include $(call all-makefiles-under,$(LOCAL_PATH))
48
49endif
50