User:Jbilyk

From Alpine Linux
Revision as of 21:25, 17 September 2011 by Jbilyk (talk | contribs) (→‎ARM port progress: attempt #2 didn't work, so back to #1)

ARM port progress

Process so far:

Binutils:

binutils-2.21.1a.tar.bz2 with the following patch:
http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-devtools/binutils/binutils/clone-shadow.patch
apk add alpine-sdk zlib-dev
./configure --target=arm-linux --prefix=/usr/local/armtoolchain
make
make install

stage1:

unpack 3.0.4 kernel sources
modify makefile: SUBARCH = arm
apk add ncurses-dev
make menuconfig  (ARM Ltd. Versatile family)
apk add gmp-dev mpfr-dev libmpc-dev
download & unpack gcc-4.6.1 sources
./configure --target=arm-linux --prefix=/usr/local/armtoolchain --with-headers=/usr/local/src/linux-3.0.4/include --enable-languages=c --disable-threads --disable-shared
make all-gcc
make install-gcc

stage2:

unpack uclibc0.9.32 sources
sed -i -e "s/^ABI_VERSION.*/ABI_VERSION := 0.9.32/" -e "s/-Wold-style-declaration//g" Rules.mak
KERNEL_HEADERS=/usr/local/src/linux-3.0.4/include
wget http://git.alpinelinux.org/cgit/aports/tree/main/libc0.9.32/uclibcconfig.arm -O /usr/local/src/uClibc-0.9.32/.config
CC=arm-linux-gcc
PATH=${PATH}:/usr/local/armtoolchain/bin
make silentoldconfig
apply patches from http://git.alpinelinux.org/cgit/aports/tree/main/libc0.9.32 to uclibc0.9.32 source directory
make all CROSS=arm-linux-

That last make command didn't go over so well...