Lines 67-73
uclibc_endian() {
Link Here
|
67 |
# XXX: this wont work for a toolchain which is bi-endian, but we |
67 |
# XXX: this wont work for a toolchain which is bi-endian, but we |
68 |
# dont have any such thing at the moment, so not a big deal |
68 |
# dont have any such thing at the moment, so not a big deal |
69 |
touch "${T}"/endian.s |
69 |
touch "${T}"/endian.s |
70 |
$(tc-getAS) "${T}"/endian.s -o "${T}"/endian.o |
70 |
$(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o |
71 |
case $(file "${T}"/endian.o) in |
71 |
case $(file "${T}"/endian.o) in |
72 |
*" MSB "*) echo "big";; |
72 |
*" MSB "*) echo "big";; |
73 |
*" LSB "*) echo "little";; |
73 |
*" LSB "*) echo "little";; |