diff options
author | Yifan Hong <elsk@google.com> | 2017-05-22 18:08:02 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2017-05-22 18:08:02 -0700 |
commit | 49641ba865074a574436ac44201eca3a8afc2757 (patch) | |
tree | f2af7e70e21987bda79c4bcaeb54efa534b412be /toolbox/Android.bp | |
parent | 7d213d08e78073d9f217271c1aaeb6d6f20c8eb4 (diff) | |
download | core-49641ba865074a574436ac44201eca3a8afc2757.tar.gz core-49641ba865074a574436ac44201eca3a8afc2757.tar.bz2 core-49641ba865074a574436ac44201eca3a8afc2757.zip |
libtoolbox_dd / grep: Android.mk -> bp
Bug: 37512442
Test: links
Change-Id: I98b2b463a69b065eff2bea562ce6be50f8a12341
Diffstat (limited to 'toolbox/Android.bp')
-rw-r--r-- | toolbox/Android.bp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/toolbox/Android.bp b/toolbox/Android.bp new file mode 100644 index 000000000..1c9fb2095 --- /dev/null +++ b/toolbox/Android.bp @@ -0,0 +1,44 @@ +common_cflags = [ + "-Werror", + "-Wno-unused-parameter", + "-Wno-unused-const-variable", + "-include bsd-compatibility.h" +] + +cc_library_static { + srcs: [ + "upstream-netbsd/bin/dd/args.c", + "upstream-netbsd/bin/dd/conv.c", + "upstream-netbsd/bin/dd/dd.c", + "upstream-netbsd/bin/dd/dd_hostops.c", + "upstream-netbsd/bin/dd/misc.c", + "upstream-netbsd/bin/dd/position.c", + "upstream-netbsd/lib/libc/gen/getbsize.c", + "upstream-netbsd/lib/libc/gen/humanize_number.c", + "upstream-netbsd/lib/libc/stdlib/strsuftoll.c", + "upstream-netbsd/lib/libc/string/swab.c", + "upstream-netbsd/lib/libutil/raise_default_signal.c", + ], + cflags: common_cflags + [ + "-Dmain=dd_main", + "-DNO_CONV", + ], + local_include_dirs: ["upstream-netbsd/include/"], + name: "libtoolbox_dd", +} + +// We build BSD grep separately, so it can provide egrep and fgrep too. +cc_binary { + name: "grep", + srcs: [ + "upstream-netbsd/usr.bin/grep/fastgrep.c", + "upstream-netbsd/usr.bin/grep/file.c", + "upstream-netbsd/usr.bin/grep/grep.c", + "upstream-netbsd/usr.bin/grep/queue.c", + "upstream-netbsd/usr.bin/grep/util.c", + ], + cflags: common_cflags, + local_include_dirs: ["upstream-netbsd/include/"], + symlinks: ["egrep", "fgrep"], + +} |