2017-09-11 6 views
1

Tout d'abord, je suis nouveau dans le bâtiment Android et je voulais juste commencer avec quelque chose de simple, donc je voulais construire AOSP 8.0 pour mon Xperia X (F5121) suivant le guide de Sony sur la façon de construire AOSP pour dispositifs déverrouillés.AOSP déjeuner mauvaise cible

Donc, pour commencer la construction de type I source build/envsetup.sh && lunch et obtenir ceci:

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= 

Jusqu'à présent, si bon, mais maintenant après l'exécution de la commande make me donne ceci:

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= 

Il commence juste construire erverytime pour aosp_arm-eng même si j'ai choisi mon appareil dans le menu du déjeuner.

Le repas courant aosp_f5121-userdebug ne change rien car il se construit vraiment à chaque fois aosp_arm-eng au lieu de aosp_f5121-userdebug.

Alors, est-ce que je fais quelque chose de mal ou est-ce normal? Mais je suppose que ce n'est pas normal.

Merci.

+0

J'ai le même problème, avez-vous trouvé une solution à cela? – develop1

Répondre

1

Voici quelques choses que vous pouvez essayer

1) course make clobber puis source build/envsetup.sh et ne puis exécutez lunch.

De cette façon si source build/envsetup.sh a un problème, vous pouvez le voir dans la sortie.

2) Assurez-vous que vous avez les binaires corrects pour votre appareil et pour la version d'Android que vous construisez. Il est également important qu'ils soient extraits correctement.

3) aosp_arm-eng devrait encore fonctionner sur votre appareil correctement (si les binaires sont corrects).

4) Si tout le reste échoue, effacez tout dans votre environnement de compilation et recommencez à zéro.