summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-10-02 17:25:20 +0200
committerGerrit Code Review <gerrit@redmine>2012-10-02 17:25:20 +0200
commitf16389d7d199928f7b35a18d52178c19ea6d35d1 (patch)
tree93405759715d43320c14046598461bb878eb347b /Android.mk
parentMerge "Ensure that actions are not simulated in ORS" into jb-wip (diff)
parentCreate busybox symlinks during compile (diff)
downloadandroid_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar.gz
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar.bz2
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar.lz
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar.xz
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.tar.zst
android_bootable_recovery-f16389d7d199928f7b35a18d52178c19ea6d35d1.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index f7d75f94c..f10ca463d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -208,6 +208,20 @@ endif
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
+# 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
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_TAGS := tests