From 3b56a0226bd1cddbb89b76df17980c624659eb43 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Thu, 9 Jul 2020 16:35:47 +0900 Subject: [PATCH] Add a libipchecksum that contains the C IP checksum code. This is useful for test code that wants to statically link the IP checksum code. This is not currently possible because libnetutils is vendor_available and making it available for static linking is discouraged. Test: m libnetutils libipchecksum Change-Id: Ic7f1864902581b8a5e3626860565b78c168bdb7f --- libnetutils/Android.bp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libnetutils/Android.bp b/libnetutils/Android.bp index 268496f7c..65371fa63 100644 --- a/libnetutils/Android.bp +++ b/libnetutils/Android.bp @@ -23,6 +23,21 @@ cc_library_shared { export_include_dirs: ["include"], } +cc_library_static { + name: "libipchecksum", + + srcs: [ + "checksum.c", + ], + + cflags: [ + "-Wall", + "-Werror", + ], + + export_include_dirs: ["include"], +} + cc_binary { name: "dhcpdbg",