Notes about compiling android kernel source on Mac OS Lion
2013-04-05 16:32
162 查看
Simply following google's official online documentation can't build the android kernel source easily, here are some notes to build it succeed, all is from my own experiments and testing.
1. "elf xxx" error as below:
The solution is about adding a "elf.h" file, and some slight changes on another 2 files:
Step1: add a file: "elf.h" to /kernel repository/scripts/mod/
Step2: change #include <elf.h> to #include "elf.h" in the following files in /kernel repository/scripts/mod/: mk_elfconfig.c and modpost.h
2. Toolchan issue, the google's doc says we should use "
Finally the compiler is happy, and we get the goldfish emulator work with my kernel:
1. "elf xxx" error as below:
The solution is about adding a "elf.h" file, and some slight changes on another 2 files:
Step1: add a file: "elf.h" to /kernel repository/scripts/mod/
Step2: change #include <elf.h> to #include "elf.h" in the following files in /kernel repository/scripts/mod/: mk_elfconfig.c and modpost.h
2. Toolchan issue, the google's doc says we should use "
export PATH=$(pwd)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH" before building, but it doesn't say it is for linux:) Luckly, if you look into the source code folder structure "prebuilts", you'll find something about "darwin", that's about mac os!!!, so we should replace the "linux-x86" with "darwin-x86".
Finally the compiler is happy, and we get the goldfish emulator work with my kernel:
相关文章推荐
- Compiling 64-bit FFmpeg on Mac OS X Lion or Snow Leopard
- Compiling 64-bit FFmpeg on Mac OS X Lion or Snow Leopard
- Mac OS X下搭建Android Source编译环境的问题及解决方法
- gettext on Mac OS lion
- Get Apple Hardware Test Boot Mode Back on Some OS X Lion Macs
- Installing JDeveloper on Mac OS X Lion (10.7)
- COMPILING THE GEDA TOOLS ON MAC OS X 10.7.1
- samba server on Mac OS X Lion Server
- Compiling PHP and Apache 2 from source on Linux OS
- 在Mac OS X Lion上安装Ruby On Rails
- android kernel source code compiling
- Setting up a git server on MacOS X Lion
- android sdk manager settings on os (mac)
- 在 Mac OS X Lion 10.7 上 下载Android 源码(froyo)的全部过程!!!!
- Mac OS X中Android Kernel的下载方法
- About compiling some source code on centos
- `gem install therubyracer` fails on Mac OS X Lion
- Mac OS X Lion 下编译Android 源码
- build android on macOS
- Mac OS X于Android Kernel下载方法