Walidix Walidix - 6 months ago 58
Android Question

Android Source Code Tree Structure

I have downloaded Android source code but I don't find the "Kernel Directory" in the top level directory of the source code tree. Is it normal ???? or is it missing ???

/mydroid$ find . -name kernel
./bionic/libc/kernel
./vendor/htc/sapphire-open/kernel
./vendor/htc/dream-open/kernel
./dalvik/libcore/luni-kernel/src/test/java/tests/api/org/apache/harmony/kernel
./dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel
./prebuilt/android-arm/kernel
./prebuilt/android-x86/kernel
./device/htc/passion/kernel

Answer

default.xml in git://android.git.kernel.org/platform/manifest.git does not point to the kernel, so repo would not automatically download it. Most kernel trees are specific to machines anyway.

See http://elinux.org/Android_Kernel_Download for information on getting the right kernel.

git clone git://android.git.kernel.org/kernel/common.git kernel