aboutsummaryrefslogtreecommitdiff
path: root/linkerconfig/linkerconfig.go
Commit message (Collapse)AuthorAgeFilesLines
* "master" was renamed "main".Elliott Hughes2024-01-091-1/+1
| | | | | Test: N/A Change-Id: I86d5578eaac260e55a9583db7ab49812b4ba1f5d
* Remove ConvertWithBp2build implementationsColin Cross2023-12-081-27/+0
| | | | | | | | | Remove the ConvertWithBp2build implementations from all the module types, along with the related code. Bug: 315353489 Test: m blueprint_tests Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7
* Have ConvertWBp2build use Bp2buildMutatorContextChris Parsons2023-09-201-1/+1
| | | | | | | | | | | | | This no-op refactoring facilitates some upcoming functional changes for "bp2build allowlist v2". The work requires that the bp2build conversion mutator be changed from a TopDown mutator to a BottomUp mutator. Refactoring all bp2build-related methods so that they use Bp2buildMutatorContext makes it easier to make this functional change without touching tens of files and multiple projects. Bug: 285631638 Test: m bp2build Change-Id: I3d1ef3064146e959c6f0dc315350fc9764bf2bd2
* Provide reason for unconverted bp2build modulesChris Parsons2023-06-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | This also changes the expectation of ConvertWithBp2build. Each implementation must either create one or more Bazel target modules, or mark the module as unconvertible (with a specific reason). Manually verified no runtime hit in AOSP In AOSP, the metrics file size increases from 252K to 1.6M This changes some effective module counts in bp2build metrics: - Removes "package" modules from the module count list in metrics, as these will not be converted like regular modules. - Counts Handcrafted modules as being "unconverted", as bp2build is not responsible for them. Bug: 285631638 Test: Verified generated BUILD.bazel files are bit-for-bit identical with this change Test: Manually verified one case of each implemented reasonType Change-Id: I308dd451d8f28379b15671dae9f931bd0446f5c1
* Implement bp2build for linker_configLiz Kammer2022-07-081-2/+27
| | | | | | | Pair: agespino Bug: 211666695 Test: TODO Change-Id: I479bcd7c53b1c57563fb4277ec39ad70b16030b8
* Don't export Soong path as a Make variableColin Cross2022-03-151-1/+0
| | | | | | | | Make is being changed to use the copy at LOCAL_BUILT_MODULE, the Soong path is no longer necessary. Test: m alllicensemetadata reportmissinglicenses Change-Id: I030539473a05e94bec1623ab54fbbcdf43d42cf3
* Remove InstallBypassMake and ToMakePathColin Cross2021-12-151-1/+1
| | | | | | | | InstallBypassMake and ToMakePath are obsolete, remove them. Bug: 204136549 Test: m checkbuild Change-Id: Ie5a6f7254b3d317ed6039e114ed6aec35e1ce273
* android_system_image that generates linker.config.pbJiyong Park2021-04-211-13/+52
| | | | | | | | | | | | | | | | | | | | android_system_image module type is a specialization of the android_filesystem module type. Currently, it adds a build rule for creating linker.config.pb from the information about all the other files in the filesystem and includes linker.config.pb to the filesystem as well. To do so, the filesystem module now provides a function pointer which subtype modules like android_system_image can implement to pass extra files that they want to package in the filesystem. In addition, the linkerconfig package is revised to make it possible to build linker.config.pb file outside of the package. Bug: 185391776 Test: m microdroid and inspect etc/linker.config.pb in it. Change-Id: Id89c40b519213062860d7306029b8413d8d36a2d
* make linker_config OutputFileProducerJooyung Han2021-04-151-0/+12
| | | | | | | | so that they can be used in `srcs` of genrule. Bug: 181093750 Test: m Change-Id: Ia54554f1e81d766a970c9c4e02906ef9c0d85934
* Allow uninstallable linker_config to be packagedJooyung Han2021-04-151-2/+3
| | | | | | | | | | | Till now, linker_config has to be installable to be packaged. With this commit, packaging modules like filesystem now can include uninstallable linker_config. This can help when linker_config can conflict with other partitions e.g. system. Bug: 185391776 Test: build filesystem with uninstallable linker_config Change-Id: Ic2cece08be73749e6bd1f813152c67f8e3904c20
* Convert linkerconfig package to use test fixturesPaul Duffin2021-03-291-1/+5
| | | | | | Bug: 181070625 Test: m nothing Change-Id: Ic85e353ad8fa2aa324cd75d5bca8a1e31fd977a8
* Add ctx to AndroidMkExtraEntriesFuncColin Cross2021-02-191-1/+1
| | | | | | | | | Add a ctx parameter to AndroidMkExtraEntriesFunc to allow them to access providers. Test: m checkbuild Change-Id: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc Merged-In: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc
* Merge "Pass pctx and ctx to NewRuleBuilder"Colin Cross2020-12-031-3/+3
|\
| * Pass pctx and ctx to NewRuleBuilderColin Cross2020-12-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | Enable the RuleBuilder and RuleBuilderCommand methods to access the BuilderContext by passing it to NewRuleBuilder instead of RuleBuilder.Build. Test: genrule_test.go Test: rule_builder_test.go Test: m checkbuild Change-Id: I63e6597e19167393876dc2259d6f521363b7dabc
* | Generate system stub library list at build timeKiyoung Kim2020-12-011-0/+1
|/ | | | | | | | | | | | List of stub libraries from system (and bionic APEX) is currently managed in static file. This change generates the list at build time and adds to the system config so linkerconfig can use it. Bug: 172889962 Test: Build cuttlefish and confirmed list is generated in /system/etc/linker.config.pb Change-Id: Ie0400e9d1098b0de19c6a7c25f261384aadde0a3
* Handle new filetype 'linker_config'Kiyoung Kim2020-10-151-0/+108
Handle new filetype 'linker_config' which is configuration for linkerconfig in json type and convert into protobuf in build time. Bug: 169634881 Test: Build succeeded and cuttlefish boot succeeded Change-Id: I56555fc738e6d6600d15a191a24f79a2ee747f52