diff options
author | Yi-Yo Chiang <yochiang@google.com> | 2021-04-23 16:04:29 +0800 |
---|---|---|
committer | Yo Chiang <yochiang@google.com> | 2021-04-23 08:25:56 +0000 |
commit | 2d03a5e677e528459785a1d8273a63f0fe00837c (patch) | |
tree | 6cc09742fcfb9445a1f92d4bb37fcedd536d0de5 | |
parent | b1ea0e83d6298d16183288d377f4eeb303927d22 (diff) | |
download | toybox-2d03a5e677e528459785a1d8273a63f0fe00837c.tar.gz |
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
-rw-r--r-- | Android.bp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -445,6 +445,10 @@ cc_defaults { local_include_dirs: ["android/linux"], }, + linux_bionic: { + local_include_dirs: ["android/linux"], + }, + darwin: { local_include_dirs: ["android/mac"], cflags: [ |