From 95e8007578193422ef7fe2d098b80e8ba99fc48d Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 24 Aug 2017 21:45:50 -0500 Subject: DO NOT MERGE Android 8.0 stuff Change-Id: I8c8a9734adbf36c33463123844fa6e078934ae34 --- toybox/Android.mk | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'toybox') diff --git a/toybox/Android.mk b/toybox/Android.mk index c4f0395f7..ca8fe46cc 100644 --- a/toybox/Android.mk +++ b/toybox/Android.mk @@ -69,7 +69,6 @@ LOCAL_SRC_FILES := \ toys/android/runcon.c \ toys/android/setenforce.c \ toys/android/setprop.c \ - toys/lsb/dmesg.c \ toys/lsb/hostname.c \ toys/lsb/killall.c \ toys/lsb/md5sum.c \ @@ -213,7 +212,6 @@ LOCAL_SRC_FILES += \ toys/other/xxd.c \ toys/pending/arp.c \ toys/pending/diff.c \ - toys/pending/ftpget.c \ toys/pending/lsof.c \ toys/pending/telnet.c \ toys/pending/test.c \ @@ -222,6 +220,17 @@ LOCAL_SRC_FILES += \ toys/posix/ps.c \ toys/posix/ulimit.c +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) +# Android 8.0 had some tools in different paths +LOCAL_SRC_FILES += \ + toys/pending/dmesg.c \ + toys/net/ftpget.c +else +LOCAL_SRC_FILES += \ + toys/lsb/dmesg.c \ + toys/pending/ftpget.c +endif + # Account for master branch changes pulld into CM14.1 ifneq ($(CM_BUILD),) LOCAL_SRC_FILES += \ @@ -241,13 +250,23 @@ LOCAL_SRC_FILES += \ toys/pending/resize.c \ toys/posix/file.c else +LOCAL_SRC_FILES += \ + toys/other/switch_root.c +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) +# Android 8.0 had some tools in different paths +LOCAL_SRC_FILES += \ + toys/net/ifconfig.c \ + toys/net/netcat.c \ + toys/net/netstat.c \ + toys/net/rfkill.c +else LOCAL_SRC_FILES += \ toys/other/ifconfig.c \ toys/other/netcat.c \ toys/other/rfkill.c \ - toys/other/switch_root.c \ toys/pending/netstat.c endif +endif else LOCAL_SRC_FILES += \ toys/other/ifconfig.c \ -- cgit v1.2.3