[ELDK] Rebuilding the crosstool rpm on SL5
Dach Miroslaw
miroslaw.dach at psi.ch
Tue Jan 6 15:33:05 CET 2009
Dear Sirs,
I have the Scientific Linux 5 (SL5) distribution based system on my PC. I wanted to rebuild the crosstools source RPM (which is part of ELDK 4.2) on my host SL5 for ppc_4xx and ppc_4xxFP target architectures.
To do so I have dowloaded the the crosstool-0.43-1.src.rpm from:
http://ftp.denx.de/pub/eldk/4.2/ppc-linux-x86/sources/SRPMS/crosstool-0.43-1.src.rpm
Next I have read the documentation about rebuilding the rpm sources. I understood that to rebuild the rpm package like
crosstool-0.43-1.src.rpm from sources I need first to install the whole ELDK 4.2 and use commands like ppc_4xx-rpmbuild ?
I have tried however to use native SL5 rpm and rpmbuild programs.
unfortunately rpmbuild -ba crosstool.spec did not work:
error: parse error in expression
error: /home/devl/Work/RedHat-RPMS/redhat/SPECS/crosstool.spec_org:35: parseExpressionBoolean returns -1
error: Package has no %description: crosstool
I have added the definition to the crosstool.spec at the beginning of the file:
%define _targetarch ppc
The rpm build process was sucessful. I have got 3 rpms:
crosstool-0.43-1.i386.rpm
crosstool-powerpc-devel-0.43-1.i386.rpm
crosstool-targetcomponents-0.43-1.i386.rpm
It seems to be that only one contains files: crosstool-powerpc-devel-0.43-1.i386.rpm
Two other files do not contain files.
The cross ggc compiler is loacated under: /usr/bin/powerpc-linux-gcc
In the past when I was dealing with ELDK 4.1 I have had in addition to real files also the
symbolic links like ppc_4xx-gcc -> powerpc-linux-gcc.
Is it sufficient to define CROSS_COMPILE variable to deal either with ppc_4xx or ppc_4xxFP architectures?
I however do not see crosscompiled libraries (shared libraries) for ppc_4xx or/and ppc_4xxFP?
I will be very much grateful for help on that subject.
Best Regards
Mirek
More information about the eldk
mailing list