lib/xwrap.c \
main.c \
toys/android/getenforce.c \
- toys/android/getprop.c \
toys/android/load_policy.c \
toys/android/log.c \
toys/android/restorecon.c \
toys/other/realpath.c \
toys/other/rev.c \
toys/other/rmmod.c \
+ toys/other/setfattr.c \
toys/other/setsid.c \
toys/other/stat.c \
toys/other/swapoff.c \
toys/pending/dd.c \
toys/pending/diff.c \
toys/pending/expr.c \
+ toys/pending/fmt.c \
toys/pending/getfattr.c \
toys/pending/gzip.c \
toys/pending/lsof.c \
toys/pending/modprobe.c \
toys/pending/more.c \
- toys/pending/setfattr.c \
+ toys/pending/stty.c \
toys/pending/tar.c \
toys/pending/tr.c \
toys/pending/traceroute.c \
common_CFLAGS := \
-std=gnu11 \
-Os \
+ -Wall -Werror \
-Wno-char-subscripts \
-Wno-gnu-variable-sized-type-not-at-end \
-Wno-missing-field-initializers \
-ffunction-sections -fdata-sections \
-fno-asynchronous-unwind-tables \
-toybox_upstream_version := $(shell sed 's/#define.*TOYBOX_VERSION.*"\(.*\)"/\1/p;d' $(LOCAL_PATH)/main.c)
-
-toybox_version := $(toybox_upstream_version)-android
-
toybox_libraries := liblog libselinux libcutils libcrypto libz
-common_CFLAGS += -DTOYBOX_VERSION=\"$(toybox_version)\"
+common_CFLAGS += -DTOYBOX_VENDOR=\"-android\"
# not usable on Android?: freeramdisk fsfreeze install makedevs nbd-client
# partprobe pivot_root pwdx rev rfkill vconfig
file \
find \
flock \
+ fmt \
free \
getenforce \
- getprop \
groups \
gunzip \
gzip \
stat \
stop \
strings \
+ stty \
swapoff \
swapon \
sync \
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_CFLAGS := $(common_CFLAGS)
LOCAL_STATIC_LIBRARIES := libcutils libcrypto libz
-LOCAL_SHARED_LIBRARIES := libselinux_vendor liblog
+LOCAL_SHARED_LIBRARIES := libselinux liblog
LOCAL_MODULE_TAGS := optional
LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(ALL_TOOLS),ln -sf ${LOCAL_MODULE} $(TARGET_OUT_VENDOR_EXECUTABLES)/$(t);)
include $(BUILD_EXECUTABLE)