summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk22
-rw-r--r--device.mk3
2 files changed, 23 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index b66f4ca..035d08a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -22,7 +22,25 @@
LOCAL_PATH := $(call my-dir)
-# if some modules are built directly from this directory (not subdirectories),
-# their rules should be written here.
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := tuna_hdcp_keys
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := FAKE
+LOCAL_MODULE_SUFFIX := -timestamp
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+$(LOCAL_BUILT_MODULE): HDCP_KEYS_FILE := /factory/hdcp.keys
+$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT_VENDOR)/firmware/hdcp.keys
+$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk
+$(LOCAL_BUILT_MODULE):
+ $(hide) echo "Symlink: $(SYMLINK) -> $(HDCP_KEYS_FILE)"
+ $(hide) mkdir -p $(dir $@)
+ $(hide) mkdir -p $(dir $(SYMLINK))
+ $(hide) rm -rf $@
+ $(hide) rm -rf $(SYMLINK)
+ $(hide) ln -sf $(HDCP_KEYS_FILE) $(SYMLINK)
+ $(hide) touch $@
include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/device.mk b/device.mk
index 09c05ca..3be72f2 100644
--- a/device.mk
+++ b/device.mk
@@ -43,6 +43,9 @@ PRODUCT_PACKAGES += \
audio.a2dp.default \
libaudioutils
+PRODUCT_PACKAGES += \
+ tuna_hdcp_keys
+
PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel \
device/samsung/tuna/init.tuna.rc:root/init.tuna.rc \