Add to device/fairphone_devices/FP2/BoardConfig.mk
:
TARGET_KERNEL_SOURCE := kernel
TARGET_KERNEL_CONFIG := fairphone_defconfig
Add to build/core/main.mk
(to variable subdirs:
device/qcom/common/dtbtool
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="fairphone" fetch="http://code.fairphone.com/gerrit/fp2-dev" /> | |
<project path="device/fairphone_devices/FP2" name="device/fairphone_devices/fairphone" remote="fairphone" revision="fp2-sibon" /> | |
<project path="kernel" name="kernel/msm" remote="fairphone" revision="fp2-sibon" /> | |
<project path="device/qcom/common" name="device/qcom/common" remote="fairphone" revision="fp2-sibon" /> | |
<project path="bootable/bootloader/lk" name="kernel/lk" remote="fairphone" revision="fp2-sibon" /> | |
</manifest> |
Add to device/fairphone_devices/FP2/BoardConfig.mk
:
TARGET_KERNEL_SOURCE := kernel
TARGET_KERNEL_CONFIG := fairphone_defconfig
Add to build/core/main.mk
(to variable subdirs:
device/qcom/common/dtbtool
Add hardware/qcom/msm8x74/kernel-headers \
@ hardware/qcom/camera/QCamera2/stack/mm-camera-test/Android.mk
(LOCAL_C_INCLUDES)
Add LOCAL_C_INCLUDES += hardware/qcom/msm8x74/kernel-headers
@ hardware/qcom/media/mm-video-v4l2/vidc/vdec/Android.mk
Add hardware/qcom/msm8x74/kernel-headers
@ hardware/qcom/media/libc2dcolorconvert/Android.mk
Add LOCAL_C_INCLUDES += hardware/qcom/msm8x74/kernel-headers
@ hardware/qcom/media/mm-video-v4l2/vidc/vdec/Android.mk
Add LOCAL_C_INCLUDES += hardware/qcom/msm8x74/kernel-headers
AT THE NEAR BOTTOM OF THE FILE
libasound2-dev:i386 for alsa/asoundlib.h
libpulse-dev:i386 for pulse/simple.h
libesd0-dev for esd.h
If something does not work (and is weird), EXIT the shell and restart it!!
libgl1-mesa-dev:i386 for -lGL
Install android-tools-fsutils
for rootstock-touch-install
Helpful:
http://forum.xda-developers.com/showpost.php?p=53727634&postcount=15
http://forum.xda-developers.com/showpost.php?p=43808335&postcount=5
http://askubuntu.com/a/612087/268225