summaryrefslogtreecommitdiff
path: root/package/u-boot/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-12-08 12:02:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-12-15 15:30:15 +0100
commit767514154be31670df3f072c44537af64993a6a4 (patch)
tree0f6b657272cefbe5e3bfa31bde711de6fad001d2 /package/u-boot/Makefile
parent63896d07d312a57fa4033b0826fd3317816b500d (diff)
add support for rockpi4-plus
Diffstat (limited to 'package/u-boot/Makefile')
-rw-r--r--package/u-boot/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile
index 943cfb3eb..b89f0fdef 100644
--- a/package/u-boot/Makefile
+++ b/package/u-boot/Makefile
@@ -16,7 +16,7 @@ PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SYSTEM_DEPENDS:= beaglebone-black orange-pi0 raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64 raspberry-pi3p raspberry-pi3p-64 phytec-imx6 pcduino-3b imgtec-ci20 st-stm32f746g
+PKG_SYSTEM_DEPENDS:= beaglebone-black orange-pi0 raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64 raspberry-pi3p raspberry-pi3p-64 rockpi4-plus phytec-imx6 pcduino-3b imgtec-ci20 st-stm32f746g
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
@@ -58,6 +58,10 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3P_64),y)
CONFIG:= rpi_3_defconfig
endif
+ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y)
+CONFIG:= rock-pi-4c-rk3399_defconfig
+UBOOT:= u-boot.itb
+endif
ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
CONFIG:= Bananapro_defconfig
UBOOT:= u-boot-sunxi-with-spl.bin
@@ -104,7 +108,6 @@ do-build:
V=1 \
PATH='$(HOST_PATH)' \
CROSS_COMPILE='$(TARGET_CROSS)' \
- KCFLAGS='-mno-fdpic' \
$(MAKE))
ifneq ($(OS_FOR_BUILD),Darwin)
(cd $(WRKBUILD) && env \
@@ -115,6 +118,9 @@ endif
u-boot-install:
$(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR)
+ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y)
+ $(CP) $(WRKBUILD)/idbloader.img $(FW_DIR)
+endif
ifeq ($(ADK_TARGET_SYSTEM_IMGTEC_CI20),y)
$(CP) $(WRKBUILD)/spl/u-boot-spl.bin $(FW_DIR)
endif