-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathAndroid.bp
More file actions
98 lines (95 loc) · 2.81 KB
/
Android.bp
File metadata and controls
98 lines (95 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
cc_library_headers {
name: "nuttx_libc_headers",
generated_headers: [
"nuttx_headers_gen",
],
export_generated_headers: ["nuttx_headers_gen"],
proprietary: true,
}
cc_defaults {
name: "nuttx_libc_defaults",
cflags: [
"-DCONFIG_DISABLE_MOUNTPOINT",
"-DCONFIG_HAVE_DOUBLE",
"-DCONFIG_HAVE_FLOAT",
"-DCONFIG_HAVE_LONG_DOUBLE",
"-DCONFIG_HAVE_LONG_LONG",
"-DCONFIG_LIBC_FLOATINGPOINT",
"-DCONFIG_LIBC_NETDB",
"-DCONFIG_LIBC_NUMBERED_ARGS",
"-DCONFIG_LIBC_PRINT_EXTENSION",
"-DCONFIG_LIBC_SCANSET",
"-DCONFIG_STDIO_DISABLE_BUFFERING",
"-DCONFIG_STREAM_BASE64_BUFFER_SIZE=128",
"-DCONFIG_STREAM_HEXDUMP_BUFFER_SIZE=128",
"-DCONFIG_STREAM_OUT_BUFFER_SIZE=64",
"-DDEBUGASSERT=assert",
"-DFAR=",
"-DOK=0",
"-D_NX_GETERRVAL(r)=(-errno)",
"-Dget_errno()=errno",
"-Dset_errno(e)=do{errno = (int)(e);}while(0)",
],
proprietary: true,
}
genrule {
name: "nuttx_headers_gen",
srcs: [
"include/debug.h",
"include/netdb.h",
"include/nuttx/compiler.h",
"include/nuttx/crc32.h",
"include/nuttx/kmalloc.h",
"include/nuttx/lib/lib.h",
"include/nuttx/net/dns.h",
"include/nuttx/net/ethernet.h",
"include/nuttx/net/netconfig.h",
"include/nuttx/streams.h",
],
cmd: "mkdir -p $(genDir)/nuttx/lib; " +
"mkdir -p $(genDir)/nuttx/net; " +
"touch $(out); " +
"for f in $(in); do " +
"cp $$f $(genDir)/$${f#*include/};" +
"done;",
out: [
"debug.h",
"netdb.h",
"nuttx/compiler.h",
"nuttx/config.h",
"nuttx/crc32.h",
"nuttx/kmalloc.h",
"nuttx/lib/lib.h",
"nuttx/net/dns.h",
"nuttx/net/ethernet.h",
"nuttx/net/netconfig.h",
"nuttx/streams.h",
],
}
cc_library_static {
name: "libnuttx_libc",
header_libs: ["nuttx_libc_headers"],
srcs: [
"libs/libc/misc/lib_crc32.c",
"libs/libc/netdb/lib_freeaddrinfo.c",
"libs/libc/netdb/lib_getaddrinfo.c",
"libs/libc/netdb/lib_gethostentbynamer.c",
"libs/libc/netdb/lib_rexec.c",
"libs/libc/stream/lib_dtoa_data.c",
"libs/libc/stream/lib_dtoa_engine.c",
"libs/libc/stream/lib_libosprintf.c",
"libs/libc/stream/lib_libvscanf.c",
"libs/libc/stream/lib_libvsprintf.c",
"libs/libc/stream/lib_ultoa_invert.c",
"libs/libc/stream/lib_libnoflush.c",
"libs/libc/stream/lib_meminstream.c",
"libs/libc/stream/lib_stdoutstream.c",
],
cflags: [
"-DCONFIG_NET_RPMSG",
"-DERROR=-1",
],
defaults : [ "nuttx_libc_defaults" ],
local_include_dirs:["libs/libc/"],
proprietary: true,
}