[G2 Q&A, Help & Troubleshooting] -JFK-:
Hello, all.

First, I know that thread shoud be in "G2 Q&A, Help & Troubleshooting" but I affraid that no one reply...

I'm learning how to "port from source" a ROM for our device.

My choose is the PSX ROM from the Nexus 4 and soon for the Nexus 5.

I have the authorization from the owner [MENTION=4110652]ctfrommn[/MENTION], thank you to him, but I'm starting to bother him a lot with my questions...

So I hope that someone can have a lot and try to help me to learn.

This what I have done since now but I have a error that I don't know how to solve.

ANY idea, information, teaching is really welcome !

Thank you.

*repo sync :

repo init -u https://github.com/PSX-PureSpeed/android_manifest.git -b kk-4.4

*I have added that to the manifest for my LG G2 :

<project path="device/lge/g2-common" name="CyanogenMod/android_device_lge_g2-common" remote="cm" revision="cm-10.2" />

<project path="device/lge/d802" name="CyanogenMod/android_device_lge_d802" remote="cm" revision="cm-10.2" />

<project path="hardware/qcom/display-mdss" name="CyanogenMod/android_hardware_qcom_display-mdss" remote="cm" revision="cm-10.2" />

<project path="hardware/qcom/media-v4l2" name="CyanogenMod/android_hardware_qcom_media-v4l2" remote="cm" revision="cm-10.2" />

<project path="kernel/lge/msm8974" name="CyanogenMod/android_kernel_lge_msm8974" remote="cm" revision="cm-10.2" />

*So there, I have all stuffs to work.

*Under "psx/vendor/psx" I have edit the "vendorsetup.sh"

Add : add_lunch_combo d802-user

* Under "psx/vendor/psx/products" I have create a "d802.mk" file with that :

# Inherit AOSP device configuration for hammerhead.

$(call inherit-product, device/lge/d802/d802.mk)

# Inherit common product files.

$(call inherit-product, vendor/psx/products/common.mk)

# Setup device specific product configuration.

PRODUCT_NAME := d802

PRODUCT_BRAND := LGE

PRODUCT_DEVICE := d802

PRODUCT_MODEL := LG G2

PRODUCT_MANUFACTURER := LGE

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=hammerhead BUILD_FINGERPRINT="google/hammerhead/hammerhead:4.4/KRT16M/893803:user/release-keys" PRIVATE_BUILD_DESC="hammerhead-user 4.4 KRT16M 893803 release-keys"

*I have create a folder "d802" under psx/vendor/lge and add that :

https://github.com/rohanmathur/vendor_lge_d802

*I have edit the file "AndroidProducts.mk" under "psx/vendor/psx" to get that :

PRODUCT_MAKEFILES := \

$(LOCAL_DIR)/psx_emulator.mk \

$(LOCAL_DIR)/psx_mako.mk \

$(LOCAL_DIR)/psx_hammerhead.mk \

$(LOCAL_DIR)/d802.mk \

$(LOCAL_DIR)/psx_flo.mk

*I have edit the file "d802.mk" under "psx/device/lge/d802" and rename :

PRODUCT_NAME := full_d802

to

PRODUCT_NAME := d802

*in a terminal under "psx/" I do :

. build/envsetup.sh

lunch

*And choose "13" that is my "d802-user"

*This is the terminal return :

build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/psx/products/d802.mk]]: "frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk" does not exist. Stop.

** Don't have a product spec for: 'd802'

** Do you have the right repo manifest?

*So I have add " phone-xxhdpi-2048-dalvik-heap.mk" in " frameworks/native/build/"

*in a terminal under "psx/" I do :

. build/envsetup.sh

lunch

*And choose "13" that is my "d802-user"

*This is the terminal return :

build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/psx/products/d802.mk]]: "frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk" does not exist. Stop.

** Don't have a product spec for: 'd802'

** Do you have the right repo manifest?

*So I have add " phone-xxhdpi-2048-hwui-memory.mk" in " frameworks/native/build/"

*in a terminal under "psx/" I do :

. build/envsetup.sh

lunch

*And choose "13" that is my "d802-user"

*There is no more error !"

make otapackage -j8

*And the terminal return :

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.4

TARGET_PRODUCT=d802

TARGET_BUILD_VARIANT=user

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.11.0-13-generic-x86_64-with-Ubuntu-13.10-saucy

HOST_BUILD_TYPE=release

BUILD_ID=KRT16M

OUT_DIR=out

============================================

Checking build tools versions...

build/core/binary.mk:427: target `out/target/product/d802/obj/EXECUTABLES/skia_test_intermediates/MatrixTest.o' given more than once in the same rule.

find: `src': No such file or directory

frameworks/uiautomator/Android.mk:82: warning: overriding commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'

frameworks/testing/uiautomator/library/Android.mk:82: warning: ignoring old commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'

frameworks/uiautomator/Android.mk:99: warning: overriding commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-current-timestamp'

frameworks/testing/uiautomator/library/Android.mk:99: warning: ignoring old commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-current-timestamp'

frameworks/uiautomator/Android.mk:111: warning: overriding commands for target `update-uiautomator-api'

frameworks/testing/uiautomator/library/Android.mk:111: warning: ignoring old commands for target `update-uiautomator-api'

make: *** hardware/qcom/: Is a directory. Stop.

*I have no idea on how to solve it...