blob: cd70b95a8a4cf93c6bcea7071879c73d4f899943 [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",
Howard Chena8830dc2017-02-16 14:28:08 +080038 "-Wno-unused-parameter",
39 "-Wno-unused-variable",
40 "-Dsecure_getenv=getenv",
41 "-DHAVE_CONFIG_H",
42 "-DANOTHER_BRICK_IN_THE",
43 "-DSYSCONFDIR=\"/tmp\"",
44 ],
45}