pkgsrc/sysutils/u-boot-pinebook/Makefile

28 lines
993 B
Makefile

# $NetBSD: Makefile,v 1.6 2018/05/31 20:25:16 wiz Exp $
UBOOT_VERSION= 2018.05
UBOOT_TARGET= pinebook
UBOOT_CONFIG= pinebook_defconfig
UBOOT_BIN= u-boot-sunxi-with-spl.bin
# Use anarsoul's fork of mainline U-Boot with Pinebook support patched in
MASTER_SITES= ${MASTER_SITE_GITHUB:=evadot/}
GITHUB_PROJECT= u-boot
GITHUB_TAG= 01c860679dabd8ac37bd0eccc90abff7d284a206
DISTNAME= u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
EXTRACT_SUFX= .tar.gz
DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-pinebook/distinfo
PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-pinebook/patches
# 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
.include "../../sysutils/arm-trusted-firmware-sun50iw1p1/buildlink3.mk"
.include "../../sysutils/u-boot/u-boot-arm64.mk"