summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 21:00:27 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 21:00:27 +0200
commit22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00 (patch)
tree05e71ad60192dc4d61a299562f6d189c4d8c360d /Android.mk
parentUpdate sdcard partitioning to C++ (diff)
downloadandroid_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar.gz
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar.bz2
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar.lz
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar.xz
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.tar.zst
android_bootable_recovery-22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 3734330ea..7187ae73e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -208,7 +208,18 @@ endif
include $(BUILD_EXECUTABLE)
+# Create busybox symlinks... gzip and gunzip are excluded because those need to link to pigz instead
+BUSYBOX_LINKS := $(shell cat external/busybox/busybox-full.links)
+exclude := tune2fs mke2fs mkdosfs gzip gunzip
+RECOVERY_BUSYBOX_SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS))))
+$(RECOVERY_BUSYBOX_SYMLINKS): BUSYBOX_BINARY := busybox
+$(RECOVERY_BUSYBOX_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
+ @echo "Symlink: $@ -> $(BUSYBOX_BINARY)"
+ @mkdir -p $(dir $@)
+ @rm -rf $@
+ $(hide) ln -sf $(BUSYBOX_BINARY) $@
+ALL_DEFAULT_INSTALLED_MODULES += $(RECOVERY_BUSYBOX_SYMLINKS)
include $(CLEAR_VARS)
LOCAL_MODULE := verifier_test