aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-03-05 12:10:37 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-03-06 21:21:59 +0100
commitfdaa4c4195d06e81863db07cf0dfcdfc4fa472d3 (patch)
tree1917fa591d68f58d25d727a7d01548a26a885c39 /Android.mk
parent65eb92c9b6519c57546d93e0c83ccdbebafb632a (diff)
downloadexternal_wipe-master.tar.gz
external_wipe-master.tar.bz2
external_wipe-master.zip
Copying the The config.h from config.h.in didn't work and resulted in errors like that: external/wipe/dir.c: In function 'drill_down': external/wipe/dir.c:92:17: warning: assignment from incompatible pointer type while ((entry = readdir(dir)) != NULL) ^ external/wipe/dir.c:94:24: error: dereferencing pointer to incomplete type if (strncmp(entry->d_name, ".", 2) && strncmp(entry->d_name, "..", 3) != 0) ^ external/wipe/dir.c:94:58: error: dereferencing pointer to incomplete type if (strncmp(entry->d_name, ".", 2) && strncmp(entry->d_name, "..", 3) != 0) ^ external/wipe/dir.c:95:15: error: dereferencing pointer to incomplete type do_file(entry->d_name); /*** process file ***/ ^ external/wipe/dir.c: In function 'dir_sync': external/wipe/dir.c:299:36: warning: unused parameter 'name' [-Wunused-parameter] private int dir_sync(int ffd, char name[]) ^ So it was generated on Parabola i686 by running ./configure. Removing the errno declaration was also needed to make it compile as otherwise we end up with errors like this one: In file included from external/wipe/blkdev.c:27:0: external/wipe/blkdev.c:66:12: error: conflicting types for '__errno' extern int errno; ^ bionic/libc/include/errno.h:44:22: note: previous declaration of '__errno' was here extern volatile int* __errno(void) __pure2; ^ Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..3d77ec2
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,24 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ blkdev.c \
+ dir.c \
+ file.c \
+ io.c \
+ lock.c \
+ main.c \
+ mt.c \
+ percent.c \
+ prompt.c \
+ rand.c \
+ str.c \
+ text.c \
+ wipe.c
+
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE := wipe
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+
+include $(BUILD_EXECUTABLE)