Skip to content

Improve boot.img generation (less bbclasses - better recipe names) - #299

Open
FlorentRevest wants to merge 2 commits into
masterfrom
betterboot
Open

Improve boot.img generation (less bbclasses - better recipe names)#299
FlorentRevest wants to merge 2 commits into
masterfrom
betterboot

Conversation

@FlorentRevest

Copy link
Copy Markdown
Member

No description provided.

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.
@FlorentRevest

Copy link
Copy Markdown
Member Author

This goes hand in hand with AsteroidOS/meta-smartwatch#332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant