I have downloaded a stage 3 and setup my chroot, instead of downloading gentoo sources and having to go through all sorts of hell trying to find the kernel patches from samsung ...etc I chose to downlaod a note3 kernel from the internet:
https://github.com/flashka07/android_ke ... msung_ha3g
this is a very old kerenl version(3.4) that requires gcc4 or 3:
Code: Select all
localhost /root/kernel/android_kernel_samsung_ha3g/include/linux # ls *gcc*
compiler-gcc.h compiler-gcc3.h compiler-gcc4.hI can begin the compilation process but it's not long before I get:
Code: Select all
localhost /root/kernel/android_kernel_samsung_ha3g # make -j4
CHK include/linux/version.h
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
In file included from include/linux/compiler.h:48,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:17,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/compiler-gcc.h:3:2: error: #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
3 | #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
| ^~~~~
In file included from /root/kernel/android_kernel_samsung_ha3g/arch/arm/include/asm/bug.h:59,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
include/asm-generic/bug.h:64:17: error: expected declaration specifiers or '...' before numeric constant
64 | extern __printf(3, 4)
| ^
include/asm-generic/bug.h:64:20: error: expected declaration specifiers or '...' before numeric constant
64 | extern __printf(3, 4)
| ^
include/asm-generic/bug.h:67:17: error: expected declaration specifiers or '...' before numeric constant
67 | extern __printf(4, 5)
| ^
include/asm-generic/bug.h:67:20: error: expected declaration specifiers or '...' before numeric constant
67 | extern __printf(4, 5)
| ^
make[1]: *** [/root/kernel/android_kernel_samsung_ha3g/./Kbuild:36: kernel/bounds.s] Error 1
make: *** [Makefile:992: prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
