Hello,
I wanted to build AOSP 8.0 from source for my device but it starts building everytime for the wrong target.
In my case what I do is first running build/envsetup.sh && lunch:
Code:
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. full_fugu-userdebug
8. aosp_fugu-userdebug
9. car_emu_arm64-userdebug
10. car_emu_arm-userdebug
11. car_emu_x86_64-userdebug
12. car_emu_x86-userdebug
13. mini_emulator_arm64-userdebug
14. m_e_arm-userdebug
15. m_e_mips64-eng
16. m_e_mips-userdebug
17. mini_emulator_x86_64-userdebug
18. mini_emulator_x86-userdebug
19. aosp_dragon-userdebug
20. aosp_dragon-eng
21. aosp_marlin-userdebug
22. aosp_marlin_svelte-userdebug
23. aosp_sailfish-userdebug
24. aosp_angler-userdebug
25. aosp_bullhead-userdebug
26. aosp_bullhead_svelte-userdebug
27. hikey-userdebug
28. aosp_f8131-userdebug
29. aosp_f8132-userdebug
30. aosp_f8331-userdebug
31. aosp_f8332-userdebug
32. aosp_g8231-userdebug
33. aosp_g8232-userdebug
34. aosp_f5321-userdebug
35. aosp_g8141-userdebug
36. aosp_g8142-userdebug
37. aosp_f5121-userdebug
38. aosp_f5122-userdebug
39. aosp_e2303-userdebug
40. aosp_e2333-userdebug
Which would you like? [aosp_arm-eng] 37
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_f5121
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=out
AUX_OS_VARIANT_LIST=
So I am picking number 37 corresponding to my device, so far so good.
But now after running the make -jN command it starts building everytime for aosp_arm-eng instead of aosp_f5121-userdebug.
So after running the make command it gives me this and starts building:
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=out
AUX_OS_VARIANT_LIST=
I also tried
Code:
lunch aosp_f5121-userdebug
but this changes nothing as it just builds for aosp_arm-eng.
What am I doing wrong?
Thanks.
Hello,
I wanted to build AOSP 8.0 from source for my device but it starts building everytime for the wrong target.
In my case what I do is first running build/envsetup.sh && lunch:
Related
Code:
[email protected]:~/aosp/frameworks/base$ cd
[email protected]:~$ cd aosp
[email protected]:~/aosp$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/aosp$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. aosp_deb-userdebug
6. aosp_flo-userdebug
7. full_grouper-userdebug
8. full_tilapia-userdebug
9. mini_armv7a_neon-userdebug
10. mini_mips-userdebug
11. mini_x86-userdebug
12. full_mako-userdebug
13. full_maguro-userdebug
14. full_manta-userdebug
15. full_arndale-userdebug
16. full_toroplus-userdebug
17. full_toro-userdebug
18. full_panda-userdebug
Which would you like? [aosp_arm-eng] 12
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full_mako
TARGET_BUILD_VARIANT=userdebug
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.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JWR66Y
OUT_DIR=out
============================================
[email protected]:~/aosp$ make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full_mako
TARGET_BUILD_VARIANT=userdebug
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.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JWR66Y
OUT_DIR=out
============================================
build/core/base_rules.mk:64: *** Module name: platform.xml
build/core/base_rules.mk:65: *** Makefile location: frameworks/base/data/etc/Android.mk
build/core/base_rules.mk:66: *
build/core/base_rules.mk:67: * Module is attempting to use the 'user' tag. This
build/core/base_rules.mk:68: * used to cause the module to be installed automatically.
build/core/base_rules.mk:69: * Now, the module must be listed in the PRODUCT_PACKAGES
build/core/base_rules.mk:70: * section of a product makefile to have it installed.
build/core/base_rules.mk:71: *
build/core/base_rules.mk:72: *** user tag detected on module.. Alto.
How Fix? Thks
Please I need serious help
I am trying to build lollipop for oneplus one.
I have followed multiple guides to get this correct.
However I am stuck at [email protected]:~/bin/WORKING_DIRECTORY$ make -j16
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
TARGET_PRODUCT=aosp_bacon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-25-generic-x86_64-with-Ubuntu-14.10-utopic
HOST_BUILD_TYPE=release
BUILD_ID=LRX21M
OUT_DIR=out
============================================
Checking build tools versions...
build/core/dex_preopt.mk:47: *** target pattern contains no '%'. Stop.
However if i use "sudo make -j 16"
I get this
Which would you like? [aosp_arm-eng] 15
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
TARGET_PRODUCT=aosp_bacon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-25-generic-x86_64-with-Ubuntu-14.10-utopic
HOST_BUILD_TYPE=release
BUILD_ID=LRX21M
OUT_DIR=out
============================================
[email protected]:~/bin/WORKING_DIRECTORY$ sudo make -j16
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-25-generic-x86_64-with-Ubuntu-14.10-utopic
HOST_BUILD_TYPE=release
BUILD_ID=LRX21M
OUT_DIR=out
============================================
Checking build tools versions...
What happens is the target product and everything changes so the output is a generic build.
Please help
Thanks
Hey
I have followed these instructions: http://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
and at the End I always get the same error
** Don't have a product spec for: 'cm_I9515'
** Do you have the right repo manifest?
Then it shows me: No such item in brunch menu. Try 'breakfast'
I write "breakfast" in console and get this:
including vendor/cm/vendorsetup.sh
You're building on Linux
Breakfast menu... pick a combo:
1. full-eng
... and don't forget the bacon!
Which would you like? [aosp_arm-eng] 1
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-18-generic-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/home/oliver/cm13/out
============================================
What can I do to fix this?
triplecan said:
Hey
I have followed these instructions: http://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
and at the End I always get the same error
** Don't have a product spec for: 'cm_I9515'
** Do you have the right repo manifest?
Then it shows me: No such item in brunch menu. Try 'breakfast'
I write "breakfast" in console and get this:
including vendor/cm/vendorsetup.sh
You're building on Linux
Breakfast menu... pick a combo:
1. full-eng
... and don't forget the bacon!
Which would you like? [aosp_arm-eng] 1
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-18-generic-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/home/oliver/cm13/out
============================================
What can I do to fix this?
Click to expand...
Click to collapse
It means that the device tree you are using is not detected by the compiler. It cant find the product cm_I9515. So check the device tree and try again
including vendor/lineage/vendorsetup.sh
Looking for dependencies in device/xiaomi/sagit
Looking for dependencies in device/xiaomi/msm8998-common
Looking for dependencies in kernel/xiaomi/msm8998
kernel/xiaomi/msm8998 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20190706-UNOFFICIAL-sagit
TARGET_PRODUCT=lineage_sagit
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-148-generic-x86_64-Ubuntu-14.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190605.003
OUT_DIR=/aout/lin16
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8998 hardware/qcom/display-caf/msm8998 hardware/qcom/media-caf/msm8998
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20190706-UNOFFICIAL-sagit
TARGET_PRODUCT=lineage_sagit
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-148-generic-x86_64-Ubuntu-14.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190605.003
OUT_DIR=/aout/lin16
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8998 hardware/qcom/display-caf/msm8998 hardware/qcom/media-caf/msm8998
============================================
ninja: no work to do.
[1/1] /aout/lin16/soong/.bootstrap/bin/soong_build /aout/lin16/soong/build.ninja
FAILED: /aout/lin16/soong/build.ninja
/aout/lin16/soong/.bootstrap/bin/soong_build -t -l /aout/lin16/.module_paths/Android.bp.list -b /aout/lin16/soong -n /aout/lin16 -d /aout/lin16/soong/build.ninja.d -o /aout/lin16/soong/build.ninja Android.bp
error: vendor/lineage/build/soong/Android.bp:27:1: module "generated_kernel_includes": unable to glob kernel/xiaomi/msm8998/include/**/*: IsDir(kernel/xiaomi/msm8998/include/linux/in6.h): unexpected error after glob: stat kernel/xiaomi/msm8998/include/linux/in6.h: file name too long
ninja: build stopped: subcommand failed.
[0;31m#### failed to build some targets (10 seconds) ####[00m
Newbie - Have downloaded the lineageos 16 officially supported image . For fun wanted to build the image for my new device. Need community help / support .(Have run breakfast sagit and downloaded the files from github/themuppets for sagit)
Thanks
Hello there,
Today i tried Porting LineageOS 17.1 for ZTE Nubia X:
- I did my source code setup as described on wiki.lineageos.org
- I took the device tree from Mokee OS, and modified the files to fit Lineage
- I pulled the vendor files from the Phone using proprietary-files.txt
- I ran breakfast
- I ran brunch
So i got a few questions, and i think they are about Porting in general so i hope i'm right here.
Question #1:
The lineage/device/nubia/nx616j makefiles of the mokee source do point to lineage/device/nubia/sdm845-common makefiles, also the bash scripts for pulling vendor blobs from the device.
Does that maybe have tho do with my second problem, because my particular phone just don't needs these proprietary files?
Question #2:
When i pulled the vendor files, some(a lot of) files couldn't be found. Is that bad or maybe the cause of my third problem?
Question #3:
When i run breakfast, it suceeds(I think):
Code:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201106-UNOFFICIAL-nx616j
TARGET_PRODUCT=lineage_nx616j
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-52-generic-x86_64-Linux-Mint-20
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/nubia/sdm845-common device/nubia/sdm845-common hardware/qcom-caf/sdm845
============================================
But when i run brunch, it fails:
Code:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201106-UNOFFICIAL-nx616j
TARGET_PRODUCT=lineage_nx616j
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-52-generic-x86_64-Linux-Mint-20
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/nubia/sdm845-common device/nubia/sdm845-common hardware/qcom-caf/sdm845
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201106-UNOFFICIAL-nx616j
TARGET_PRODUCT=lineage_nx616j
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-52-generic-x86_64-Linux-Mint-20
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/nubia/sdm845-common device/nubia/sdm845-common h
ardware/qcom-caf/sdm845
============================================
[100% 545/545] build bacon
FAILED: bacon
/bin/bash -c "(ln -f out/target/product/nx616j/lineage-17.1-20201106-UNOFFICIAL
-nx616j.zip ) && (md5sum out/target/product/nx616j/lineage-17.1-20201106-UNOFFIC
IAL-nx616j.zip | sed \"s|out/target/product/nx616j/||\" > out/target/product/nx6
16j/lineage-17.1-20201106-UNOFFICIAL-nx616j.zip.md5sum ) && (echo \"Package Comp
lete: out/target/product/nx616j/lineage-17.1-20201106-UNOFFICIAL-nx616j.zip\" >&
2 )"
ln: cannot create hard link from 'out/target/product/nx616j/lineage-17.1-2020110
6-UNOFFICIAL-nx616j.zip' to './lineage-17.1-20201106-UNOFFICIAL-nx616j.zip': No
such file or directory
19:18:14 ninja failed with: exit status 1
#### failed to build some targets (4 seconds) ####
Any suggestions?