aosp 为什么某些目录没有编译_AOSP构建TARGET_PRODUCT失败

I'm trying to build an external tool with AOSP. My OS is Linux, Distribution ArchLinux (i3wm), but to compile AOSP I use Ubuntu in Docker (https://android.googlesource.com/platform/build/+/master/tools/docker)

First step:

# init repo

repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r36 --depth=1

repo sync

. build/envsetup.sh # set up environment

lunch aosp_arm-eng # select target to build

Second step: select tool and build

cd external/selinux

mma -j48

Output:

ninja: error: unknown target 'MODULES-IN-'

15:41:55 ninja failed with: exit status 1

make: *** [run_soong_ui] Error 1

make: Leaving directory `/home/user/aosp'

#### make failed to build some targets (6 seconds) ###

Another tool

cd external/wpa_supplicant_8

mma -j48

Output:

ninja: error: unknown target 'MODULES-IN-external-wpa_supplicant_8'

15:41:55 ninja failed with: exit status 1

make: *** [run_soong_ui] Error 1

make: Leaving directory `/home/user/aosp'

#### make failed to build some targets (2 seconds) ###

This happens with any aosp generic target:

Lunch menu... pick a combo:

1. aosp_arm-eng # fails

2. aosp_arm64-eng # fails

3. aosp_mips-eng # fails

4. aosp_mips64-eng # fails

5. aosp_x86-eng # fails

6. aosp_x86_64-eng # fails

7. full_fugu-userdebug # works

8. aosp_fugu-userdebug # works

9. car_emu_arm64-userdebug # fails

10. car_emu_arm-userdebug # fails

11. car_emu_x86_64-userdebug # fails

12. car_emu_x86-userdebug # fails

13. mini_emulator_arm64-userdebug # fails

14. m_e_arm-userdebug # fails

15. m_e_mips64-eng # fails

16. m_e_mips-userdebug # fails

17. mini_emulator_x86_64-userdebug # fails

18. mini_emulator_x86-userdebug # fails

19. aosp_dragon-userdebug # works

20. aosp_dragon-eng # works

21. aosp_marlin-userdebug # works

22. aosp_marlin_svelte-userdebug # works

23. aosp_sailfish-userdebug # works

24. aosp_angler-userdebug # works

25. aosp_bullhead-userdebug # works

26. aosp_bullhead_svelte-userdebug # works

27. hikey-userdebug # works

I want to compile some binary tools in all arch: arm, arm64, x86 and x86_64.

Why aosp_arm-eng does not work? Or how can I change the CPU architecture from non generic aosp target?

Using tapas does not work.

解决方案

You probably need to make a full AOSP build before trying to use mm... shortcuts - looks like some build script files were not generated yet.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值