Repository navigation
Conversation
Keep Make variable reads raw and handle strings, scalars and booleans at their consumers. Share generated C flags across recovery, GUI, minui and MTP, and remove double stringification of string macros. Fix the custom LUN macro mapping and handle unset optional storage paths. Link libtar statically with recovery to resolve FBE callbacks against the same libvold state. Replace invalid kernel header dependencies and add regression tests. Fixed #33
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-layer Make/Soong propagation and static FBE linkage require full-tree build validation.
0 open findings
What changed in this PR
Fixes #33 by preserving raw Make values and converting them according to their consumers.
Changes:
- Adds typed handling for strings, scalars, booleans, and integers.
- Shares generated flags across recovery, GUI, minui, and MTP.
- Statically links libtar and adds regression coverage.
| File | Description |
|---|---|
Android.bp |
Registers shared flags, tests, and static libtar linkage. |
data.cpp |
Consumes typed macros directly. |
gui/Android.bp |
Applies shared flags to GUI. |
gui/libtwrpgui_defaults.go |
Uses typed Make-variable accessors. |
libtar/Android.bp |
Retains only the static libtar target. |
libtar/libtar_defaults.go |
Normalizes boolean and policy variables. |
mtp/Android.bp |
Applies shared flags to MTP. |
mtp/twrp/TwrpMtpServer.cpp |
Uses the MTP device string directly. |
partition.cpp |
Uses string macros and handles an unset external path. |
prebuilt/Android.mk |
Normalizes quoted boolean conditions. |
soong/makevars.go |
Preserves raw vendor values. |
soong/tests/test_variables.py |
Adds end-to-end Make/Go/C++ regressions. |
soong/variables.go |
Adds typed value and literal conversion helpers. |
soong/variables_test.go |
Tests conversion edge cases. |
twrp.cpp |
Uses the battery path string directly. |
twrp_apex.cpp |
Uses the APEX file-list string directly. |
twrp_defaults_test.go |
Tests shared flag propagation. |
twrp_flags.go |
Centralizes generated C flags. |
twrp_flags_test.go |
Tests flag generation and compiler semantics. |
twrp_recovery_defaults.go |
Separates reusable flags from recovery defaults. |
twrpminui/Android.bp |
Applies shared flags to minui. |
twrpminui/events.cpp |
Removes redundant macro stringification. |
twrpminui/libtwrpminui_defaults.go |
Uses typed variables and proper kernel headers. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep Make variable reads raw and handle strings, scalars and booleans at their consumers.
Share generated C flags across recovery, GUI, minui and MTP, and remove double stringification of string macros. Fix the custom LUN macro mapping and handle unset optional storage paths.
Link libtar statically with recovery to resolve FBE callbacks against the same libvold state. Replace invalid kernel header dependencies and add regression tests.
Fixed #33