2018-09-22 16:44:24 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2018/09/22 14:44:24 jmcneill Exp $
|
2017-09-10 19:00:41 +02:00
|
|
|
|
2018-09-22 16:44:24 +02:00
|
|
|
UBOOT_VERSION= 2018.07rc1
|
2017-09-10 19:00:41 +02:00
|
|
|
UBOOT_TARGET= pinebook
|
|
|
|
UBOOT_CONFIG= pinebook_defconfig
|
|
|
|
UBOOT_BIN= u-boot-sunxi-with-spl.bin
|
|
|
|
|
2018-09-22 16:44:24 +02:00
|
|
|
# Use AOSC-Dev's fork of mainline U-Boot with Pinebook support patched in
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=AOSC-Dev/}
|
2018-05-25 12:45:22 +02:00
|
|
|
GITHUB_PROJECT= u-boot
|
2018-09-22 16:44:24 +02:00
|
|
|
GITHUB_TAG= 9533bb9d6b2052c3c4e88ce43b633f6ec67f324e
|
2017-09-10 19:00:41 +02:00
|
|
|
DISTNAME= u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
|
|
|
|
EXTRACT_SUFX= .tar.gz
|
|
|
|
|
2018-05-31 22:25:15 +02:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-pinebook/distinfo
|
|
|
|
PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-pinebook/patches
|
|
|
|
|
2017-09-10 19:00:41 +02:00
|
|
|
# Switch to EL1 before booting kernel (required for 32-bit support)
|
|
|
|
PKG_DEFAULT_OPTIONS+= el1
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${PREFIX}/share/arm-trusted-firmware/sun50iw1p1/bl31.bin ${WRKSRC}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
|
|
|
|
|
2018-09-22 16:44:24 +02:00
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
|
|
|
.include "../../lang/python/tool.mk"
|
|
|
|
|
2018-02-18 17:25:45 +01:00
|
|
|
.include "../../sysutils/arm-trusted-firmware-sun50iw1p1/buildlink3.mk"
|
2017-09-10 19:00:41 +02:00
|
|
|
.include "../../sysutils/u-boot/u-boot-arm64.mk"
|