forked from open-vela/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.bp
71 lines (68 loc) · 2 KB
/
Android.bp
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
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_SCANSET",
"-DCONFIG_LIBC_NUMBERED_ARGS",
"-DCONFIG_STDIO_DISABLE_BUFFERING",
"-DCONFIG_STREAM_BASE64_BUFFER_SIZE=128",
"-DCONFIG_STREAM_HEXDUMP_BUFFER_SIZE=128",
"-DCONFIG_STREAM_OUT_BUFFER_SIZE=64",
"-DDEBUGASSERT=assert",
"-Dget_errno()=errno",
"-Dset_errno(e)=do{errno = (int)(e);}while(0)",
"-D_NX_GETERRVAL(r)=(-errno)",
"-DOK=0",
"-DFAR=",
],
proprietary: true,
}
genrule {
name: "nuttx_headers_gen",
srcs: [
"include/nuttx/streams.h",
"include/nuttx/compiler.h",
"include/nuttx/crc32.h",
],
cmd: "mkdir $(genDir)/nuttx; touch $(out); cp $(in) $(genDir)/nuttx",
out: [
"nuttx/streams.h",
"nuttx/compiler.h",
"nuttx/config.h",
"nuttx/lib/lib.h",
"nuttx/crc32.h",
],
}
cc_library_static {
name: "libnuttx_libc",
header_libs: ["nuttx_libc_headers"],
srcs: [
"libs/libc/stdio/lib_dtoa_data.c",
"libs/libc/stdio/lib_dtoa_engine.c",
"libs/libc/stdio/lib_libbsprintf.c",
"libs/libc/stdio/lib_libsprintf.c",
"libs/libc/stdio/lib_libvscanf.c",
"libs/libc/stdio/lib_libvsprintf.c",
"libs/libc/stdio/lib_ultoa_invert.c",
"libs/libc/stream/lib_libnoflush.c",
"libs/libc/stream/lib_meminstream.c",
"libs/libc/stream/lib_stdoutstream.c",
"libs/libc/misc/lib_crc32.c",
],
defaults : [ "nuttx_libc_defaults" ],
local_include_dirs:["libs/libc/"],
proprietary: true,
}