rk3588编译lunch出错

1 错误LOG

build/make/core/product_config.mk:160: error: Can not locate config makefile for product 

2 完整错误LOG

test_user1024:~$ source build/envsetup.sh
test_user1024:~$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. aio_3588l-user
     2. aio_3588l-userdebug
     3. aio_3588l_mipi-user
     4. aio_3588l_mipi-userdebug
     5. aio_3588sjd4-user
     6. aio_3588sjd4-userdebug
     7. aio_3588sjd4_mipi-user

Which would you like? [aosp_arm-eng] 7
In file included from build/make/core/config.mk:313:
In file included from build/make/core/envsetup.mk:312:
build/make/core/product_config.mk:160: error: Can not locate config makefile for product "rk3566_roc_pc".
11:36:08 dumpvars failed with: exit status 1

Invalid lunch combo:

3 根本原因

由于切换分支,可能有些分支存在lunch,在当前分支不存在,导致出错,只要将当前lunch指定下,即可解决。

4 解决办法

// 保证该lunch是一定存在的即可
执行lunch xxxx
test_user1024:~$ lunch aio_3588l-userdebug

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=aio_3588l
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-147-generic-x86_64-Ubuntu-20.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SQ3A.220705.003.A1
OUT_DIR=out
============================================

你可能感兴趣的:(linux,运维,android)