Fix linux_bionic build
After adding "toybox" to cvd-host_package.tar.gz, aosp_cf_arm64_phone-userdebug failed to build with error: In file included from external/toybox/lib/args.c:10: external/toybox/toys.h:8:10: fatal error: 'generated/config.h' file not found #include "generated/config.h" ^~~~~~~~~~~~~~~~~~~~ 1 error generated. This is because toybox is not configured to be built on linux_bionic host, and aosp_cf_arm64_phone is trying to build the HOST_CROSS variant of toybox, which is arm64 linux_bionic. Bug: 185883642 Test: lunch aosp_cf_arm64_phone-userdebug && m Change-Id: I64418fb5f88f8a8b8b7e6905b58cc1f7e68ab2e8
This commit is contained in:
parent
b1ea0e83d6
commit
2d03a5e677
@ -445,6 +445,10 @@ cc_defaults {
|
|||||||
local_include_dirs: ["android/linux"],
|
local_include_dirs: ["android/linux"],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
linux_bionic: {
|
||||||
|
local_include_dirs: ["android/linux"],
|
||||||
|
},
|
||||||
|
|
||||||
darwin: {
|
darwin: {
|
||||||
local_include_dirs: ["android/mac"],
|
local_include_dirs: ["android/mac"],
|
||||||
cflags: [
|
cflags: [
|
||||||
|
Loading…
Reference in New Issue
Block a user