Index: Templates/config.sub =================================================================== --- Templates/config.sub (revision 486687) +++ Templates/config.sub (working copy) @@ -563,6 +563,12 @@ esac # Decode aliases for certain CPU-COMPANY combinations. +case $field1 in +arm*) + field1=$(uname -p) + basic_machine=$field1-$field2-$field3 +;; +esac case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below.