Topic: Build ttylinux for powerPC
As a starting point for cross-compiling I decided to build ttylinux for powerPC.
I believe I have built the tools - "make powerpc" completed without obvious errors. The test script won't work as this is not a powerpc!
It is not obvious how I now build ttylinux for powerpc. I looked through the scripts and took a guess and changed "ttylinux.dist-config.sh" to say:
# XBT_TARGET_CPU="i486" # Cross-tools tool chain.
XBT_TARGET_CPU="powerpc" # Cross-tools tool chain.I then ran "make dist" with the following result:
ASUS ttylinux-src-8.0 # make dist
Remove ttylinux build.
=> Removing development build directories.
=> Removing boot CD configuration.
=> Removing file system image, boot CD image.
=> Removing binary packages.
=> Removing package lists.
=> Removing build logs.
Initializing the ttylinux build.
=> Creating preliminary development build directories...
...OK
=> Creating base file system directories...
...OK
Building the ttylinux packages.
=> ttylinux project folder
=> /home/ian/ttylinux-src-8.0
=> building ttylinux-8.0
=> with powerpc cross-building Binutils binutils-2.18
=> with powerpc cross-building GCC gcc-4.2.4
=> with GLIBC version glibc-2.7 having Linux kernel interface
=> GLIBC interface to Linux kernel powerpc architecture
=> GLIBC interface to Linux kernel linux-2.6.20
=> for 8 MB target file system image size
##### START cross-building packages
***** glibc-2.7
i> Source package not needed.
i> Getting configuration package cfg-glibc-2.7.tar.bz2.
i> Patching source package, above-directory.
i> Wait 1 [mindless]... OK
i> Building and installing glibc-2.7... DONE
i> Finding all installed files... OK
i> Doing some cleanup after building... done
i> Looking for manpages to compress.
...compressed 0 manpages
...done compress manpages
i> Creating files list for built package glibc-2.7.
...OK
i> Creating installable package for built package glibc-2.7.
tar: lib/ld-linux.so.2: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Build FAILED.
make: *** [pkgs] Error 1
ASUS ttylinux-src-8.0 #Was I heading in the right direction? Is there something obvious that I missed?
Just to make sure I hadn't messed up the i486 build, I pointed "ttylinux.dist-config.sh" back to i486 and did another successful "make dist"
Thanks in advance.
Ian