mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
b8e3fa2d12
Add new package so we can use self-compiled bootloader during QEMU based testing and development. Backported fix[1] is needed for EFI boot from virtio devices. 1. https://patchwork.ozlabs.org/project/uboot/patch/20230424134946.v10.7.Ia5f5e39c882ac22b5f71c4d576941b34e868eeba@changeid/ Signed-off-by: Petr Štetiar <ynezz@true.cz>
37 lines
690 B
Makefile
37 lines
690 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_VERSION:=2023.04
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_HASH:=e31cac91545ff41b71cec5d8c22afd695645cd6e2a442ccdacacd60534069341
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define U-Boot/Default
|
|
BUILD_TARGET:=armsr
|
|
endef
|
|
|
|
define U-Boot/qemu_armv7
|
|
NAME:=QEMU ARM Virtual Machine 32-bit
|
|
BUILD_SUBTARGET:=armv7
|
|
BUILD_DEVICES:=generic
|
|
UBOOT_CONFIG:=qemu_arm
|
|
endef
|
|
|
|
define U-Boot/qemu_armv8
|
|
NAME:=QEMU ARM Virtual Machine 64-bit
|
|
BUILD_SUBTARGET:=armv8
|
|
BUILD_DEVICES:=generic
|
|
UBOOT_CONFIG:=qemu_arm64
|
|
endef
|
|
|
|
UBOOT_TARGETS := \
|
|
qemu_armv7 \
|
|
qemu_armv8
|
|
|
|
UBOOT_CUSTOMIZE_CONFIG := \
|
|
--enable CMD_EFIDEBUG
|
|
|
|
$(eval $(call BuildPackage/U-Boot))
|