diff --git a/src/shared/generate-syscall-list.py b/src/shared/generate-syscall-list.py index 13a6ae9241e08..8fc96f7b067d7 100755 --- a/src/shared/generate-syscall-list.py +++ b/src/shared/generate-syscall-list.py @@ -1,5 +1,14 @@ #!/usr/bin/env python import sys +import os + +s390 = 's390' in os.uname().machine +arm = 'arm' in os.uname().machine for line in open(sys.argv[1]): + if line.startswith('s390_') and not s390: + continue + if line.startswith('arm_') and not arm: + continue + print('"{}\\0"'.format(line.strip()))