cross-lfs / clfs-embedded

Cross-LFS Embedded Book
Other
13 stars 5 forks source link

MIPS endianness sed line is wrong [trac #1186] #11

Open bradfa opened 5 years ago

bradfa commented 5 years ago

As reported on the mailing list by Tobias:

In Section 4.4 Build Variables (​http://www.clfs.org/view/clfs-embedded/mips/cross-tools/variables.html) right after Table 4.2 in the Commands-Box where it says "Now we will set the architecture ... based on the target triplet provided above", the reader is advised to export CLFS_ARCH as "mips".

Followed by a sed-expression which is obsolete, as the Endianess returned by the expression will always be "big", if the CLFS_ARCH is exported as "mips" just one line earlier - however, one might set the CLFS_ARCH to "mipsel" based on the instructional text which references the Table above. In latter case, the Endianess would indeed return "little", allthough the remainder of the Book an invalid CLFS_ARCH set to "mipsel" would fail any Compilation attempts.

This is trac ticket: https://trac.clfs.org/ticket/1186