diff options
author | Petr Štetiar <ynezz@true.cz> | 2023-06-02 13:48:38 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-06-13 14:15:22 +0200 |
commit | 848759c2362fc60fef8aa76f2adeb228af3cae65 (patch) | |
tree | 333ceca6269efab4929816e23000e5319b1c85a2 /package/boot/uboot-armsr/Makefile | |
parent | c05c0699d4798b02f8ee88159236142e08c0c4cd (diff) | |
download | upstream-848759c2362fc60fef8aa76f2adeb228af3cae65.tar.gz upstream-848759c2362fc60fef8aa76f2adeb228af3cae65.tar.bz2 upstream-848759c2362fc60fef8aa76f2adeb228af3cae65.zip |
uboot-armsr: add support for QEMU armv7/armv8
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>
(cherry picked from commit b8e3fa2d1205213c71bc356744e9bed6cd8e69f9)
Diffstat (limited to 'package/boot/uboot-armsr/Makefile')
-rw-r--r-- | package/boot/uboot-armsr/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/boot/uboot-armsr/Makefile b/package/boot/uboot-armsr/Makefile new file mode 100644 index 0000000000..ce53d19b79 --- /dev/null +++ b/package/boot/uboot-armsr/Makefile @@ -0,0 +1,36 @@ +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)) |