Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Last active October 10, 2016 19:27
Show Gist options
  • Save z3ntu/3e6de955be97328e2e05 to your computer and use it in GitHub Desktop.
Save z3ntu/3e6de955be97328e2e05 to your computer and use it in GitHub Desktop.
Ubuntu Touch Fairphone 2
<?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
@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

Add hardware/qcom/msm8x74/kernel-headers \ @ hardware/qcom/camera/QCamera2/stack/mm-camera-test/Android.mk (LOCAL_C_INCLUDES)

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

Add LOCAL_C_INCLUDES += hardware/qcom/msm8x74/kernel-headers @ hardware/qcom/media/mm-video-v4l2/vidc/vdec/Android.mk

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

Add hardware/qcom/msm8x74/kernel-headers @ hardware/qcom/media/libc2dcolorconvert/Android.mk

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

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

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

libasound2-dev:i386 for alsa/asoundlib.h
libpulse-dev:i386 for pulse/simple.h
libesd0-dev for esd.h

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

If something does not work (and is weird), EXIT the shell and restart it!!

@z3ntu
Copy link
Author

z3ntu commented Feb 27, 2016

libgl1-mesa-dev:i386 for -lGL

@z3ntu
Copy link
Author

z3ntu commented Feb 28, 2016

Install android-tools-fsutils for rootstock-touch-install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment