Tslib, v5TE not v4t

davef
Tslib.

Having another go at trying to cross-compile Tslib. All I see to be able to
generate are v5TE binaries rather than v4t.

I have -march=armv4t just about everywhere, as you will see below:


#!/bin/bash

export PATH=/usr/local/arm/4.3.2/bin:$PATH

# general cross-compile
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC="${CROSS_COMPILE}gcc -march=armv4t -mtune=arm920t"
export CXX=${CROSS_COMPILE}"g++"
export AR=${CROSS_COMPILE}"ar"
export AS=${CROSS_COMPILE}"as"
export RANLIB=${CROSS_COMPILE}"ranlib"
export LD=${CROSS_COMPILE}"ld"
export STRIP=${CROSS_COMPILE}"strip"


echo " ****************** Configuring tslib  ********************* "

./autogen-clean.sh

export ac_cv_func_malloc_0_nonnull=yes

./autogen.sh

CC=/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc CFLAGS="-O0
-msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t"
CXX="/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++ -O0 -msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t"

./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
-enable-static=no -enable-shared=yes -prefix /usr/local/tslib

make
sudo make install


I found I needed both


export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC="${CROSS_COMPILE}gcc -march=armv4t -mtune=arm920t"


and


CC=/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc CFLAGS="-O0
-msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t"
CXX="/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++ -O0 -msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t"


to get it to compile properly. I have tried doing <make clean> and <make
distclean>.

Also, if I enable-static=yes I get ranlib problems, but I will leave that
for later.

Anyone have any suggestions why it is not being build for the correct
architecture? Using Ubuntu 10.04 and 4.3.2 from FriendlyArm.

Thanks,
Dave