summaryrefslogtreecommitdiffstats
path: root/attr/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-02-03 20:24:31 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-02-17 04:54:51 +0100
commit91758440d3bd350b30a384c07ff1c827f14a12fe (patch)
treed99fe9285c07e57a3c69107ae1b6ee30d81429da /attr/Android.mk
parentlibtar: support backing up and restoring new Android user.* xattr (diff)
downloadandroid_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar.gz
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar.bz2
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar.lz
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar.xz
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.tar.zst
android_bootable_recovery-91758440d3bd350b30a384c07ff1c827f14a12fe.zip
Diffstat (limited to 'attr/Android.mk')
-rw-r--r--attr/Android.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/attr/Android.mk b/attr/Android.mk
new file mode 100644
index 000000000..2986ab50b
--- /dev/null
+++ b/attr/Android.mk
@@ -0,0 +1,22 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := listxattr.c
+LOCAL_CFLAGS := -c -W
+LOCAL_MODULE := listxattr
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
+LOCAL_PACK_MODULE_RELOCATIONS := false
+
+ifneq ($(TARGET_ARCH), arm64)
+ ifneq ($(TARGET_ARCH), x86_64)
+ LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker
+ else
+ LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64
+ endif
+else
+ LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64
+endif
+
+include $(BUILD_EXECUTABLE)