Hello liusf,
I’m sorry to hear you’re having problems building the Android BSP.
I would like to double check that you’re following all the steps of the Android User’s Guide in order.
Steps on section 3.1 initialize the repo and loads all the needed repositories including Freescale’s Kernel and bootloader.
For steps 3.2 you would need to have the Android Source patches unzipped in any known location. The document assumes that you’re using /opt/android_jb4.3_1.1.0-ga_source
However, it is possible to encounter permission problems depending on your configuration and whether you’re running as root or not.
Please follow the first three steps:
$ cd ~/myandroid
$ source /opt/android_jb4.3_1.1.0-ga_source/code/jb4.3_1.1.0-ga/and_patch.sh
$ help
And make sure that you see the c_patch function available when running help.
Then continue the commands on the Android User’s Guide to patch but make sure that there are no errors on the log. It is possible to have a “permission denied” error and still get the “Success” message at the end, which may be deceiving.