2021-08-12 09:30:21 +02:00
|
|
|
# $NetBSD: Makefile,v 1.15 2021/08/12 07:30:22 wiz Exp $
|
2017-09-10 19:00:41 +02:00
|
|
|
|
2018-11-08 20:41:30 +01:00
|
|
|
UBOOT_VERSION= 2018.11rc3
|
2017-09-10 19:00:41 +02:00
|
|
|
UBOOT_TARGET= pinebook
|
|
|
|
UBOOT_CONFIG= pinebook_defconfig
|
|
|
|
UBOOT_BIN= u-boot-sunxi-with-spl.bin
|
|
|
|
|
2019-11-04 22:28:40 +01:00
|
|
|
UBOOT_INSTALLBOOT_PLIST= installboot.plist
|
2019-05-07 16:06:23 +02:00
|
|
|
|
2018-11-08 20:41:30 +01:00
|
|
|
# Use anarsoul's fork of mainline U-Boot with Pinebook support patched in
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=anarsoul/}
|
|
|
|
GITHUB_PROJECT= u-boot-pine64
|
|
|
|
GITHUB_TAG= 88eea875b3b82a0e50cbb112e0aea2259dc2e011
|
2017-09-10 19:00:41 +02:00
|
|
|
DISTNAME= u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
|
|
|
|
EXTRACT_SUFX= .tar.gz
|
2019-05-07 16:06:23 +02:00
|
|
|
PKGREVISION= 3
|
2017-09-10 19:00:41 +02:00
|
|
|
|
2018-05-31 22:25:15 +02:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-pinebook/distinfo
|
|
|
|
PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-pinebook/patches
|
|
|
|
|
2021-08-12 09:30:21 +02:00
|
|
|
CHECK_PORTABILITY_SKIP+= tools/imx_cntr_image.sh
|
|
|
|
|
2017-09-10 19:00:41 +02:00
|
|
|
post-extract:
|
2019-02-27 07:25:37 +01:00
|
|
|
${CP} ${PREFIX}/share/arm-trusted-firmware/sun50i_a64/bl31.bin ${WRKSRC}
|
2017-09-10 19:00:41 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
|
|
|
|
|
2019-02-27 07:25:37 +01:00
|
|
|
.include "../../sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk"
|
2017-09-10 19:00:41 +02:00
|
|
|
.include "../../sysutils/u-boot/u-boot-arm64.mk"
|
2021-08-12 09:30:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|