[Galaxy S II Android Development] endstille:
first of all, thank you :)

but as i googled and failed for day's i would like to show more detailed, what i did so far.

after trying linaro 4.7 and 4.8 with the same result, i cloned Dori's repository as well.

then i linked their liinaro-build to my prebuilt and prebuilts folder:

ln -s /home/marc/android/kernel/Dorimanx-SG2-I9100-Kernel/linaro-12-android-toolchain/ /home/marc/android/sgs2/prebuilts/gcc/linux-x86/arm/dori-linaro
ln -s /home/marc/android/kernel/Dorimanx-SG2-I9100-Kernel/linaro-12-android-toolchain/ /home/marc/android/sgs2/prebuilt/linux-x86/toolchain/dori-linaro

then i edited my envsetup.sh

:~$ nano -w ~/android/sgs2/build/envsetup.sh

[..]
export ANDROID_EABI_TOOLCHAIN=
local ARCH=$(get_build_var TARGET_ARCH)
case $ARCH in
x86) toolchaindir=x86/i686-linux-android-4.6/bin
;;
#arm) toolchaindir=arm/arm-linux-androideabi-4.6/bin
#arm) toolchaindir=arm/android-toolchain-eabi/bin
arm) toolchaindir=arm/dori-linaro/bin
;;
mips) toolchaindir=mips/mipsel-linux-android-4.6/bin
;;
*)
echo "Can't find toolchain for unknown architecture: $ARCH"
toolchaindir=xxxxxxxxx
;;
esac
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ANDROID_EABI_TOOLCHAIN=$gccprebuiltdir/$toolchaindir
fi
unset ARM_EABI_TOOLCHAIN ARM_EABI_TOOLCHAIN_PATH
case $ARCH in
arm)
#toolchaindir=arm/arm-eabi-4.6/bin
toolchaindir=arm/dori-linaro/bin
#toolchaindir=arm/gcc-linaro-4.7-2013.06-1
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/$toolchaindir"
ARM_EABI_TOOLCHAIN_PATH=":$gccprebuiltdir/$toolchaindir"
fi
;;
mips) toolchaindir=mips/mips-eabi-4.4.3/bin
;;
*)
# No need to set ARM_EABI_TOOLCHAIN for other ARCHs
;;
esac
[..]

and the BoardConfig.mk

:~$ nano -w ~/android/sgs2/device/samsung/i9100/BoardConfig.mk

# Inline kernel building
TARGET_KERNEL_SOURCE := kernel/samsung/smdk4412
TARGET_KERNEL_CONFIG := cyanogenmod_i9100_defconfig
TARGET_KERNEL_CUSTOM_TOOLCHAIN := dori-linaro

then i compile:

:~/android/sgs2$ source build/envsetup.sh && brunch i9100

and in the end it always fails like this (it just did):

Install: /home/marc/android/sgs2/out/target/product/i9100/system/lib/libfilterpack_imageproc.so
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
LZMA arch/arm/boot/compressed/piggy.lzma
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/piggy.lzma.o
LD arch/arm/boot/compressed/vmlinux
/home/marc/android/sgs2/prebuilts/gcc/linux-x86/arm/dori-linaro/bin/arm-eabi-ld: error: arch/arm/boot/compressed/piggy.lzma.o: unknown CPU architecture
/home/marc/android/sgs2/prebuilts/gcc/linux-x86/arm/dori-linaro/bin/arm-eabi-ld: error: arch/arm/boot/compressed/lib1funcs.o: unknown CPU architecture
make[4]: *** [arch/arm/boot/compressed/vmlinux] Fehler 1
make[3]: *** [arch/arm/boot/compressed/vmlinux] Fehler 2
make[2]: *** [zImage] Fehler 2
make[1]: *** [sub-make] Fehler 2
make[1]: Verlasse Verzeichnis '/home/marc/android/sgs2/kernel/samsung/smdk4412'
make: *** [TARGET_KERNEL_BINARIES] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
marc@nerberd:~/android/sgs2$

thanks for pointing out my mistake :)

BR Marc