blob: 9ef1efb3924c1182f660d209c2818cc3f7442217 [file] [log] [blame]
Howard Chena8830dc2017-02-16 14:28:08 +08001cc_binary_host {
Howard Chena8830dc2017-02-16 14:28:08 +08002 srcs: [
3 "libkmod/libkmod.c",
4 "libkmod/libkmod-file.c",
5 "libkmod/libkmod-module.c",
6 "libkmod/libkmod-config.c",
7 "libkmod/libkmod-index.c",
8 "libkmod/libkmod-elf.c",
9 "libkmod/libkmod-list.c",
10 "libkmod/libkmod-signature.c",
11 "shared/array.c",
12 "shared/scratchbuf.c",
13 "shared/util.c",
14 "shared/hash.c",
15 "shared/strbuf.c",
16 "tools/port.c",
17 "tools/depmod.c",
18 "tools/kmod.c",
19 "tools/modinfo.c",
20 "tools/rmmod.c",
21 "tools/insert.c",
22 "tools/log.c",
23 "tools/modprobe.c",
24 "tools/static-nodes.c",
25 "tools/insmod.c",
26 "tools/lsmod.c",
27 "tools/remove.c",
28 ],
29
30 name: "depmod",
31 local_include_dirs: ["port-gnu"],
32 cflags: [
33 "-include config.h",
34 "-ffunction-sections",
35 "-fdata-sections",
36 "-Wall",
Chih-Hung Hsieh84d0ce62017-09-28 13:29:55 -070037 "-Werror",
Elliott Hughes3548f5a2018-10-29 13:51:48 -070038 "-Wno-format",
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}