[Galaxy Tab  Android Development] alroger:
Building Ubuntu Touch

First of all have your CM10.1 build up to date.. if you can't build CM10.1 then you shouldn't even try this.

[UPDATE 20130515]

Successful build for p1 and p1c!

Basically follow the Porting guide. Initialize the repo as instructed, using phablet-dev-bootstrap.

My draft for building... soon we will have the sgt7-ut repo that will do most of it for us.

Not necessarily in order.. you might have to start compiling untill you get the error and come back and check the steps again.

## our manifest
copy the roomservice.xml to .repo/local_manifests/

## clean
rm -rf out kernel
make installclean
make clean

* edit as porting guide:
kernel/samsung/aries/fs/proc/array.c

* add extra lines from the porting guide to the end of:
kernel/samsung/aries/arch/arm/configs/cyanogenmod_p1_defconfig
kernel/samsung/aries/arch/arm/configs/cyanogenmod_p1ln_defconfig
kernel/samsung/aries/arch/arm/configs/cyanogenmod_p1c_defconfig
* also change the following config in each of the 3 kernel configs:
CONFIG_TOUCHSCREEN_QT602240_ROT90=n

## prepare stuff
source build/envsetup.sh
breakfast p1
breakfast p1c

./get prebuilts in vendor/cm/

comment P1Parts, tvouthack and Torch from device/samsung/p1-common/device_base.mk
copy from your cm10.1 build - out/target/product/p1/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates
copy from your cm10.1 build - out/target/product/p1c/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates

?? cp out/target/product/p1/obj/UTILITY_EXECUTABLES/utility_make_ext4fs_intermediates/LINKED/make_ext4fs out/target/product/p1/obj/EXECUTABLES/make_ext4fs_intermediates/
?? cp out/target/product/p1c/obj/UTILITY_EXECUTABLES/utility_make_ext4fs_intermediates/LINKED/make_ext4fs out/target/product/p1c/obj/EXECUTABLES/make_ext4fs_intermediates/

Add chmod line in device/samsung/p1-common/init.p1-common.rc, like this:
# System server can control backlight brightness
chown system system /sys/class/backlight/s5p_bl/brightness
chmod 0666 /sys/class/backlight/panel/brightness

## Now build!
source build/envsetup.sh
breakfast p1
time make -j3 bacon # use -j1 to check for errors in their right order
breakfast p1c
time make -j3 bacon

.repo/local_manifests/roomservice.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="humberos/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.1" />
<project name="humberos/android_kernel_samsung_aries" path="kernel/samsung/aries" remote="github" revision="cm-10.1-dev" />
<project name="humberos/android_device_samsung_p1" path="device/samsung/p1" remote="github" revision="cm-10.1" />
<project name="humberos/android_device_samsung_p1c" path="device/samsung/p1c" remote="github" revision="cm-10.1" />
<project name="humberos/android_device_samsung_p1-common" path="device/samsung/p1-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.1" />
</manifest>

Change ro.sf.hwrotation to 0 in build.prop!