Hi all,
This is my first experience working with the AOSP. My goal is to build a standalone ADB1.0.41 binary that is cross-compiled for aarch32. To do this, I am first trying to build ADB for 64-bit ubuntu (and move on to the CC step after). Because of my tasks requirements, I need to get this source to build with automake and gcc/g++ instead of soong, so I am slowly creating my own makefile based on the contents of Android.bp in the system/core/adb directory.
I am at a point where my build fails for "deployagent.inc: No such file or directory" when trying to compile adb/client/fastdeploy.cpp. The comment in the code says "// Generated include via build rule." Running the linux "locate" command, I can find a DeployAgent.java file but nothing that looks like it can generate a .inc file.
Here is the relevant compiler output:
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 435c9a72f92ce04eba08a47828fa63c4
In file included from ./adb_trace.h:20,
from ./adb.h:28,
from ./client/commandline.h:22,
from ./client/fastdeploy.cpp:29:
../base/include/android-base/logging.h:454: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
454 | #pragma clang diagnostic push
|
../base/include/android-base/logging.h:455: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
455 | #pragma clang diagnostic ignored "-Wgcc-compat"
|
../base/include/android-base/logging.h:462: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
462 | #pragma clang diagnostic pop
|
./client/fastdeploy.cpp:30:10: fatal error: deployagent.inc: No such file or directory
30 | #include "deployagent.inc" // Generated include via build rule.
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:100: recipe for target '.build/fastdeploy.o' failed
make: *** [.build/fastdeploy.o] Error 1
Where can I find this required file? Or alternatively, how can I generate this file? The code comment gives a hint that it is part of a build rule, but I am lost as to what rule, where, and what relevant files I need to generate it in my own makefile rules. If any other system output/context is needed let me know. Any help will be greatly appreciated!
Thank you,
Dan