[AT&T Samsung Galaxy S II Skyrocket SGH-I727] BMP7777:
I've been working towards a Sourcery build off and on for a couple weeks now, and it is like pulling teeth.I used Cm based device-specific files, like this:

<manifest>
<project name="TeamLGOG/android_vendor_lge_gee" path="vendor/lge/gee" remote="github" revision="cm-10.1"/>
<project name="TeamLGOG/android_device_lge_gee-common" path="device/lge/gee-common" remote="github" revision="cm-10.1"/>
<project name="TeamLGOG/android_device_lge_geehrc4g_spr_us" path="device/lge/geehrc4g_spr_us" remote="github" revision="cm-10.1"/>
<project name="TeamLGOG/lge-kernel-geem" path="kernel/lge/geem" remote="github" revision="cm-10.1"/>
</manifest>

Using just your CM device files will get you synced up. The problem I have been running into repeatedly is, the CM stuff doesn't play nice with Sourcery. So, a buddy recommended grep-ing of all geehrc4g_spr_us files for 'CM' and changing it to Sourcery. After that, it errors out for all manner of .mk file inconsistencies. Whats weird is, I seem to need way too many make files.

I have a device.mk :

#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file includes all definitions that apply to ALL geehrc devices, and
# are also specific to geehrc devices
#
# Everything in this directory will become public

## (2) Also get non-open-source specific aspects if available
$(call inherit-product-if-exists, vendor/lge/gee/gee-vendor.mk)

## overlays
DEVICE_PACKAGE_OVERLAYS += device/lge/geehrc4g_spr_us/overlay

## common overlays
DEVICE_PACKAGE_OVERLAYS += device/lge/gee-common/overlay-cdma

PRODUCT_PACKAGES := \
lights.geehrc4g_spr_us

# Inherit from gee-common
$(call inherit-product, device/lge/gee-common/gee-common.mk)

# Enable for debugging
PRODUCT_PROPERTY_OVERRIDES += \
ro.debuggable=1 \
persist.service.adb.enable=1

# Do not power down SIM card when modem is sent to Low Power Mode.
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.apm_sim_not_pwdn=1

# QC RIL path for rild
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
rild.libargs=-d /dev/smd0

# Telephony Properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=LGEQualcommCDMARIL \
ro.cdma.home.operator.numeric=310120 \
ro.cdma.home.operator.alpha=Sprint \
telephony.lteOnCdmaDevice=1 \
telephony.lte.cdma.device=1 \
ro.telephony.default_network=8 \
ro.ril.def.preferred.network=8 \
ril.subscription.types=NV,RUIM \
ro.cdma.subscribe_on_ruim_ready=true \
persist.radio.no_wait_for_card=1 \
keyguard.no_require_sim=true \
telephony.sms.pseudo_multipart=1 \
DEVICE_PROVISIONED=1

# PRODUCT_CHARACTERISTICS := nosdcard

# GPS configuration
PRODUCT_COPY_FILES += \
device/lge/geehrc4g_spr_us/configs/gps.conf:system/etc/gps.conf

# Ramdisk
PRODUCT_COPY_FILES += \
device/lge/geehrc4g_spr_us/ramdisk/init.geehrc4g_spr_us.rc:root/init.geehrc4g_spr_us.rc \
device/lge/geehrc4g_spr_us/ramdisk/ueventd.geehrc4g_spr_us.rc:root/ueventd.geehrc4g_spr_us.rc \
device/lge/geehrc4g_spr_us/ramdisk/fstab.gee:root/fstab.gee

# NFC Firmware
PRODUCT_COPY_FILES += \
device/lge/geehrc4g_spr_us/prebuilt/libpn544_fw.so:system/vendor/firmware/libpn544_fw.so \

# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml

# CameraHAL
PRODUCT_PACKAGES += \
camera.geehrc4g_spr_us

and a geehrc4g_spr_us.mk that looks like this :

# Inherit AOSP device configuration for geehrc4g_spr_us
$(call inherit-product, device/lge/geehrc4g_spr_us/full_geehrc4g_spr_us.mk)
$(call inherit-product, vendor/Sourcery/products/common.mk)
$(call inherit-product, vendor/Sourcery/products/common_phone.mk)
$(call inherit-product, vendor/Sourcery/products/theme.mk)

# Inherit cdma common stuff
$(call inherit-product, vendor/Sourcery/products/cdma.mk)

PRODUCT_NAME := Sourcery_geehrc4g_spr_us
PRODUCT_BRAND := google
PRODUCT_DEVICE := geehrc4g_spr_us
PRODUCT_MODEL := Optimus G
PRODUCT_MANUFACTURER := LGE

#Set build fingerprint / ID / Product Name ect.
PRODUCT_BUILD_PROP_OVERRIDES += \
BUILD_NUMBER=573038 \
BUILD_ID=ICL53F \
PRODUCT_NAME=mysid \
BUILD_DISPLAY_ID=JDQ39E-4.2.2_r1.2 \
BUILD_VERSION_TAGS=release-keys \
USER=android-build \
PRIVATE_BUILD_DESC="mysid-user 4.2.2 JDQ39 573038 release-keys" \
BUILD_FINGERPRINT="google/mysid/geehrc4g_spr_us:4.2.2/JDQ39/573038:user/release-keys"

PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-verizon \
ro.com.google.locationfeatures=1 \
ro.setupwizard.mode=OPTIONAL \
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83 \
ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000 \
ro.gsm.data_retry_config=max_retries=infinite,default_randomization=2000,0,0,80000,125000,485000,905000 \
ro.gsm.2nd_data_retry_config=max_retries=infinite,default_randomization=2000,0,0,80000,125000,485000,905000 \
ro.cdma.otaspnumschema=SELC,1,80,99 \
ro.com.android.dataroaming=false \
drm.service.enabled=true \
camera.flash_off=0 \
dalvik.vm.lockprof.threshold=500 \
wifi.supplicant_scan_interval=180 \
ro.goo.developerid=TeamSourcery \
ro.modversion=JBSourcery-6.0--NOTSUPPORTED

PRODUCT_PACKAGE_OVERLAYS += vendor/Sourcery/overlay/toro
PRODUCT_PACKAGE_OVERLAYS += vendor/Sourcery/overlay/common

and a full_geehrc4g_spr_us.mk file that looks like this ;

#
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Sample: This is where we'd set a backup provider if we had one
# $(call inherit-product, device/sample/products/backup_overlay.mk)

# Get the long list of APNs
PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml

# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

PRODUCT_DEVICE := geehrc4g
PRODUCT_NAME := geehrc4g_spr_us
PRODUCT_BRAND := LGE
PRODUCT_MODEL := LG-LS970
PRODUCT_MANUFACTURER := LGE
PRODUCT_RESTRICT_VENDOR_FILES := false

# Inherit from hardware-specific part of the product configuration
$(call inherit-product, device/lge/geehrc4g_spr_us/device.mk)

and a Sourcery.mk file that looks like this :

#
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Sample: This is where we'd set a backup provider if we had one
# $(call inherit-product, device/sample/products/backup_overlay.mk)

# Get the long list of APNs
PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml

# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

PRODUCT_DEVICE := geehrc4g
PRODUCT_NAME := geehrc4g_spr_us
PRODUCT_BRAND := LGE
PRODUCT_MODEL := LG-LS970
PRODUCT_MANUFACTURER := LGE
PRODUCT_RESTRICT_VENDOR_FILES := false

# Inherit from hardware-specific part of the product configuration
$(call inherit-product, device/lge/geehrc4g_spr_us/device.mk)

I can't figure out why all of these redundant .mk files are neccesary, but deleting any files or text causes even more errors. If anybody has any ideas, I'd love to bounce some around myself.

BTW, I have been using AOKP build tut and commands, CM build commands don't work for me.....part of the problem or solution?

This is what I get after sync and build :

bmp7777@bmp7777-HP-Pavilion-dv7-Notebook-PC:~/sourcery$ . build/envsetup.sh
including device/lge/geehrc4g_spr_us/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including vendor/Sourcery/vendorsetup.sh
including sdk/bash_completion/adb.bash
bmp7777@bmp7777-HP-Pavilion-dv7-Notebook-PC:~/sourcery$ lunch

You're building on Linux

Lunch menu... pick a device:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_mips-eng
5. Sourcery_geehrc4g_spr_us-userdebug
6. full_maguro-userdebug
7. full_toroplus-userdebug
8. full_toro-userdebug
9. Sourcery_toro-userdebug
10. Sourcery_maguro-userdebug
11. Sourcery_toroplus-userdebug

Which would you like to build?5

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=Sourcery_geehrc4g_spr_us
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-49-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39E
OUT_DIR=out
============================================

bmp7777@bmp7777-HP-Pavilion-dv7-Notebook-PC:~/sourcery$

I like how it built NOTHING! I know it's my mistake; can anybody shed light on my mistake(s)?

[MENTION=4861254]Kiltnar[/MENTION], if you want to PM me to try different ideas together, I'm down. The devices are different, but successful build steps should be very similar if not the same.