Skip to content
Snippets Groups Projects
Verified Commit 78c2b976 authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

turris1x-uboot: compile it from source code

Pali Rohár <pali@kernel.org> sent many improvements for PowerPC in
U-boot and Kernel Linux as well. Also, he added support for Turris 1.x
routers, but it is currently on review. We would like to have some
development binaries available to be able to test it in Turris OS.

In CZ.NIC Turris U-boot repository, since today there is a published branch
turris1x-v2022.04, which currently has this commit as head
16fa34e9bc60af50759c389ce40ae35322fdbf55 ("powerpc: Add support for
CZ.NIC Turris 1.x routers"), which is used to compile U-boot binaries
for NOR and SDCard.
parent 9fb63d3a
No related merge requests found
......@@ -9,7 +9,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=turris1x-uboot
PKG_VERSION:=2022.04
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/u-boot.git
PKG_MIRROR_HASH:=e4543eaa802678e2ac6d79b16eab36b387722ba2ac619284bd91052d30e9a631
PKG_SOURCE_DATE:=2022-08-31
PKG_SOURCE_VERSION:=turris1x-v2022.04
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
......@@ -21,15 +27,33 @@ define Package/turris1x-uboot
PROVIDES:=u-boot-turris1x
endef
define Package/turris1x-uboot-nor
TITLE:=Turris 1.x U-boot NOR
DEPENDS:=@TARGET_mpc85xx_p2020_DEVICE_turris1x
endef
define Package/turris1x-uboot/description
New development u-boot version for Turris 1.x
SDCard U-boot version for Turris 1.x
endef
define Package/turris1x-uboot-nor/description
NOR U-boot version for Turris 1.x
endef
Build/Compile:=:
define Build/Compile
cd $(PKG_BUILD_DIR); make CROSS_COMPILE=$(TARGET_CROSS) turris_1x_sdcard_defconfig u-boot-with-spl.bin
cd $(PKG_BUILD_DIR); make CROSS_COMPILE=$(TARGET_CROSS) turris_1x_nor_defconfig u-boot-with-dtb.bin
endef
define Package/turris1x-uboot/install
$(INSTALL_DIR) $(1)/usr/share/turris1x
$(INSTALL_BIN) ./files/u-boot-nor.bin $(1)/usr/share/turris1x/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/u-boot-with-spl.bin $(1)/usr/share/turris1x/u-boot-nor.bin
endef
define Package/turris1x-uboot-nor/install
$(INSTALL_DIR) $(1)/usr/share/turris1x
$(INSTALL_DATA) $(PKG_BUILD_DIR)/u-boot-with-dtb.bin $(1)/usr/share/turris1x/u-boot-sdcard.bin
endef
$(eval $(call BuildPackage,turris1x-uboot))
$(eval $(call BuildPackage,turris1x-uboot-nor))
File deleted
File deleted
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment