编译Android kernel-3.4.0 ,大家用的什么交叉编译链?

wangxigui 发布于 2013/12/26 16:57
阅读 1K+
收藏 0

@邓凡平 大神帮忙看看 。如题:编译Android kernel-3.4.0 ,大家用的什么交叉编译链?

我要编译编译小米公布的kernel-3.4.0,用Android-4.2的arm-eabi-4.6编译链会出错,不知道大家用的是什么工具链啊?

错误为:

GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/kernel/built-in.o: In function `handle_arch_irq':
bootinfo.c:(.data+0x14): undefined reference to `arch_idle'
lib/built-in.o: In function `longkstrtoull_from_user':
dynamic_queue_limits.c:(.text+0x4034): undefined reference to `longkstrtoull'
drivers/built-in.o: In function `pmem_cache_maint':
clkdev.c:(.text+0x3f51c): undefined reference to `invalidate_caches'
clkdev.c:(.text+0x3f52c): undefined reference to `clean_and_invalidate_caches'
clkdev.c:(.text+0x3f540): undefined reference to `clean_caches'
lib/lib.a(memory_alloc.o): In function `__free':
memory_alloc.c:(.text+0x314): undefined reference to `gen_pool_free'
lib/lib.a(memory_alloc.o): In function `mem_type_to_memory_pool':
memory_alloc.c:(.text+0x414): undefined reference to `gen_pool_create'
memory_alloc.c:(.text+0x434): undefined reference to `gen_pool_add_virt'
memory_alloc.c:(.text+0x450): undefined reference to `gen_pool_destroy'
lib/lib.a(memory_alloc.o): In function `_allocate_contiguous_memory_nomap':
memory_alloc.c:(.text+0x55c): undefined reference to `gen_pool_alloc_aligned'
memory_alloc.c:(.text+0x5e0): undefined reference to `gen_pool_free'
lib/lib.a(memory_alloc.o): In function `allocate_contiguous_memory':
memory_alloc.c:(.text+0x664): undefined reference to `gen_pool_alloc_aligned'
memory_alloc.c:(.text+0x710): undefined reference to `gen_pool_free'
make: *** [.tmp_vmlinux1] Error 1
ubuntu@ubuntu:~/modified-miui-kernel/mi2_kernel-master$


@邓凡平  大牛帮忙看看,谢谢!

加载中
0
wangxigui
wangxigui
不能忍啊!同时kernel-3.4,Android官网提供的源码,居然一次编译,没出任何错误就完成了;但是小米提供的3.4源码,居然还有明显的低级错误,两天了还没通过,我说小米,你是故意的吧 !!!
0
wangxigui
wangxigui
@邓凡平  ,大神帮忙看看啊,谢了
0
wangxigui
wangxigui
为什么没人回答啊,自己顶一个!!
0
j
jaskell
我也掉这个坑里了. :(
wangxigui
wangxigui
1、下载:https://github.com/MiCode/mi2_kernel 2、编译:请使用arch/arm/configs/aries-perf_defconfig 来build。
返回顶部
顶部