2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
6 include $(INCLUDE_DIR
)/kernel.mk
10 PKG_HASH
:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
12 PKG_MAINTAINER
:=Tobias Maedel
<openwrt@tbspace.de
>
14 include $(INCLUDE_DIR
)/u-boot.mk
15 include $(INCLUDE_DIR
)/package.mk
18 BUILD_TARGET
:=rockchip
23 define U-Boot
/rockpro64-rk3399
24 BUILD_SUBTARGET
:=armv8
28 DEPENDS
:=+PACKAGE_u-boot-rockpro64-rk3399
:arm-trusted-firmware-rockchip
29 PKG_BUILD_DEPENDS
:=arm-trusted-firmware-rockchip
35 UBOOT_CONFIGURE_VARS
+= USE_PRIVATE_LIBGCC
=yes
38 BL31
=$(STAGING_DIR_IMAGE
)/rk3399_bl31.elf
40 define Build
/Configure
41 $(SED
) s
/subdir.
*pylibfdt
//g
$(PKG_BUILD_DIR
)/scripts
/dtc
/Makefile
42 $(call Build
/Configure
/U-Boot
)
44 $(SED
) 's#CONFIG_MKIMAGE_DTC_PATH=.*#CONFIG_MKIMAGE_DTC_PATH="$(PKG_BUILD_DIR)/scripts/dtc/dtc"#g' $(PKG_BUILD_DIR
)/.config
45 echo
'CONFIG_IDENT_STRING=" OpenWrt"' >> $(PKG_BUILD_DIR
)/.config
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
50 $(CP
) $(PKG_BUILD_DIR
)/idbloader.img
$(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-idbloader.img
51 $(CP
) $(PKG_BUILD_DIR
)/u-boot.itb
$(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-u-boot.itb
54 define Package
/u-boot
/install/default
57 $(eval
$(call BuildPackage
/U-Boot
))