Skip to content

refactor(boot): add boot-package macro and use INSTALL_IMAGES#15403

Open
bryanforbes wants to merge 1 commit intobatocera-linux:masterfrom
bryanforbes:refactor/boot-packages
Open

refactor(boot): add boot-package macro and use INSTALL_IMAGES#15403
bryanforbes wants to merge 1 commit intobatocera-linux:masterfrom
bryanforbes:refactor/boot-packages

Conversation

@bryanforbes
Copy link
Contributor

Introduce pkg-boot.mk with a boot-package macro that eliminates boilerplate in U-Boot and other boot packages that ship pre-built binaries. Packages declare _BOOT_SRC (with optional src:dst rename syntax) and _BINARIES_SUBDIR, and the macro handles the rest.

Migrate all boot packages from INSTALL_TARGET_CMDS to INSTALL_IMAGES_CMDS since they install to $(BINARIES_DIR), not $(TARGET_DIR). Convert simple copy-only packages to boot-package and manually add INSTALL_IMAGES = YES to packages with custom build/install logic.

Also refactor batocera-system to use INSTALL_IMAGES_CMDS for batocera-boot.conf and replace hardcoded BR2_EXTERNAL_BATOCERA_PATH package paths with _PKGDIR throughout.

Introduce `pkg-boot.mk` with a `boot-package` macro that eliminates
boilerplate in U-Boot and other boot packages that ship pre-built
binaries. Packages declare `_BOOT_SRC` (with optional src:dst rename
syntax) and `_BINARIES_SUBDIR`, and the macro handles the rest.

Migrate all boot packages from `INSTALL_TARGET_CMDS` to
`INSTALL_IMAGES_CMDS` since they install to `$(BINARIES_DIR)`, not
`$(TARGET_DIR)`. Convert simple copy-only packages to `boot-package`
and manually add `INSTALL_IMAGES = YES` to packages with custom
build/install logic.

Also refactor `batocera-system` to use `INSTALL_IMAGES_CMDS` for
`batocera-boot.conf` and replace hardcoded `BR2_EXTERNAL_BATOCERA_PATH`
package paths with `_PKGDIR` throughout.
@bryanforbes bryanforbes force-pushed the refactor/boot-packages branch from 47d9523 to b13dc6a Compare February 15, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant