Improve boot.img generation (less bbclasses - better recipe names) - #299
Open
FlorentRevest wants to merge 2 commits into
Open
Improve boot.img generation (less bbclasses - better recipe names)#299FlorentRevest wants to merge 2 commits into
FlorentRevest wants to merge 2 commits into
Conversation
Relocate the initramfs image and init-script recipes into meta-asteroid under AsteroidOS-specific names, replacing the generic Android-oriented initramfs-android-image / initramfs-scripts-android from meta-android. The recipes are trimmed to what AsteroidOS actually uses: the dead LuneOS init_functions.sh helper library and the generated distro.conf are dropped, as are the never-used rootfs_type knob and the ANDROID_EXTRA_INITRAMFS_IMAGE_INSTALL image hook (only ever set by upstream phones). The descriptions now say what the initramfs does (bootstrap AsteroidOS from a watch's internal flash and switch root into the rootfs) rather than vaguely "boot an Android device".
We carried three near-identical boot-image bbclasses that differed only in
which tool they drove, and thus which Android boot header versions they
could produce:
- abootimg.bbclass (abootimg) v0 only, unused by any machine
- mkboot.bbclass (xiaolu mkboot + img_info) v0, template-driven
- mkbootimg.bbclass (AOSP mkbootimg) v0..v4 + vendor_boot/init_boot/dtbo
mkbootimg.bbclass already supersedes the other two, so make it the one
boot-image class:
- Add MKBOOTIMG_CMDLINE and MKBOOTIMG_BOARD, passed double-quoted, so a
device can carry a kernel cmdline containing spaces (previously only
expressible through the per-device img_info template that mkboot read).
- Delete the now-unused abootimg.bbclass and mkboot.bbclass.
- Drop the xiaolu mkboot_tools fetch from mkbootimg-tools; only the AOSP
mkbootimg and its gki helpers are still needed.
The meta-smartwatch device recipes that inherited mkboot are migrated in a
matching commit there.
Member
Author
|
This goes hand in hand with AsteroidOS/meta-smartwatch#332 |
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.
No description provided.