android - Nexus 6 Kernel Build Error -
working on building nexus 6 kernel (source: https://android.googlesource.com/kernel/msm.git) under android-msm-shamu-3.10-lollipop-mr1 branch. using arm-linux-androideabi-4.9 toolchain.
i'm receiving following error:
cc drivers/net/wireless/bcmdhd/dhd_linux.o drivers/net/wireless/bcmdhd/dhd_linux.c: in function 'dhd_watchdog_thread': drivers/net/wireless/bcmdhd/dhd_linux.c:2978:47: error: 'max_rt_prio' undeclared (first use in function) param.sched_priority = (dhd_watchdog_prio < max_rt_prio)? ^ drivers/net/wireless/bcmdhd/dhd_linux.c:2978:47: note: each undeclared identifier reported once each function appears in drivers/net/wireless/bcmdhd/dhd_linux.c: in function 'dhd_dpc_thread': drivers/net/wireless/bcmdhd/dhd_linux.c:3095:42: error: 'max_rt_prio' undeclared (first use in function) param.sched_priority = (dhd_dpc_prio < max_rt_prio)?dhd_dpc_prio:(max_rt_prio-1); ^ drivers/net/wireless/bcmdhd/dhd_linux.c: in function 'dhd_rxf_thread': drivers/net/wireless/bcmdhd/dhd_linux.c:3156:42: error: 'max_rt_prio' undeclared (first use in function) param.sched_priority = (dhd_rxf_prio < max_rt_prio)?dhd_rxf_prio:(max_rt_prio-1); ^ drivers/net/wireless/bcmdhd/dhd_linux.c:3160:2: error: implicit declaration of function 'daemonize' [-werror=implicit-function-declaration] daemonize("dhd_rxf"); ^ drivers/net/wireless/bcmdhd/dhd_linux.c: in function 'dhd_preinit_ioctls': drivers/net/wireless/bcmdhd/dhd_linux.c:5354:3: error: implicit declaration of function 'srandom32' [-werror=implicit-function-declaration] srandom32((uint)jiffies); ^ drivers/net/wireless/bcmdhd/dhd_linux.c:5355:3: error: implicit declaration of function 'random32' [-werror=implicit-function-declaration] rand_mac = random32(); ^ cc1: warnings being treated errors make[4]: *** [drivers/net/wireless/bcmdhd/dhd_linux.o] error 1 make[3]: *** [drivers/net/wireless/bcmdhd] error 2 make[2]: *** [drivers/net/wireless] error 2 make[1]: *** [drivers/net] error 2 make: *** [drivers] error 2
from research, appears random32 , srandom32 older kernel (~3.6). used grub boot older kernel version. however, make must still running newer (3.16) kernel's libraries i've received same errors.
i edited makefile include 'include' directory of 3.06 headers file, didn't fix issue either. how can force make use these old libraries instead of new ones. , why need go old kernel build nexus 6 kernel? built nexus 4 kernel before out problems , older phone..
Comments
Post a Comment