summaryrefslogtreecommitdiffstats
path: root/toybox
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2018-08-24 18:17:36 +0200
committerEthan Yonker <dees_troy@teamw.in>2018-08-24 18:17:39 +0200
commit58f2132bc3954fc704787d477500a209eedb8e29 (patch)
treeeb0f79aacd68724b0c0c091018384ef924380f47 /toybox
parentRemove remaining pieces of supersu (diff)
parentSnap for 4745538 from 723056a83f8c8b15af02d9c302862dbb2304ea8c to pi-release (diff)
downloadandroid_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar.gz
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar.bz2
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar.lz
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar.xz
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.tar.zst
android_bootable_recovery-58f2132bc3954fc704787d477500a209eedb8e29.zip
Diffstat (limited to 'toybox')
-rw-r--r--toybox/Android.mk22
1 files changed, 19 insertions, 3 deletions
diff --git a/toybox/Android.mk b/toybox/Android.mk
index 8c3d7c597..5b2f32fd7 100644
--- a/toybox/Android.mk
+++ b/toybox/Android.mk
@@ -275,7 +275,6 @@ LOCAL_SRC_FILES += \
toys/net/tunctl.c \
toys/pending/getfattr.c \
toys/pending/modprobe.c \
- toys/pending/setfattr.c \
toys/posix/file.c \
toys/posix/uudecode.c \
toys/posix/uuencode.c
@@ -288,6 +287,16 @@ else
LOCAL_SRC_FILES += \
toys/pending/chrt.c
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 27; echo $$?),0)
+# Android 9.0
+LOCAL_SRC_FILES += \
+ toys/other/setfattr.c \
+ toys/pending/fmt.c \
+ toys/pending/stty.c
+else
+LOCAL_SRC_FILES += \
+ toys/pending/setfattr.c
+endif
LOCAL_SHARED_LIBRARIES += liblog
else
LOCAL_SRC_FILES += \
@@ -310,7 +319,7 @@ LOCAL_SRC_FILES += \
endif
LOCAL_CFLAGS += \
- -std=c99 \
+ -std=gnu11 \
-Os \
-Wno-char-subscripts \
-Wno-sign-compare \
@@ -380,7 +389,6 @@ ALL_TOOLS := \
find \
free \
getenforce \
- getprop \
groups \
head \
hostname \
@@ -526,6 +534,7 @@ ALL_TOOLS += \
xxd
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 27; echo $$?),0)
ALL_TOOLS += \
+ getprop \
xzcat
endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0)
@@ -534,6 +543,13 @@ ALL_TOOLS += \
gzip \
gunzip \
zcat
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 27; echo $$?),0)
+ALL_TOOLS += \
+ fmt \
+ start \
+ stop \
+ stty
+endif
endif
# Account for master branch changes pulld into CM14.1
ifneq ($(CM_BUILD),)