summaryrefslogtreecommitdiff
path: root/sysutils/u-boot-roc-rk3328-cc/Makefile
blob: 36c08df67a2daded2aedd2251a3e04fb201e7815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $NetBSD: Makefile,v 1.3 2021/08/12 07:30:23 wiz Exp $

UBOOT_TARGET=		roc-rk3328-cc
UBOOT_CONFIG=		roc-cc-rk3328_defconfig
UBOOT_BIN=		u-boot-rockchip.bin

UBOOT_INSTALLBOOT_PLIST=	installboot.plist

UBOOT_VERSION=		2020.07-rc4

# This could be moved to u-boot.mk as long as we don't have support for
# any imx8 boards.
CHECK_PORTABILITY_SKIP+=	tools/imx8m_image.sh

# Switch to EL1 before booting kernel (required for 32-bit support)
PKG_DEFAULT_OPTIONS+=	el1

post-extract:
	${CP} ${PREFIX}/share/arm-trusted-firmware/rk3328/bl31.elf ${WRKSRC}

.include "../../sysutils/arm-trusted-firmware-rk3328/buildlink3.mk"
.include "../../sysutils/u-boot/u-boot-arm64.mk"
.include "../../mk/bsd.pkg.mk"