2021-08-12 09:30:21 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2021/08/12 07:30:23 wiz Exp $
|
2018-06-07 02:58:27 +02:00
|
|
|
|
|
|
|
UBOOT_TARGET= sopine-baseboard
|
|
|
|
UBOOT_CONFIG= sopine_baseboard_defconfig
|
|
|
|
UBOOT_BIN= u-boot-sunxi-with-spl.bin
|
|
|
|
UBOOT_ENV+= DEVICE_TREE=sun50i-a64-sopine-baseboard
|
|
|
|
|
2019-11-04 22:28:40 +01:00
|
|
|
UBOOT_INSTALLBOOT_PLIST= installboot.plist
|
2019-05-07 16:06:23 +02:00
|
|
|
|
|
|
|
PKGREVISION= 5
|
2018-12-31 16:06:47 +01:00
|
|
|
|
2018-06-07 02:58:27 +02:00
|
|
|
# Switch to EL1 before booting kernel (required for 32-bit support)
|
|
|
|
PKG_DEFAULT_OPTIONS+= el1
|
|
|
|
|
|
|
|
post-extract:
|
2019-03-15 15:01:00 +01:00
|
|
|
${CP} ${PREFIX}/share/arm-trusted-firmware/sun50i_a64/bl31.bin ${WRKSRC}
|
2018-06-07 02:58:27 +02:00
|
|
|
${CP} ${WRKSRC}/arch/arm/dts/sun50i-a64-pine64-plus.dts \
|
|
|
|
${WRKSRC}/arch/arm/dts/sun50i-a64-sopine-baseboard.dts
|
|
|
|
${CAT} ${WRKSRC}/configs/${UBOOT_CONFIG} | \
|
|
|
|
${SED} "s/sun50i-a64-pine64-plus/sun50i-a64-sopine-baseboard/" \
|
|
|
|
> ${WRKSRC}/configs/${UBOOT_CONFIG}.tmp && \
|
|
|
|
${MV} ${WRKSRC}/configs/${UBOOT_CONFIG}.tmp ${WRKSRC}/configs/${UBOOT_CONFIG}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
|
|
|
|
|
2019-03-15 15:01:00 +01:00
|
|
|
.include "../../sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk"
|
2018-06-07 02:58:27 +02:00
|
|
|
.include "../../sysutils/u-boot/u-boot-arm64.mk"
|
2021-08-12 09:30:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|