Allow setting of TARGET_PLATFORM.

This overrides the linux seccomp building, useful
for cross compiling Kore to other linux architectures.
This commit is contained in:
Joris Vink 2021-11-29 15:43:43 +01:00
parent efc7b3d9a6
commit 0d39e5c62a
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,12 @@
#
# Linux specific defines and system call maps.
PLATFORM=$(uname -m)
if [ -z "$TARGET_PLATFORM" ]; then
PLATFORM=$(uname -m)
else
PLATFORM=$TARGET_PLATFORM
fi
BASE=$(dirname $0)
case "$PLATFORM" in