[Klone-users] Cross-compiling klone

Thomas Kotschenreuther | RA Consulting t.kotschenreuther at rac.de
Fri Nov 21 05:45:46 EST 2008


Hello,

I try to cross-compile klone, but the toolchain settings seem to be ignored. Is there anything, I miss?

I did the following: 

1. download the latest release: 

colinux:~/dev/klone_flea# pwd
/root/dev/klone_flea
colinux:~/dev/klone_flea# wget http://www.koanlogic.com/download/klone/klone-2.1.1.tar.gz

2. create a target toolchain file:

The file 'tricore.tc' contains the following:
####### tricore.tc ########
colinux:~/dev/klone_flea# cat tricore.tc
INCS = /usr/tricore//include                     

CC = tricore-gcc 
CFLAGS = -I${INCS} -Wall -fPIC -mtc13 -mall-errata -Wa,-mdmi12 -fno-schedule-insns -fno-schedule-insns2 -mhard-float -DTRICORE 
LDFLAGS = -mtricorelinux  
CXX = tricore-g++ 
CXXFLAGS = ${CFLAGS}
LD = tricore-ld
STRIP = tricore-strip 
RANLIB = tricore-ranlib
NM = tricore-nm
####### end tricore.tc ########

3. untar the archive:

colinux:~/dev/klone_flea# tar -xvzf klone-2.1.1.tar.gz 

colinux:~/dev/klone_flea# cd klone-2.1.1

4. copy toolchain file into makl/tc folder:

colinux:~/dev/klone_flea/klone-2.1.1# cp ../tricore.tc build/makl/tc/

(In a previous try, I tried to set the KLONE_CUSTOM_TC variable pointing to the original file, but then an error message said something like: tricore.tc file not found in build/makl/tc folder.)

5. change root-Makefile for use of tricore toolchain:

colinux:~/dev/klone_flea/klone-2.1.1# cat Makefile
[..]
# cross-compiling (see build/makl/tc/* for the list of supported platforms)
MAKL_PLATFORM = tricore
[..]

6. executed configure-script for cross-compiling:

colinux:~/dev/klone_flea/klone-2.1.1# ./configure --cross_compile
make: Nothing to be done for `all'.
make: Entering directory `/usr/dev/klone_flea/klone-2.1.1/build/makl'
installing shlib file "/usr/dev/klone_flea/klone-2.1.1/build/makl/shlib/null.mk"
installing toolchain file "/usr/dev/klone_flea/klone-2.1.1/build/makl/tc/tricore.tc"
make: Leaving directory `/usr/dev/klone_flea/klone-2.1.1/build/makl'
preprocessing command-line arguments
checking for basic required tools
setting package name to klapp
setting version to 2.1.1
handling command-line arguments
checking dependencies
processing configuration output from cache

7. startet make:
colinux:~/dev/klone_flea/klone-2.1.1# make
make[1]: Entering directory `/usr/dev/klone_flea/klone-2.1.1'
make[2]: Entering directory `/usr/dev/klone_flea/klone-2.1.1'
make[2]: Nothing to be done for `host-setup-pre'.
[..]
installing shlib file "/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1/makl/shlib/linux.mk"
installing toolchain file "/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1/makl/tc/linux.tc"
make[3]: Leaving directory `/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1/makl'
preprocessing command-line arguments
checking for basic required tools
setting package name to klone
setting version to 2.1.1
[..]
make[4]: Entering directory `/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1/webapp'
gcc -pipe -I/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1/libu/include -I/usr/dev/klone_flea/klone-2.1.1/build/host/klone-core-2.1.1 -DHAVE_CONF_H   -O2  -c webapp.c -o webapp.o
[..]



Although I set to use the tricore.tc settings, the standard gcc is started - why? 

Any help would be appreciated.

Thanks and regards

Thomas Kotschenreuther
----------------------------------------------------
Dipl.-Inform. Thomas Kotschenreuther
RA Consulting GmbH
Zeiloch 6a
D-76646 Bruchsal
Tel: +49 (0) 72 51 / 38 62 - 38
Fax: +49 (0) 72 51 / 38 62 - 14
E-Mail: <mailto:t.kotschenreuther at rac.de>
Web: www.rac.de
Sitz der Gesellschaft: Bruchsal
Amtsgericht Mannheim HRB 231127
Geschäftsführer: Armin Rupalla, Heiko Bauer
---------------------------------------------------
ORACLE Partner
---------------------------------------------------
DIN EN ISO 9001:2000 zertifiziert 






More information about the klone-users mailing list