[Ubuntu Touch Ports to Android] makakiel:
I'm using all this got to have all I need to start

git clone https://github.com/vic3t3chn0/android_device_samsung_i9300.git device/samsung/i9300
git clone https://github.com/vic3t3chn0/ubuntu_smdk4412_kernel.git kernel/samsung/smdk4412
git clone https://github.com/CyanogenMod/android_device_samsung_smdk4412-common.git device/samsung/smdk4412-common/
git clone https://github.com/DroidTh3ory/vendor_samsung.git vendor/samsung
git clone https://github.com/AOKP/hardware_samsung.git hardware/samsung
git clone https://github.com/ngiordano/cm_vendor.git vendor/cm

And for my first try I get this error

build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/UT/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/base_rules.mk:134: *** hardware/samsung/ril/xmm6262/libril: MODULE.TARGET.SHARED_LIBRARIES.libril already defined by hardware/ril/libril. Stop.

So I delete on of the "ril" folder :

rm -rf hardware/ril/

I chose this one because if the inside the samsung folder, I get more error

So now When i make otapackage :

cc1: some warnings being treated as errors
/UT/kernel/samsung/smdk4412/scripts/Makefile.build:305: recipe for target 'arch/arm/mm/init-cma.o' failed
make[3]: *** [arch/arm/mm/init-cma.o] Error 1
/UT/kernel/samsung/smdk4412/Makefile:956: recipe for target 'arch/arm/mm' failed
make[2]: *** [arch/arm/mm] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/UT/kernel/samsung/smdk4412'
build/core/tasks/kernel.mk:249: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2

or When i make -j2

target thumb C: libminui <= bootable/recovery/minui/../../../device/samsung/smdk4412-common/recovery/graphics.c
bootable/recovery/minui/../../../device/samsung/smdk4412-common/recovery/graphics.c:208:5: error: conflicting types for 'gr_text'
In file included from bootable/recovery/minui/../../../device/samsung/smdk4412-common/recovery/graphics.c:39:0:
bootable/recovery/minui/minui.h:36:5: note: previous declaration of 'gr_text' was here
build/core/binary.mk:512: recipe for target '/UT/out/target/product/i9300/obj/STATIC_LIBRARIES/libminui_intermediates/../../../device/samsung/smdk4412-common/recovery/graphics.o' failed
make: *** [/UT/out/target/product/i9300/obj/STATIC_LIBRARIES/libminui_intermediates/../../../device/samsung/smdk4412-common/recovery/graphics.o] Error 1
make: *** Waiting for unfinished jobs....