Commit Graph

11 Commits

Author SHA1 Message Date
a626e135fb Fix dependency on python hash seed
Sort the list of targets before writing them to the output, which fixes
the only place where output ordering depended on the python hash seed.
Also remove the fixed python hash seed from the script.

Test: android_tools/generate_android_bp.sh && git diff
Test: mma
Change-Id: Icfadfaaebf438d00bfef13c231fc09afda454916
2023-02-24 16:28:21 -08:00
401bd53770 Regenerate build files with better json file for riscv64
And update instructions

Bug: 269761242
Test: run cuttlefish on x64
Change-Id: I09d66d1981db46cce06dbceaa18d8c17fac5b7c2
2023-02-24 12:08:05 -08:00
0679981372 Don't include flags not present in .gn[i] files
The json files used to generate the Android.bp files have more flags
than those specified in the BUILD.gn and *.gni configuration files. This
change ignores the ones added by the build toolchain and keeps only
those added by the webrtc authors.

Bug: 269761242
Test: run cuttlefish in x64, build for arm64 and riscv64
Change-Id: I55f2bdea229cf11c21b5780b2639abb6dd7c3268
2023-02-24 11:28:09 -08:00
4338e01dec Generate build for riscv64
Bug: 269761242
Test: build aosp_cf_riscv64_minidroid-userdebug
Change-Id: Ic9901bd1d8ec76b6de05a06e19b67d4da5219df2
2023-02-23 16:56:05 -08:00
b33211a55a Make it easier to add new build architectures
by making the build file generator script (mostly) architecture independent.

Bug: 269761242
Test: build x64 and arm64 locally
Change-Id: I76ea4bc0ba5e8e5c152b93cb1ad7a385c796adae
2023-02-23 16:55:25 -08:00
d5686e69d7 Remove -gdwarf-aranges
-gdwarf-aranges breaks a later linking step on riscv64 with:
ld.lld: error: out/soong/.intermediates/external/webrtc/webrtc_audio_processing/android_vendor.UpsideDownCake_riscv64_static/webrtc_audio_processing.a(audio_processing_impl.o):(.rodata.str1.1): offset is outside the section

Bug: 269343483
Test: lunch aosp_riscv64-userdebug && m libaudiopreprocessing
Change-Id: Iaf96679c3e82229adf958668f9afbdf0d4768c6b
2023-02-14 14:40:51 -08:00
41c96e4079 Drop -gsplit-dwarf
This option is likely not really applicable for Android target builds
which are stripped / have a separate symbols output so just filter it
out. The option breaks on RISC-V due to implicit -mrelax and lack of
toolchain support:

clang++: error: -gsplit-dwarf is unsupported with RISC-V linker relaxation (-mrelax)

Bug: 266468464
Change-Id: Ibdb7bc7e08576c1096148a7a6381554888dfa6b0
2023-01-23 14:33:20 -08:00
b5b78192e1 Generate build files
For x86, x86_64, arm and arm64

Bug: 261600888
Test: build and run cuttlefish x86, x86_64 and arm64
Change-Id: I3ac4dad1ac9ec83b0e626e64715df450e8809b82
2022-12-27 23:04:27 -08:00
bb55342cbc Import abseil-cpp to third_party
Renamed abseil modules to make them webrtc specific.
Restricted visibility of abseil modules to webrtc packages.

Bug: 171836454
Test: Builds

Change-Id: Icf24c7e3093a77dd9a26e7ec78bd531eb1ad3dec
2020-10-28 20:50:30 +00:00
b045a3fbd7 Update scripts for merging with upstream
Bug: 153469641
Test: ./android_tools/generate_android_bp.sh
Change-Id: I8eec3d828a609dff1ca401f258fead9b1ed32e90
2020-07-28 17:20:25 +08:00
6a057ef552 Add some scripts useful for merging with upstream-master
Bug: 153469641
Test: mm
Change-Id: Ie9a90d2ffb0a83e513bc90e2e906e2e8ab369981
2020-07-23 13:38:19 -07:00