Chris Parsons | 8b768d3 | 2020-09-29 02:44:25 -0400 | [diff] [blame] | 1 | # This file added for experimental interoperability with Bazel. |
| 2 | package( |
| 3 | default_visibility = ["@//:__pkg__"], |
| 4 | ) |
| 5 | |
| 6 | genrule( |
| 7 | name = "syscalls-arm", |
| 8 | outs = ["syscalls-arm.S"], |
| 9 | srcs = ["SYSCALLS.TXT"], |
| 10 | tools = ["//bionic/libc/tools:bionic-gensyscalls"], |
| 11 | cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) arm $< > $@", |
| 12 | ) |
| 13 | |
| 14 | genrule( |
| 15 | name = "syscalls-arm64", |
| 16 | outs = ["syscalls-arm64.S"], |
| 17 | srcs = ["SYSCALLS.TXT"], |
| 18 | tools = ["//bionic/libc/tools:bionic-gensyscalls"], |
| 19 | cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) arm64 $< > $@", |
| 20 | ) |
| 21 | |
| 22 | genrule( |
| 23 | name = "syscalls-x86", |
| 24 | outs = ["syscalls-x86.S"], |
| 25 | srcs = ["SYSCALLS.TXT"], |
| 26 | tools = ["//bionic/libc/tools:bionic-gensyscalls"], |
| 27 | cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) x86 $< > $@", |
| 28 | ) |
| 29 | |
| 30 | genrule( |
| 31 | name = "syscalls-x86_64", |
| 32 | outs = ["syscalls-x86_64.S"], |
| 33 | srcs = ["SYSCALLS.TXT"], |
| 34 | tools = ["//bionic/libc/tools:bionic-gensyscalls"], |
| 35 | cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) x86_64 $< > $@", |
| 36 | ) |