summaryrefslogtreecommitdiff
path: root/rust
AgeCommit message (Collapse)Author
2022-02-22Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Ia2198b401a3a907c785316e0ef4c00bf27fa59b1
2021-11-02rust: Remove libtest from stdlibs listIvan Lozano
libtest does not need to be linked for every module type, so remove it from the stdlibs list. Instead, link it only when building benchmarks or tests. Bug: 193782599 Test: cd external/rust/crates/; mma Test: Rust tests still run correctly. Merged-In: I536be8754da0987e09340744d9ebf668b8e734d0 Change-Id: I536be8754da0987e09340744d9ebf668b8e734d0
2021-07-02Include static lib information for the snapshot modulesJustin Yun
snapshot modules require the list of static libs to find the NOTICE files for the snapshot modules. snapshot binaries must include static_executable property to check if non static binaries have libc as a static lib. Bug: 190690041 Test: Check NOTICE for libaudiopreprocessing.so built from snapshots. Change-Id: I53f7549a158ab27ada87833a3f4d58620aa7c3cf (cherry picked from commit 5e035863652abbadda3fc7039654ce915792c6ac)
2021-06-28add support for ramdiskvivek mehta
CRs-Fixed: 2847831 Change-Id: I7a51ea80616cd9b3f1de84623f72bc1de62cac20
2021-06-18Merge SP1A.210616.001Daniel Norman
Change-Id: I93c80df288abe7780005a793240e6dc9d39245cb
2021-06-07Disable Rust vendor-specific modulesIvan Lozano
We need to avoid building Rust vendor-specific modules as there is no vendor snapshot support for Rust yet. Bug: 184042776 Test: m <vendor_rust_module> # build error generated Change-Id: I5afce74bc939b3ceda5cbb9dbe75833d4c3b413e Merged-In: I51a7fa49096ee5809fd37ce76113ff14841d1b52
2021-05-28Fix ExcludeFromVendorSnapshot checkJustin Yun
ExcludeFromVendorSnapshot() must return true if the module must not be snapshotted and built from the vendor source tree. The default value must be false because rust modules are provided by the system source tree. Bug: 184042776 Bug: 189372652 Test: m nothing Change-Id: I267c3a5674bea966d1dd831cda73538ae94cf25f Merged-In: I267c3a5674bea966d1dd831cda73538ae94cf25f (cherry picked from commit 9e13187f6b733f689f9552aa3ca8eb329140f427)
2021-05-27Fix ExcludeFromVendorSnapshot checkJustin Yun
ExcludeFromVendorSnapshot() must return true if the module must not be snapshotted and built from the vendor source tree. The default value must be false because rust modules are provided by the system source tree. Bug: 184042776 Bug: 189372652 Test: m nothing Change-Id: I267c3a5674bea966d1dd831cda73538ae94cf25f (cherry picked from commit 9e13187f6b733f689f9552aa3ca8eb329140f427)
2021-05-19Merge SP1A.210513.004Chris Gross
Change-Id: I665e5cfaed34c1d454e6603b8eac1e0f6d4102a0
2021-05-12Refactor vendor snapshot to use LinkableInterface.Ivan Lozano
Refactors the vendor snapshot support to use the LinkableInterface so that support can be extended to Rust. This CL does not add vendor snapshot support for Rust; that is left for a follow-on CL. Bug: 184042776 Test: m nothing Change-Id: Id0c4970ca00053484a52677d182153cbc454c301
2021-05-10Merge SP1A.210510.001Brian Orr
Change-Id: I71198113bf3c73ab9b80d459f3d1accb58e2d938
2021-05-05Merge SP1A.210425.001Scott Lobdell
Change-Id: I7841bb6877e3a77dc36b830cf1e85131c070420d
2021-05-03Merge "Add support for packaging rust fuzzers"Hamzeh Zawawy
2021-05-02Merge "Add debug ramdisk variant."Treehugger Robot
2021-05-01Add support for packaging rust fuzzershamzeh
Test: make haiku-rust Change-Id: Idd4d836d11e0ae615b59c6648d49348449589787
2021-04-29Merge "Remove global state from vendor public libraries"Colin Cross
2021-04-29Add debug ramdisk variant.Inseob Kim
A module will be installed to /debug_ramdisk if debug_ramdisk is set to true. This is a reland of f84e9c05e2103149162e4a78a68f20c164fbbba2, with a fix that removes /first_stage_ramdisk. Bug: 184004542 Test: soong test Change-Id: I739de63cfec6b0fec5a90f7c4741fc4d884d209c
2021-04-28Merge "Remove obsolete llndk_library"Colin Cross
2021-04-28Merge "Generate rustdoc index."Treehugger Robot
2021-04-27Generate rustdoc index.Dan Albert
Test: m rustdoc Bug: http://b/162741284 Change-Id: I6e649cbae5e3ce38b43baed5d9623851e519b8d0
2021-04-27Remove global state from vendor public librariesColin Cross
Remove the global list of vendor public library modules used to rewrite dependencies from the vendor module to the stubs for system modules, and replace it with building the stubs directly in the system variant of the vendor module. Bug: 178231622 Test: vendor_public_library_test.go Change-Id: I826e69ffd507d7e85fa3d4d85b5157428c642143
2021-04-26Remove obsolete llndk_libraryColin Cross
Remove llndk_library in favor of cc_library with llndk.symbol_file. Bug: 170784825 Test: m checkbuild Test: TestLlndkLibrary Change-Id: I43580976589a7a2a176d7442be53fa043c0c8324
2021-04-26Remove llndk_headersColin Cross
Replace llndk_headers with cc_library_headers with llndk.llndk_headers: true. Bug: 170784825 Test: m checkbuild Test: compare out/soong/build.ninja Test: TestLlndkHeaders Change-Id: I33b411cd4d474318796c2073375176b82dd8c216
2021-04-26Add support for cc_library_headers to replace llndk_headersColin Cross
Set llndk.llndk_headers: true to allow a cc_library_headers module to be used by a cc_library module with llndk.symbol_file set. Bug: 170784825 Test: TestLlndkHeaders Change-Id: Ib65a4b70717dc9a54ae30f2991485bb1bb9b8409
2021-04-26Merge "Enable overflow checks in Rust"Matthew Maurer
2021-04-23Merge "rust: Pass additional Clang C flags from toolchain"Ivan Lozano
2021-04-23rust: Pass additional Clang C flags from toolchainIvan Lozano
The set of Clang flags passed to bindgen from the toolchain was incomplete. In addition to ToolchainClangCflags(), we also need to call ClangCflags(). Bug: 184081465 Test: m libgrpc_bindgen Change-Id: I0b62345fee2f55ba18b4a0c4d825f0447c99db06
2021-04-22Revert^3 "Add debug ramdisk variant"Inseob Kim
836a8f3d613a51d496740dcefaf5b66a4cb86ba2 Change-Id: If59529238e26a197bc33b10245b88f538f280ed0
2021-04-22Revert^2 "Add debug ramdisk variant"Florian Mayer
78ea2f5eacd31b66ab148cd76bd87763b7745bf3 Change-Id: I6a6a2ee82e2807045364bab105ec03a1934b411f
2021-04-22Revert "Add debug ramdisk variant"Bowgo Tsai
This reverts commit f84e9c05e2103149162e4a78a68f20c164fbbba2. Because this breaks the usage of boot-debug.img and vendor_boot-debug.img Bug: 185970130 Bug: 185990198 Test: make bootimage_debug Change-Id: I7886c971982faae1d5bc34688643de8d94d6e201
2021-04-21Merge "Remove unnecessary `android:"path"` tags in rust"Treehugger Robot
2021-04-20Remove unnecessary `android:"path"` tags in rustLiz Kammer
Custom_bindgen is handled by adding a relevant dependency tag. Flags and Ld_flags are not paths/references to other modules. Test: go test soong tests Change-Id: Ic6a69521102318b3b9f29b59560bcefbc9aff8fa
2021-04-19Merge "[rust] Update clang version used for bindgen"Treehugger Robot
2021-04-19Merge "Rustdoc support."Treehugger Robot
2021-04-19[rust] Update clang version used for bindgenPirama Arumuga Nainar
Bug: http://b/185528062 Test: presubmit Change-Id: I0060643b0dec998d1d4f8da2c504c79223995f98
2021-04-17Merge changes from topic "tvts-test-host-jni"Treehugger Robot
* changes: Add jni_libs property to java tests Add Target to cc.SharedLibraryInfo
2021-04-16Rustdoc support.Dan Albert
Adds `m rustdoc` which generates documentation for all Rust libraries to $OUT_DIR/soong/rustdoc. Follow up work: * Generate an index page that lists all modules. * Preserve the artifacts so we can have an always-up-to-date go link. Test: m rustdoc Bug: None Change-Id: Id2d6b9cbab5b02e36b575567563d7cc7606b9401
2021-04-15Merge changes I59439b77,I7dbaf8beThiébaud Weksteen
* changes: bloaty: measure stripped Rust binaries rust: do not strip static library
2021-04-15bloaty: measure stripped Rust binariesThiébaud Weksteen
Modify bloaty's MeasureSizeForPath to allow a module to provide multiple paths. This is used to measure both unstripped and stripped libraries/binaries. Add unit test to ensure correct measurements are generated for Rust. Test: m out/soong/binary_sizes.pb.gz Change-Id: I59439b77dbf1cf5ad71e1c02996a6a90938536b4
2021-04-15Merge changes from topic "userdebug_plat_sepolicy.cil_Android.bp"Treehugger Robot
* changes: Add debug ramdisk variant Add path tests for ramdisk
2021-04-15Add debug ramdisk variantInseob Kim
A module will be installed to debug_ramdisk (or debug_ramdisk/first_stage_ramdisk if recovery as boot is true) if debug_ramdisk is set to true. Bug: 184004542 Test: soong test Change-Id: Ic5a4d27407e506fffa462de2149e0785f11b2ac7
2021-04-14Merge changes from topic "rust_vendor_support"Ivan Lozano
* changes: Add more Rust vendor image support. rust: Use new common image mutator interface.
2021-04-14Merge "cc: Create a common image mutator interface"Ivan Lozano
2021-04-14rust: do not strip static libraryThiébaud Weksteen
Test: m Change-Id: I7dbaf8be625acae89b0a62ea13d0b250c6542a79
2021-04-14Merge "rust: Switch rust_fuzz to HWASan"Tri Vo
2021-04-14Merge changes from topic "rust_benchmark"Jeffrey Vander Stoep
* changes: Attach rust_benchmark to atest and tradefed. Add rust_benchmark module to soong.
2021-04-13rust: Switch rust_fuzz to HWASanTri Vo
Bug: 180495975 Test: example_rust_fuzzer Change-Id: I26e6f15136ee2d5f4ed1167be5c1c6a14b19421a
2021-04-13Add more Rust vendor image support.Ivan Lozano
This adds Rust vendor image support for all module types except Rust prebuilts. Bug: 184042776 Test: New Soong tests. Test: Example cc_library vendor module can depend on rust_ffi_shared. Test: Example rust_library vendor-only module compiles. Change-Id: Iaa30ad51fdaedcbf14687da5472581f6af62ff59
2021-04-13rust: Use new common image mutator interface.Ivan Lozano
Refactor rust to use and implement the new common image mutator interface to handle future image mutations. Bug: 184042776 Test: m nothing Change-Id: If6a85e2b8c6a1969d62264eaea6c6b53cae9c039
2021-04-13cc: Create a common image mutator interfaceIvan Lozano
As part of adding Vendor support to Rust, refactor the image mutator in CC to a new common image mutator interface so this logic can be reused across both CC and Rust. Bug: 184042776 Test: m nothing Change-Id: Ia55d5ad840db7cf1a64d6c65ed86487230cb8742