mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
548ab9d7ad
* Removed swig hacks and prebuilt of-platdata * Removed upstreamed patches - 101-rock64pro-disable-CONFIG_USE_PREBOOT.patch - 102-rockchip-rk3328-Add-support-for-FriendlyARM-NanoPi-R2C.patch * Reordered patches * Introduced new dependencies check * Overrided default PATH to avoid race condition (host python3 vs hostpkg python3) * Switched to use UBOOT_CUSTOMIZE_CONFIG for config update Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
154 lines
3.1 KiB
Makefile
154 lines
3.1 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_VERSION:=2023.07.02
|
|
PKG_RELEASE:=1
|
|
PKG_HASH:=6b6a48581c14abb0f95bd87c1af4d740922406d7b801002a9f94727fdde021d5
|
|
|
|
PKG_MAINTAINER:=Tobias Maedel <openwrt@tbspace.de>
|
|
|
|
UBOOT_USE_BINMAN:=1
|
|
UBOOT_USE_INTREE_DTC:=1
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define U-Boot/Default
|
|
BUILD_TARGET:=rockchip
|
|
UENV:=default
|
|
HIDDEN:=1
|
|
endef
|
|
|
|
|
|
# RK3328 boards
|
|
|
|
define U-Boot/rk3328/Default
|
|
BUILD_SUBTARGET:=armv8
|
|
DEPENDS:=+PACKAGE_u-boot-$(1):trusted-firmware-a-rk3328
|
|
ATF:=rk3328_bl31.elf
|
|
endef
|
|
|
|
define U-Boot/nanopi-r2c-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=NanoPi R2C
|
|
BUILD_DEVICES:= \
|
|
friendlyarm_nanopi-r2c
|
|
endef
|
|
|
|
define U-Boot/nanopi-r2s-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=NanoPi R2S
|
|
BUILD_DEVICES:= \
|
|
friendlyarm_nanopi-r2s
|
|
endef
|
|
|
|
define U-Boot/orangepi-r1-plus-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=Orange Pi R1 Plus
|
|
BUILD_DEVICES:= \
|
|
xunlong_orangepi-r1-plus
|
|
endef
|
|
|
|
define U-Boot/orangepi-r1-plus-lts-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=Orange Pi R1 Plus LTS
|
|
BUILD_DEVICES:= \
|
|
xunlong_orangepi-r1-plus-lts
|
|
endef
|
|
|
|
define U-Boot/roc-cc-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=ROC-RK3328-CC
|
|
BUILD_DEVICES:= \
|
|
firefly_roc-rk3328-cc
|
|
endef
|
|
|
|
define U-Boot/rock64-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=Rock64
|
|
BUILD_DEVICES:= \
|
|
pine64_rock64
|
|
endef
|
|
|
|
define U-Boot/rock-pi-e-rk3328
|
|
$(U-Boot/rk3328/Default)
|
|
NAME:=ROCK Pi E
|
|
BUILD_DEVICES:= \
|
|
radxa_rock-pi-e
|
|
endef
|
|
|
|
# RK3399 boards
|
|
|
|
define U-Boot/rk3399/Default
|
|
BUILD_SUBTARGET:=armv8
|
|
DEPENDS:=+PACKAGE_u-boot-$(1):trusted-firmware-a-rk3399
|
|
ATF:=rk3399_bl31.elf
|
|
endef
|
|
|
|
define U-Boot/nanopc-t4-rk3399
|
|
$(U-Boot/rk3399/Default)
|
|
NAME:=NanoPC T4
|
|
BUILD_DEVICES:= \
|
|
friendlyarm_nanopc-t4
|
|
endef
|
|
|
|
define U-Boot/nanopi-r4s-rk3399
|
|
$(U-Boot/rk3399/Default)
|
|
NAME:=NanoPi R4S
|
|
BUILD_DEVICES:= \
|
|
friendlyarm_nanopi-r4s
|
|
endef
|
|
|
|
define U-Boot/rock-pi-4-rk3399
|
|
$(U-Boot/rk3399/Default)
|
|
NAME:=Rock Pi 4
|
|
BUILD_DEVICES:= \
|
|
radxa_rock-pi-4a
|
|
endef
|
|
|
|
define U-Boot/rockpro64-rk3399
|
|
$(U-Boot/rk3399/Default)
|
|
NAME:=RockPro64
|
|
BUILD_DEVICES:= \
|
|
pine64_rockpro64
|
|
endef
|
|
|
|
UBOOT_TARGETS := \
|
|
nanopc-t4-rk3399 \
|
|
nanopi-r4s-rk3399 \
|
|
rock-pi-4-rk3399 \
|
|
rockpro64-rk3399 \
|
|
nanopi-r2c-rk3328 \
|
|
nanopi-r2s-rk3328 \
|
|
orangepi-r1-plus-rk3328 \
|
|
orangepi-r1-plus-lts-rk3328 \
|
|
roc-cc-rk3328 \
|
|
rock64-rk3328 \
|
|
rock-pi-e-rk3328
|
|
|
|
UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes
|
|
|
|
UBOOT_CUSTOMIZE_CONFIG := \
|
|
--disable SPL_FIT_SIGNATURE \
|
|
--disable TOOLS_MKEFICAPSULE \
|
|
--set-str MKIMAGE_DTC_PATH $(PKG_BUILD_DIR)/scripts/dtc/dtc
|
|
|
|
UBOOT_MAKE_FLAGS += \
|
|
PATH=$(STAGING_DIR_HOST)/bin:$(PATH) \
|
|
BL31=$(STAGING_DIR_IMAGE)/$(ATF)
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
$(CP) $(PKG_BUILD_DIR)/idbloader.img $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-idbloader.img
|
|
$(CP) $(PKG_BUILD_DIR)/u-boot.itb $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-u-boot.itb
|
|
endef
|
|
|
|
define Package/u-boot/install/default
|
|
endef
|
|
|
|
$(eval $(call BuildPackage/U-Boot))
|