blob: 0736aabc2e08cc2f7ab244d56f0b9c4fd551b03a [file] [log] [blame]
Howard Chena8830dc2017-02-16 14:28:08 +08001cc_binary_host {
2 clang: true,
3 srcs: [
4 "libkmod/libkmod.c",
5 "libkmod/libkmod-file.c",
6 "libkmod/libkmod-module.c",
7 "libkmod/libkmod-config.c",
8 "libkmod/libkmod-index.c",
9 "libkmod/libkmod-elf.c",
10 "libkmod/libkmod-list.c",
11 "libkmod/libkmod-signature.c",
12 "shared/array.c",
13 "shared/scratchbuf.c",
14 "shared/util.c",
15 "shared/hash.c",
16 "shared/strbuf.c",
17 "tools/port.c",
18 "tools/depmod.c",
19 "tools/kmod.c",
20 "tools/modinfo.c",
21 "tools/rmmod.c",
22 "tools/insert.c",
23 "tools/log.c",
24 "tools/modprobe.c",
25 "tools/static-nodes.c",
26 "tools/insmod.c",
27 "tools/lsmod.c",
28 "tools/remove.c",
29 ],
30
31 name: "depmod",
32 local_include_dirs: ["port-gnu"],
33 cflags: [
34 "-include config.h",
35 "-ffunction-sections",
36 "-fdata-sections",
37 "-Wall",
Chih-Hung Hsieh84d0ce62017-09-28 13:29:55 -070038 "-Werror",
Howard Chena8830dc2017-02-16 14:28:08 +080039 "-Wno-unused-parameter",
40 "-Wno-unused-variable",
41 "-Dsecure_getenv=getenv",
42 "-DHAVE_CONFIG_H",
43 "-DANOTHER_BRICK_IN_THE",
44 "-DSYSCONFDIR=\"/tmp\"",
45 ],
46}