config/optimize: drop unused MACHINE_HARDWARE_CPU/PLATFORM variables

uname options -p and -i are non portable and return "unknown" on
Linux with GNU coreutils as there's no OS support for it.

Note: some distributions like Fedora or Ubunto patch coreutils so
that uname -p (more or less) returns the machine name (uname -m output).
But that should not be used and fails on distributions like Debian
that don't add that patch.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2022-06-30 16:30:38 +02:00
parent 27c6321afe
commit bb7c110320

View File

@ -65,9 +65,7 @@ if [ -z "$HOST_LIBDIR" ]; then
HOST_LIBDIR="$TOOLCHAIN/lib"
# ubuntu/debian specific "multiarch support"
export MACHINE_HARDWARE_CPU="$(uname -p)"
export MACHINE_HARDWARE_NAME="$(uname -m)"
export MACHINE_HARDWARE_PLATFORM="$(uname -i)"
FAMILY_TRIPLET=$($LOCAL_CC -print-multiarch)
if [ -n "$FAMILY_TRIPLET" ]; then
if [ -d /lib/$FAMILY_TRIPLET ]; then