[Optimus One, P500 Original Android Development] Arjen:
Here is my BoardConfig.mk I use for CAF:

#
# config.mk
#
# Product-specific compile-time definitions.
#

BOARD_USES_QCOM_HARDWARE := true
BOARD_USES_ADRENO_200 := true
HAVE_ADRENO200_SOURCE := true
HAVE_ADRENO200_SC_SOURCE := true
HAVE_ADRENO200_FIRMWARE := true
BOARD_USES_QCNE := true
BOARD_USES_QCOM_LIBS := true
BOARD_USES_QCOM_LIBRPC := true

BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := thunderg
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000

BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_CUSTOM_BRCM_PATCHRAM_PLUS := ../../../device/lge/thunderg/prebuilt/brcm_patchram_plus.c

BOARD_HAVE_FM_RADIO := true
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
BOARD_FM_DEVICE := bcm4325

TARGET_PROVIDES_LIBAUDIO := true

BOARD_WPA_SUPPLICANT_DRIVER := WEXT
BOARD_WLAN_DEVICE := bcm4325
BOARD_WIRELESS_CHIP := bcm4325
WPA_SUPPLICANT_VERSION := VER_0_6_X
HOSTAPD_VERSION := VER_0_6_X
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wireless.ko"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wl/rtecdc.bin nvram_path=/system/etc/wl/nvram.txt"
WIFI_DRIVER_MODULE_NAME := wireless
WIFI_DRIVER_FW_STA_PATH := "/system/etc/wl/rtecdc.bin"
WIFI_DRIVER_FW_AP_PATH := "/system/etc/wl/rtecdc_apsta.bin"
WIFI_DRIVER_HAS_LGE_SOFTAP:=true

BOARD_CAMERA_LIBRARIES := libcamera
USE_CAMERA_STUB := true

TARGET_HAVE_TSLIB := true

TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true

TARGET_GLOBAL_CFLAGS += -mfpu=vfp -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=vfp -mfloat-abi=softfp
TARGET_CPU_ABI := armeabi
TARGET_ARCH_VARIANT := armv6-vfp
TARGET_BOARD_PLATFORM := msm7x27
TARGET_BOOTLOADER_BOARD_NAME := thunderg
TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true
TARGET_AVOID_DRAW_TEXTURE_EXTENSION := true
QCOM_TARGET_PRODUCT := thunderg
TARGET_PROVIDES_INIT_TARGET_RC := true
TARGET_PROVIDES_LIBRIL := true
TARGET_OTA_ASSERT_DEVICE := thunderg,p500

BOARD_KERNEL_CMDLINE := mem=471M console=ttyMSM2,115200n8 androidboot.hardware=thunderg
BOARD_KERNEL_BASE := 0x12800000
BOARD_KERNEL_PAGESIZE := 2048

BOARD_EGL_CFG := device/lge/$(TARGET_PRODUCT)/egl.cfg

BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00440000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00520000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0be00000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c780000
BOARD_FLASH_BLOCK_SIZE := 131072

And device_thunder.mk:

$(call inherit-product, build/target/product/full_base.mk)
$(call inherit-product, build/target/product/languages_full.mk)

$(call inherit-product-if-exists, vendor/lge/thunderg/thunderg-vendor.mk)

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lge/thunderg/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel

# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml

# Keylayouts
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/thunder_keypad.kl:system/usr/keylayout/thunder_keypad.kl \
vendor/lge/thunderg/proprietary/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
vendor/lge/thunderg/proprietary/thunder_keypad.kcm.bin:system/usr/keychars/thunder_keypad.kcm.bin \

PRODUCT_COPY_FILES += \
device/lge/thunderg/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/lge/thunderg/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
vendor/lge/thunderg/proprietary/etc/init.local.rc:system/etc/init.local.rc \
vendor/lge/thunderg/proprietary/etc/init.thunderg.usb.rc:system/etc/init.thunderg.usb.rc \
device/lge/thunderg/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/lge/thunderg/prebuilt/etc/nvram.txt:system/etc/wl/nvram.txt \
device/lge/thunderg/prebuilt/etc/vold.fstab:system/etc/vold.fstab \

#WIFI
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/bin/dhcpcd:system/bin/dhcpcd \

# BT startup
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/init.qcom.bt.sh:system/bin/init.qcom.bt.sh

# Board-specific init

# Board-specific init
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/init.thunderg.rc:root/init.thunderg.rc \
vendor/lge/thunderg/proprietary/initlogo.rle:root/initlogo.rle \
vendor/lge/thunderg/proprietary/ueventd.thunderg.rc:root/ueventd.thunderg.rc \

# OFFLINE CHARGING
PRODUCT_COPY_FILES += \
device/lge/thunderg/bootlogo/bootlogo:root/sbin/bootlogo \
device/lge/thunderg/bootlogo/bootimages/opening_01.rle:root/bootimages/opening_01.rle \
device/lge/thunderg/bootlogo/bootimages/opening_02.rle:root/bootimages/opening_02.rle \
device/lge/thunderg/bootlogo/bootimages/opening_03.rle:root/bootimages/opening_03.rle \
device/lge/thunderg/bootlogo/bootimages/opening_04.rle:root/bootimages/opening_04.rle \
device/lge/thunderg/bootlogo/bootimages/opening_05.rle:root/bootimages/opening_05.rle \
device/lge/thunderg/bootlogo/bootimages/opening_06.rle:root/bootimages/opening_06.rle \
device/lge/thunderg/bootlogo/bootimages/opening_07.rle:root/bootimages/opening_07.rle \
device/lge/thunderg/bootlogo/bootimages/opening_08.rle:root/bootimages/opening_08.rle \
device/lge/thunderg/chargemode/chargerlogo:root/sbin/chargerlogo \
device/lge/thunderg/chargemode/chargerimages/black_bg.rle:root/chargerimages/black_bg.rle \
device/lge/thunderg/chargemode/chargerimages/battery_bg.rle:root/chargerimages/battery_bg.rle \
device/lge/thunderg/chargemode/chargerimages/battery_ani_01.rle:root/chargerimages/battery_ani_01.rle \
device/lge/thunderg/chargemode/chargerimages/battery_ani_02.rle:root/chargerimages/battery_ani_02.rle \
device/lge/thunderg/chargemode/chargerimages/battery_ani_03.rle:root/chargerimages/battery_ani_03.rle \
device/lge/thunderg/chargemode/chargerimages/battery_ani_04.rle:root/chargerimages/battery_ani_04.rle \
device/lge/thunderg/chargemode/chargerimages/battery_ani_05.rle:root/chargerimages/battery_ani_05.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_01.rle:root/chargerimages/battery_charging_01.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_02.rle:root/chargerimages/battery_charging_02.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_03.rle:root/chargerimages/battery_charging_03.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_04.rle:root/chargerimages/battery_charging_04.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_05.rle:root/chargerimages/battery_charging_05.rle \
device/lge/thunderg/chargemode/chargerimages/battery_charging_06.rle:root/chargerimages/battery_charging_06.rle \
device/lge/thunderg/chargemode/chargerimages/battery_wait_ani_01.rle:root/chargerimages/battery_wait_ani_01.rle \
device/lge/thunderg/chargemode/chargerimages/battery_wait_ani_02.rle:root/chargerimages/battery_wait_ani_02.rle \

# Backlight
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/bin/tsdown:system/bin/tsdown \
vendor/lge/thunderg/proprietary/etc/MELFAS_FIRM.bin:system/etc/MELFAS_FIRM.bin

# Sensors
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/bin/ami304d:system/bin/ami304d \
vendor/lge/thunderg/proprietary/lib/hw/sensors.thunderg.so:system/lib/hw/sensors.thunderg.so \

# 2D (using proprietary because of poor perfomance of open source libs)
#PRODUCT_COPY_FILES += \
# vendor/lge/thunderg/proprietary/lib/hw/gralloc.default.so:system/lib/hw/gralloc.default.so \
# vendor/lge/thunderg/proprietary/lib/hw/gralloc.thunderg.so:system/lib/hw/gralloc.thunderg.so \

# 3D
PRODUCT_COPY_FILES += \

vendor/lge/thunderg/proprietary/etc/firmware/yamato_pfp.fw:system/etc/firmware/yamato_pfp.fw \
vendor/lge/thunderg/proprietary/etc/firmware/yamato_pm4.fw:system/etc/firmware/yamato_pm4.fw \
vendor/lge/thunderg/proprietary/lib/hw/gralloc.thunderg.so:system/lib/hw/gralloc.thunderg.so \

# Camera
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/lib/liboemcamera.so:system/lib/liboemcamera.so \
vendor/lge/thunderg/proprietary/lib/libmmipl.so:system/lib/libmmipl.so \
vendor/lge/thunderg/proprietary/lib/libmmjpeg.so:system/lib/libmmjpeg.so \

# SD Card
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/etc/vold.fstab:system/etc/vold.fstab

# Device permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \

# LGE services
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/bin/port-bridge:system/bin/port-bridge \
vendor/lge/thunderg/proprietary/bin/qmuxd:system/bin/qmuxd \
vendor/lge/thunderg/proprietary/etc/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh \
vendor/lge/thunderg/proprietary/bin/rmt_storage:system/bin/rmt_storage \
vendor/lge/thunderg/proprietary/bin/netmgrd:system/bin/netmgrd \
vendor/lge/thunderg/proprietary/bin/wiperiface:system/bin/wiperiface \

PRODUCT_PROPERTY_OVERRIDES += \
ro.lge.vibrator_amp=125 \
ro.sf.lcd_density=160 \

# RIL
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/lib/libidl.so:system/lib/libidl.so \
vendor/lge/thunderg/proprietary/lib/libril-qc-1.so:system/lib/libril-qc-1.so \
vendor/lge/thunderg/proprietary/lib/liboncrpc.so:system/lib/liboncrpc.so \
vendor/lge/thunderg/proprietary/lib/libdsm.so:system/lib/libdsm.so \
vendor/lge/thunderg/proprietary/lib/libqueue.so:system/lib/libqueue.so \
vendor/lge/thunderg/proprietary/lib/libdiag.so:system/lib/libdiag.so \
vendor/lge/thunderg/proprietary/lib/libauth.so:system/lib/libauth.so \
vendor/lge/thunderg/proprietary/lib/libcm.so:system/lib/libcm.so \
vendor/lge/thunderg/proprietary/lib/libnv.so:system/lib/libnv.so \
vendor/lge/thunderg/proprietary/lib/libpbmlib.so:system/lib/libpbmlib.so \
vendor/lge/thunderg/proprietary/lib/libwms.so:system/lib/libwms.so \
vendor/lge/thunderg/proprietary/lib/libwmsts.so:system/lib/libwmsts.so \
vendor/lge/thunderg/proprietary/lib/libmmgsdilib.so:system/lib/libmmgsdilib.so \
vendor/lge/thunderg/proprietary/lib/libgsdi_exp.so:system/lib/libgsdi_exp.so \
vendor/lge/thunderg/proprietary/lib/libgstk_exp.so:system/lib/libgstk_exp.so \
vendor/lge/thunderg/proprietary/lib/libril-qcril-hook-oem.so:system/lib/libril-qcril-hook-oem.so \
vendor/lge/thunderg/proprietary/lib/liboem_rapi.so:system/lib/liboem_rapi.so \
vendor/lge/thunderg/proprietary/lib/libsnd.so:system/lib/libsnd.so \
vendor/lge/thunderg/proprietary/lib/libqmi.so:system/lib/libqmi.so \
vendor/lge/thunderg/proprietary/lib/libdsutils.so:system/lib/libdsutils.so \
vendor/lge/thunderg/proprietary/lib/libdll.so:system/lib/libdll.so \
vendor/lge/thunderg/proprietary/lib/liblgeat.so:system/lib/liblgeat.so \
vendor/lge/thunderg/proprietary/lib/liblgdrm.so:system/lib/liblgdrm.so \
vendor/lge/thunderg/proprietary/lib/liblgdrmwbxml.so:system/lib/liblgdrmwbxml.so \
vendor/lge/thunderg/proprietary/lib/liblgerft.so:system/lib/liblgerft.so \
vendor/lge/thunderg/proprietary/lib/libbcmwl.so:system/lib/libbcmwl.so \
vendor/lge/thunderg/proprietary/lib/libdss.so:system/lib/libdss.so \
vendor/lge/thunderg/proprietary/lib/libril.so:system/lib/libril.so \
vendor/lge/thunderg/proprietary/bin/rild:system/bin/rild \
vendor/lge/thunderg/proprietary/bin/qmuxd:system/bin/qmuxd \

# Bluetooth
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/bin/BCM4325D1_004.002.004.0218.0248.hcd:system/etc/firmware/BCM4325D1_004.002.004.0218.0248.hcd

# FONTS
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/fonts/Noxchia.ttf:system/fonts/Noxchia.ttf

# IDC file
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/touch_mcs6000.idc:system/usr/idc/touch_mcs6000.idc\
vendor/lge/thunderg/proprietary/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc

#TWEAKS
PRODUCT_COPY_FILES += \
vendor/lge/thunderg/proprietary/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/lge/thunderg/proprietary/etc/init.d/05mountext:system/etc/init.d/05mountext \
vendor/lge/thunderg/proprietary/etc/init.d/08dalvik:system/etc/init.d/08dalvik \
vendor/lge/thunderg/proprietary/etc/init.d/87calibration:system/etc/init.d/87calibration \
vendor/lge/thunderg/proprietary/etc/init.d/95zipalign:system/etc/init.d/95zipalign \
vendor/lge/thunderg/proprietary/etc/init.d/96tweak:system/etc/init.d/96tweak \

PRODUCT_PROPERTY_OVERRIDES += debug.composition.type=mdp
PRODUCT_PROPERTY_OVERRIDES += debug.gr.numframebuffers=2

# HardwareRenderer properties
# dirty_regions: "false" to disable partial invalidates, override if enabletr=true
PRODUCT_PROPERTY_OVERRIDES += \
hwui.render_dirty_regions=false \
hwui.disable_vsync=true \
hwui.print_config=choice \
debug.enabletr=false

PRODUCT_LOCALES += mdpi

PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := thunderg
PRODUCT_BRAND := LGE
PRODUCT_DEVICE := thunderg
PRODUCT_MODEL := LG-P500
PRODUCT_MANUFACTURER := LGE

Perhaps I can lose more stuff in it, but it's mostly trial and error.