-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General cleanup #701
General cleanup #701
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this breaks quite a few things. As you know product files (lowercase in our repos) are parsed first, then BoardConfig and descendants (CamelCase). Finally, module targets are read from Android.{bp,mk}, where these variables are available.
This PR moves all checking to common-init where the variables TARGET_NEEDS_AUDIOPD
, WIFI_DRIVER_BUILT
, TARGET_USES_TAD_V2
and TARGET_BOARD_PLATFORM
are not defined yet. These will be defined later in the BoardConfig chain.
What do you reckon, should we clean up all platform/device files and move such simple, static declarations to the device product include chain? Some are there already anyway, while others live on in BoardConfig.
For now, the guards aren't touched. Will have to be addressed later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some more breaking changes. But the final diff between vendor images for different devices start to align now, finally 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not remove the time services
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sscrpcd should not be added to sdm660 adn msm8998
this service is used only by the sdm845 and sm8150
As it currently stands, sscrpd is included for I can remove the init for 660 and 8998 though.
Ok |
please do the blobs are not prezent on those devices |
The service is not used by sdm660 and msm8998. See: sonyxperiadev#701 (review)
Pushed with less breaking changes |
This pulls in #734 as well |
baaae9b
to
71fd337
Compare
The service is not used by sdm660 and msm8998. See: sonyxperiadev#701 (review)
It's cleaner and faster to parse.
The module is only shipping an init file, not an executable. Clear up this confusion my appending .rc to its module name.
The module will only be added for userdebug/eng builds in common.mk anyway.
Having this makes little sense: ``` if (A && B && C) if (B && C) <add-stuff> endif <add-more-stuff> endif ``` Rather, change it to: ``` if (B && C) <add-stuff> endif if (A && B && C) <add-more-stuff> endif ``` ...to improve readability.
This platform is not included in SODP Q.
Since soong doesn't know about templated module names, `init.$(TARGET_DEVICE).rc` and `init.recovery.$(TARGET_DEVICE)` stay as .mk. Also, any module that is conditionally included on `TARGET_*` vars is left as-is.
Rebased on top of latest changes |
cherry-picked |
Does this spark joy? I hope this sparks you for you!
hardware: ssc: Convert .mk to .bp
It's cleaner and faster to parse.
rootdir: Correct km4 init module name
The module is only shipping an init file, not an executable. Clear up this confusion my appending .rc to its module name.
rootdir: rdclean: Remove duplicate guard
The module will only be added for userdebug/eng builds in common.mk anyway.
rootdir: Make PLATFORM guards more logical
Having this makes little sense:
Rather, change it to:
rootdir: Drop msm8916 from guard for qmuxd.rc
This platform is not included in SODP Q.
rootdir: Convert .mk to .bp
Since soong doesn't know about templated module names,
init.$(TARGET_DEVICE).rc
andinit.recovery.$(TARGET_DEVICE)
stay as .mk.Also, any module that is conditionally included on
TARGET_*
vars is left as-is.rootdir: sscrdpcd.rc: Only for sdm845,sm8150
The service is not used by sdm660 and msm8998.
TODO
health: vintf_fragments for manifest
rootdir: Move guards to common-init