mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
27c6321afe
commit
bb7c110320
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user