Remove global seccomp list.
Never used, and incompatible with having bionic in a mainline module.
Test: builds
Change-Id: If377f66cc105fd3a1ec4d9c92330fa6a2d2c145c
diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py
index 0f3f1dc..d863e20 100755
--- a/libc/tools/gensyscalls.py
+++ b/libc/tools/gensyscalls.py
@@ -17,7 +17,7 @@
import tempfile
-all_arches = [ "arm", "arm64", "mips", "mips64", "x86", "x86_64" ]
+SupportedArchitectures = [ "arm", "arm64", "mips", "mips64", "x86", "x86_64" ]
bionic_libc = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
@@ -456,19 +456,19 @@
# Parse the architecture list.
arch_list = line[pos_rparen+1:].strip()
if arch_list == "all":
- for arch in all_arches:
+ for arch in SupportedArchitectures:
t[arch] = True
elif arch_list == "lp32":
- for arch in all_arches:
+ for arch in SupportedArchitectures:
if "64" not in arch:
t[arch] = True
elif arch_list == "lp64":
- for arch in all_arches:
+ for arch in SupportedArchitectures:
if "64" in arch:
t[arch] = True
else:
for arch in string.split(arch_list, ','):
- if arch in all_arches:
+ if arch in SupportedArchitectures:
t[arch] = True
else:
E("invalid syscall architecture '%s' in '%s'" % (arch, line))