Navigation Menu

Skip to content

Commit

Permalink
tuna: create a symlink for hdcp_keys
Browse files Browse the repository at this point in the history
Change-Id: I3c42817cfcd581d211c29e756285cb7db0a14f7d
Signed-off-by: Dima Zavin <dima@android.com>
  • Loading branch information
Dima Zavin committed Oct 11, 2011
1 parent f370735 commit 3ca2f3e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 20 additions & 2 deletions Android.mk
Expand Up @@ -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))
3 changes: 3 additions & 0 deletions device.mk
Expand Up @@ -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 \
Expand Down

0 comments on commit 3ca2f3e

Please sign in to comment.