Alberto97 / android_device_motorola_addison

Moto Z Play Device Tree
21 stars 57 forks source link

Build instructions #2

Open BtbN opened 6 years ago

BtbN commented 6 years ago

I can't figure out how to build a ROM based on this and the two related repos you have.

Cloned the AOSP tree from https://android.googlesource.com/platform/manifest on android-8.1.0_r29 Added a bunch of local repos with stuff that seems to be needed

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
        <remote name="alberto" fetch="https://github.com/Alberto97" revision="oreo-mr1" />
        <remote name="aospext" fetch="https://github.com/AospExtended" revision="8.1.x" />
        <project path="device/motorola/addison" remote="alberto" name="android_device_motorola_addison" />
        <project path="kernel/motorola/msm8953" remote="alberto" name="android_kernel_motorola_msm8953" />
        <project path="vendor/motorola" remote="alberto" name="proprietary_vendor_motorola" revision="oreo-mr1-addison" depth="1" />
        <project path="device/qcom/sepolicy" remote="aospext" name="platform_device_qcom_sepolicy" />
        <project path="device/qcom/common" remote="aospext" name="platform_device_qcom_common" />
        <project path="system/qcom" remote="aospext" name="platform_system_qcom" />
        <project path="vendor/aosp" remote="aospext" name="platform_vendor_aosp" />
</manifest>

And then tried lunch + make for aosp_addison.

But it always fails with various errors every time. I tried LineageOS and AospExt as source for the missing files so far. Stuff from caf does not seem to match what is expected.

Some very short build hints/instructions to get this device building would be super nice to have.

BtbN commented 6 years ago

For reference, this is a working local manifest as of today. https://github.com/BtbN/android_device_qcom_sepolicy is identical with upstream LineageOS but with https://github.com/LineageOS/android_device_qcom_sepolicy/commit/7eac19179bb563ccc05316b91033ef3853f346c0 reverted.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote name="lineage" fetch="https://github.com/LineageOS/" revision="lineage-15.1" />
  <remote name="btbn" fetch="https://github.com/BtbN/" revision="lineage-15.1" />
  <remote name="aosp_porting" fetch="https://github.com/AOSP-Porting/" revision="oreo-mr1" />
  <remote name="alberto" fetch="https://github.com/Alberto97/" revision="oreo-mr1" />

  <remove-project path="device/sample" name="device/sample" groups="pdk" />
  <project path="device/sample" name="device/sample" revision="master" />

  <project path="device/qcom/sepolicy" name="android_device_qcom_sepolicy" remote="btbn" />
  <project path="packages/resources/devicesettings" name="android_packages_resources_devicesettings" remote="lineage" />
  <project path="system/tools/dtbtool" name="android_system_tools_dtbtool" remote="lineage" />
  <project path="system/qcom" name="android_system_qcom" remote="lineage" />
  <project path="vendor/qcom/opensource/cryptfs_hw" name="android_vendor_qcom_opensource_cryptfs_hw" remote="lineage" />
  <project path="vendor/qcom/opensource/interfaces" name="android_vendor_qcom_opensource_interfaces" remote="lineage">
    <copyfile dest="vendor/qcom/opensource/Android.bp" src="os_pickup.bp"/>
  </project>

  <project path="device/motorola/addison" name="android_device_motorola_addison" remote="alberto" />
  <project path="kernel/motorola/msm8953" name="android_kernel_motorola_msm8953" remote="alberto" />
  <project path="vendor/motorola" name="proprietary_vendor_motorola" remote="alberto" revision="oreo-mr1-addison" />

  <remove-project path="bootable/recovery" name="platform/bootable/recovery" groups="pdk" />
  <remove-project path="bionic" name="platform/bionic" groups="pdk" />
  <remove-project path="frameworks/native" name="platform/frameworks/native" groups="pdk" />
  <remove-project path="frameworks/base" name="platform/frameworks/base" groups="pdk-cw-fs,pdk-fs" />
  <remove-project path="frameworks/av" name="platform/frameworks/av" groups="pdk" />
  <remove-project path="build/make" name="platform/build" groups="pdk" />
  <remove-project path="build/soong" name="platform/build/soong" groups="pdk,tradefed" />
  <remove-project path="build/kati" name="platform/build/kati" groups="pdk,tradefed" />
  <remove-project path="system/vold" name="platform/system/vold" groups="pdk" />
  <remove-project path="system/sepolicy" name="platform/system/sepolicy" groups="pdk" />
  <remove-project path="system/bt" name="platform/system/bt" groups="pdk" />
  <remove-project path="system/core" name="platform/system/core" groups="pdk" />
  <remove-project path="hardware/qcom/media" name="platform/hardware/qcom/media" groups="qcom,pdk" />
  <remove-project path="hardware/qcom/display" name="platform/hardware/qcom/display" groups="pdk,qcom,qcom_display" />
  <remove-project path="hardware/qcom/audio" name="platform/hardware/qcom/audio" groups="qcom,qcom_audio,pdk" />
  <remove-project path="hardware/qcom/wlan" name="platform/hardware/qcom/wlan" groups="qcom_wlan,pdk" />
  <remove-project path="hardware/qcom/bt" name="platform/hardware/qcom/bt" groups="qcom,pdk" />
  <remove-project path="packages/inputmethods/LatinIME" name="platform/packages/inputmethods/LatinIME" groups="pdk-fs" />
  <remove-project path="packages/apps/Settings" name="platform/packages/apps/Settings" groups="pdk-fs" />
  <remove-project path="packages/apps/Messaging" name="platform/packages/apps/Messaging" groups="pdk-fs" />
  <remove-project path="packages/apps/DeskClock" name="platform/packages/apps/DeskClock" groups="pdk-fs" />
  <remove-project path="packages/apps/Contacts" name="platform/packages/apps/Contacts" groups="pdk-fs" />
  <remove-project path="packages/apps/Stk" name="platform/packages/apps/Stk" groups="apps_stk,pdk-fs" />
  <remove-project path="external/tinycompress" name="platform/external/tinycompress" groups="pdk" />
  <remove-project path="external/selinux" name="platform/external/selinux" groups="pdk" />

  <project path="bionic" name="platform_bionic" remote="aosp_porting" />
  <project path="bootable/recovery" name="platform_bootable_recovery" remote="aosp_porting" />
  <project path="build/make" name="platform_build" remote="aosp_porting">
    <copyfile src="core/root.mk" dest="Makefile" />
    <linkfile src="CleanSpec.mk" dest="build/CleanSpec.mk" />
    <linkfile src="buildspec.mk.default" dest="build/buildspec.mk.default" />
    <linkfile src="core" dest="build/core" />
    <linkfile src="envsetup.sh" dest="build/envsetup.sh" />
    <linkfile src="target" dest="build/target" />
    <linkfile src="tools" dest="build/tools" />
  </project>
  <project path="build/soong" name="platform_build_soong" remote="aosp_porting">
    <linkfile src="root.bp" dest="Android.bp" />
    <linkfile src="bootstrap.bash" dest="bootstrap.bash" />
  </project>
  <project path="build/kati" name="platform_build_kati" remote="aosp_porting" />
  <project path="vendor/aosp" name="platform_vendor_aosp" remote="aosp_porting" />
  <project path="frameworks/native" name="platform_frameworks_native" remote="aosp_porting" />
  <project path="frameworks/base" name="platform_frameworks_base" remote="aosp_porting" />
  <project path="frameworks/av" name="platform_frameworks_av" remote="aosp_porting" />
  <project path="system/sepolicy" name="platform_system_sepolicy" remote="aosp_porting" />
  <project path="system/bt" name="platform_system_bt" remote="aosp_porting" />
  <project path="system/vold" name="platform_system_vold" remote="aosp_porting" />
  <project path="system/core" name="platform_system_core" remote="aosp_porting" />
  <project path="hardware/qcom/media" name="platform_hardware_qcom_media" remote="aosp_porting" revision="oreo-mr1-caf-8996" />
  <project path="hardware/qcom/display" name="platform_hardware_qcom_display" remote="aosp_porting" revision="oreo-mr1-caf-8996" />
  <project path="hardware/qcom/audio" name="platform_hardware_qcom_audio" remote="aosp_porting" revision="oreo-mr1-caf-8996" />
  <project path="hardware/qcom/wlan" name="platform_hardware_qcom_wlan" remote="aosp_porting" />
  <project path="hardware/qcom/bt" name="platform_hardware_qcom_bt" remote="aosp_porting" />
  <project path="packages/inputmethods/LatinIME" name="platform_packages_inputmethods_LatinIME" remote="aosp_porting" />
  <project path="packages/overlays/Accents" name="platform_packages_overlays_Accents" remote="aosp_porting" />
  <project path="packages/apps/Settings" name="platform_packages_apps_Settings" remote="aosp_porting" />
  <project path="packages/apps/Messaging" name="platform_packages_apps_Messaging" remote="aosp_porting" />
  <project path="packages/apps/DeskClock" name="platform_packages_apps_DeskClock" remote="aosp_porting" />
  <project path="packages/apps/Contacts" name="platform_packages_apps_Contacts" remote="aosp_porting" />
  <project path="packages/apps/Stk" name="platform_packages_apps_Stk" remote="aosp_porting" />
  <project path="external/google-fonts/google-sans" name="platform_external_google-fonts_google-sans" remote="aosp_porting" />
  <project path="external/tinycompress" name="platform_external_tinycompress" remote="aosp_porting" />
  <project path="external/selinux" name="platform_external_selinux" remote="aosp_porting" />
</manifest>
skinzor commented 6 years ago

@BtbN: Hi! I have a different phone and this morning i've just thought about trying to build AOSP (nougat though) and since i knew that Alberto97 is the guy with AOSP, i've looked into his repo xD. I've ran into some build errors as well (which i've fixed) and i keep getting errors. I just wanna ask you if Alberto97 is the one who own AOSP-Porting and if you know whether he's using that for his builds or not. I'm planning to build AOSP 8.1 once i get rid of the bugs on LOS 15 and AOSP-Porting might be useful then and save me some time. Thank you!

PS: I'm not sure, but i think your name sounds familiar to me. Probably i've seen it before somewhere xD.

EDIT: found this post: https://forum.xda-developers.com/showpost.php?p=77008715&postcount=774