I downloaded from the Galaxy opensource page a package with specifics for Device and Kernel.
I followed the Readme for the platform
[Step to build] 1. Get android open source. : version info - Android 5.0 ( Download site : http://source.android.com )
2. Copy module that you want to build - to original android open source If same module exist in android open source, you should replace it. (no overwrite)
# It is possible to build all modules at once.
3. You should add module name to 'PRODUCT_PACKAGES' in 'build\target\product\core.mk' as following case. case 1) e2fsprog : should add 'e2fsck' to PRODUCT_PACKAGES case 2) libexifa : should add 'libexifa' to PRODUCT_PACKAGES case 3) libjpega : should add 'libjpega' to PRODUCT_PACKAGES case 4) KeyUtils : should add 'libkeyutils' to PRODUCT_PACKAGES case 5) brctl : should add 'brctl' to PRODUCT_PACKAGES case 6) ebtables : should add 'ebtables' to PRODUCT_PACKAGES case 7) strongswan : should add 'charon', 'libcharon', 'libhydra', 'libstrongswan' to PRODUCT_PACKAGES
ex.) [build\target\product\core.mk] - add all module name for case 1 ~ 8 at once PRODUCT_PACKAGES += \ libkeyutils \ libexifa \ libjpega \ e2fsck \ brctl \ ebtables \ charon \ libcharon \ libhydra \ libstrongswan
4. excute build command
I also migrated all the files, I found in the downloaded package from the galaxy sources into the structure of the AOSP-rom, I got from source.android.com (I tried for now the 5.0.2-version)
It compiled fine, it generated system.img userdata.img cache.img radisk.img
I was quite happy for the first shot.
I converted the system.img to system.img.ext4, compressed all files to a tar and used Odin to install it on my tab.
Well... except some nice boot-loops I generated nothing.
I added to my tar bootloader, secondary bl, ....and other files, I found in P555XXU1AOJ1_P555OLB1AOJ1_XME.zip, but this tar was not to the liking of odin, what I expected.
Has one of you a guideline, I can follow? My biggest problem is, that I can not find any hints on Cyanogenmod or at slim or XDA or ... as I found for my Xperia Z1. For that I build already successful.