diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-11-16 13:41:25 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-11-18 19:02:10 -0800 |
commit | f2c876e52e994e027370c5840c03f0b795648081 (patch) | |
tree | 301fbc82387ee8a6bd5ed38a9c0c793438430326 /misc | |
parent | f13d12fe9cebb595f7e18e09a1e97486ae874f80 (diff) | |
download | iproute2-f2c876e52e994e027370c5840c03f0b795648081.tar.gz |
Convert to Android.bp
See build/soong/README.md for more information
ss was added to PRODUCT_PACKAGES_DEBUG in base_system.mk, as module
tagging is not supported in Soong.
Test: cd external/iproute2; mma
Change-Id: I8b44e240d998e47b8ffc60e951451d570a8ae025
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Android.bp | 23 | ||||
-rw-r--r-- | misc/Android.mk | 37 |
2 files changed, 23 insertions, 37 deletions
diff --git a/misc/Android.bp b/misc/Android.bp new file mode 100644 index 00000000..8e86e728 --- /dev/null +++ b/misc/Android.bp @@ -0,0 +1,23 @@ +cc_binary { + name: "ss", + defaults: ["iproute2_defaults"], + + srcs: [ + "ss.c", + "ssfilter.y", + ], + + shared_libs: [ + "libiprouteutil", + "libnetlink", + "libselinux", + ], + + cflags: [ + "-Wno-missing-field-initializers", + "-Wno-tautological-pointer-compare", + "-Dsethostent(x)=", + ], + + ldflags: ["-Wl,-export-dynamic"], +} diff --git a/misc/Android.mk b/misc/Android.mk deleted file mode 100644 index 2fd13070..00000000 --- a/misc/Android.mk +++ /dev/null @@ -1,37 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := ss.c ssfilter.y - -LOCAL_MODULE := ss - -LOCAL_MODULE_TAGS := debug - -LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink libselinux - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include $(UAPI_INCLUDES) - -## -# "-x c" forces the lex/yacc files to be compiled as c the build system -# otherwise forces them to be c++. -yacc_flags := -x c - -LOCAL_CFLAGS := \ - -O2 -g \ - -W -Wall \ - -Wno-missing-field-initializers \ - -Wno-sign-compare \ - -Wno-tautological-pointer-compare \ - -Wno-unused-parameter \ - -Werror \ - '-Dsethostent(x)=' \ - $(yacc_flags) \ - -DHAVE_SETNS \ - -DHAVE_SELINUX - -LOCAL_CPPFLAGS := $(yacc_flags) - -LOCAL_LDFLAGS := -Wl,-export-dynamic -include $(BUILD_EXECUTABLE) - |