summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-02-15 19:36:18 +0100
committerDees Troy <dees_troy@teamw.in>2017-02-16 17:06:48 +0100
commitd821c96c529ac83db33a471df745887508e9afef (patch)
tree1516d24450b1e29adff3719cb23f6951c5a54012 /Android.mk
parentFix bldr msg file open mode when offset specified (diff)
downloadandroid_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar.gz
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar.bz2
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar.lz
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar.xz
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.tar.zst
android_bootable_recovery-d821c96c529ac83db33a471df745887508e9afef.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index d6a318ba5..2b7c2d124 100644
--- a/Android.mk
+++ b/Android.mk
@@ -478,12 +478,27 @@ ifeq ($(shell test $(CM_PLATFORM_SDK_VERSION) -ge 3; echo $$?),0)
endif
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0)
+ LOCAL_ADDITIONAL_DEPENDENCIES += file_contexts_symlink
+endif
+
ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),)
LOCAL_REQUIRED_MODULES := recovery-persist recovery-refresh
endif
include $(BUILD_EXECUTABLE)
+# Symlink for file_contexts
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := file_contexts_symlink
+LOCAL_MODULE_TAGS := optional
+LOCAL_POST_INSTALL_CMD := \
+ $(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin && \
+ ln -sf /file_contexts.bin $(TARGET_RECOVERY_ROOT_OUT)/file_contexts
+
+include $(BUILD_PHONY_PACKAGE)
+
ifneq ($(TW_USE_TOOLBOX), true)
include $(CLEAR_VARS)
# Create busybox symlinks... gzip and gunzip are excluded because those need to link to pigz instead