[Galaxy Note 4 Original Android Development] fattire:
So will I. I don't think at this point I'd even try it... the CM code itself is still going in and it appears to be messed up. there are no M device trees to look at as a reference yet either (unless they're in now). I'm seeing overlay errors in vendor/cm which is the default folder CM itself uses, let alone our device.. That said, I'll post updates/sticking issues etc when I'm done messing around tonight.

Update: Okay, it's been a few hours of messing around. No build yet-- CM is definitely in a state of flux with lots of parts checked in that depend on a lot of parts that aren't yet. So I'm gonna stop for the moment and come back in a day or two...

But anyway, here are some tips for anyone building:

(1) I used these commands every time I did a repo sync. Notice that by the time you read this, some of it won't be necessary probably because the repopicked stuff will be checked in.

#!/bin/bash

# from root source directory... grab the env stuff...

. build/envsetup.sh

# this is not ready yet

rm -rf hardware/qcom/audio-caf

croot

cd vendor/cm

# this pulls out all the selinux and other dependencies that don't exist yet.

repopick 111336

croot

cd hardware/samsung

# this restores a missing file that's needed to continue the build

repopick 111836

croot

rm -rf packages/screensavers/Basic

Some changes needed to be made to the device/samsung/trlte-common device tree as i was going along. Here's a diff of the changes I made. these mostly turn off selinux, overlay settings that do not yet exist, and some qcom stuff-- probably not ENOUGH qcom stuff. I don't think that most of it has been ported.

Note that BOARD_SEPOLICY_UNION will no longer be needed as everything in BOARD_SEPOLICY_DIRS is automatically added. Also -AUDIO_FEATURE_LOW_LATENCY_PRIMARY is now called AUDIO_USE_LL_AS_PRIMARY.

I'm just putting all this down in case anyone wants to pick up the ball and start running. But I think even 12 hours of waiting for things to shake out in the repository will make a huge difference. I can see stuff waiting in the repository that will make a big difference once it gets in...

Oh, and it complained about a missing file media_codecs_ffmpeg.xml so I just found one and added it in to make things happy, but probalby the wrong way.

Anyway, a few hours went by, it still hadn't finished, so I figured I'd brain dump here what I'd done before I go to bed in case anyone wants to continue the fun. Like I say it'll get easier and easier as the chaos in the repositories settles down.

Last thing I'll say--for roomservice.xml I'm using 12.1 device stuff/kernel stuff where 13.0 was unavailable.. that's basically something long the lines of..

<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />

<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />

<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github"/>

<project name="CyanogenMod/android_device_samsung_trltetmo" path="device/samsung/trltetmo" revision="cm-12.1" remote="github" />

<project name="CyanogenMod/android_device_samsung_trlte-common" path="device/samsung/trlte-common" revision="cm-12.1" remote="github"/>

<project name="CyanogenMod/android_kernel_samsung_trlte" path="kernel/samsung/trlte" remote="github" revision="cm-12.1" />

<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" revision="cm-11.0" />

That last one was added because it choked without it. No idea what the deal was. At this point it's just a matter of driving towards a build, and then sort out the chaos later :)