Howard Chen | a8830dc | 2017-02-16 14:28:08 +0800 | [diff] [blame] | 1 | cc_binary_host { |
Howard Chen | a8830dc | 2017-02-16 14:28:08 +0800 | [diff] [blame] | 2 | 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 Hsieh | 84d0ce6 | 2017-09-28 13:29:55 -0700 | [diff] [blame] | 37 | "-Werror", |
Howard Chen | a8830dc | 2017-02-16 14:28:08 +0800 | [diff] [blame] | 38 | "-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 | } |