head	1.11;
access;
symbols
	pkgsrc-2026Q1:1.11.0.38
	pkgsrc-2026Q1-base:1.11
	pkgsrc-2025Q4:1.11.0.36
	pkgsrc-2025Q4-base:1.11
	pkgsrc-2025Q3:1.11.0.34
	pkgsrc-2025Q3-base:1.11
	pkgsrc-2025Q2:1.11.0.32
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.11.0.30
	pkgsrc-2025Q1-base:1.11
	pkgsrc-2024Q4:1.11.0.28
	pkgsrc-2024Q4-base:1.11
	pkgsrc-2024Q3:1.11.0.26
	pkgsrc-2024Q3-base:1.11
	pkgsrc-2024Q2:1.11.0.24
	pkgsrc-2024Q2-base:1.11
	pkgsrc-2024Q1:1.11.0.22
	pkgsrc-2024Q1-base:1.11
	pkgsrc-2023Q4:1.11.0.20
	pkgsrc-2023Q4-base:1.11
	pkgsrc-2023Q3:1.11.0.18
	pkgsrc-2023Q3-base:1.11
	pkgsrc-2023Q2:1.11.0.16
	pkgsrc-2023Q2-base:1.11
	pkgsrc-2023Q1:1.11.0.14
	pkgsrc-2023Q1-base:1.11
	pkgsrc-2022Q4:1.11.0.12
	pkgsrc-2022Q4-base:1.11
	pkgsrc-2022Q3:1.11.0.10
	pkgsrc-2022Q3-base:1.11
	pkgsrc-2022Q2:1.11.0.8
	pkgsrc-2022Q2-base:1.11
	pkgsrc-2022Q1:1.11.0.6
	pkgsrc-2022Q1-base:1.11
	pkgsrc-2021Q4:1.11.0.4
	pkgsrc-2021Q4-base:1.11
	pkgsrc-2021Q3:1.11.0.2
	pkgsrc-2021Q3-base:1.11
	pkgsrc-2021Q2:1.8.0.10
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.8
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.6
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.4
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.2
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.6.0.2
	pkgsrc-2020Q1-base:1.6
	pkgsrc-2019Q4:1.6.0.4
	pkgsrc-2019Q4-base:1.6
	pkgsrc-2019Q3:1.5.0.2
	pkgsrc-2019Q3-base:1.5
	pkgsrc-2019Q2:1.4.0.2
	pkgsrc-2019Q2-base:1.4
	pkgsrc-2019Q1:1.2.0.2
	pkgsrc-2019Q1-base:1.2;
locks; strict;
comment	@# @;


1.11
date	2021.08.19.07.47.49;	author wiz;	state Exp;
branches;
next	1.10;
commitid	AQattJRLGnlkqy5D;

1.10
date	2021.08.19.07.44.49;	author wiz;	state Exp;
branches;
next	1.9;
commitid	A7s6rcvyO8Egpy5D;

1.9
date	2021.08.12.07.25.55;	author wiz;	state Exp;
branches;
next	1.8;
commitid	JmugeUvLlFILwE4D;

1.8
date	2020.06.20.17.42.34;	author thorpej;	state Exp;
branches;
next	1.7;
commitid	v346dLuhVi1inZcC;

1.7
date	2020.06.20.17.19.37;	author thorpej;	state Exp;
branches;
next	1.6;
commitid	V6TkRiXFpXuzeZcC;

1.6
date	2019.11.04.21.28.54;	author rillig;	state Exp;
branches;
next	1.5;
commitid	P8zvC5DaquV1ZzJB;

1.5
date	2019.07.26.10.25.15;	author tnn;	state Exp;
branches;
next	1.4;
commitid	egLRq6hBCmCYyxwB;

1.4
date	2019.05.08.05.06.48;	author thorpej;	state Exp;
branches;
next	1.3;
commitid	7Mta5IjObnF8lmmB;

1.3
date	2019.04.25.13.22.12;	author thorpej;	state Exp;
branches;
next	1.2;
commitid	HyGqSiHnlaMHuJkB;

1.2
date	2019.03.24.20.50.10;	author thorpej;	state Exp;
branches;
next	1.1;
commitid	JqevbjUfMsZwXEgB;

1.1
date	2019.01.03.05.12.49;	author thorpej;	state Exp;
branches;
next	;
commitid	0cNkHVYar270oi6B;


desc
@@


1.11
log
@u-boot*: revert previous for now
@
text
@# $NetBSD: Makefile,v 1.10 2021/08/19 07:44:49 wiz Exp $

UBOOT_TARGET=		bananapi-r2
UBOOT_CONFIG=		mt7623n_bpir2_defconfig
UBOOT_BIN=		bpi-r2-sdmmc.img u-boot.bin

UBOOT_INSTALLBOOT_PLIST=	installboot.plist

UBOOT_VERSION=		2020.04

DISTINFO_FILE=		${.CURDIR}/../../sysutils/u-boot-bananapi-r2/distinfo
PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-bananapi-r2/patches
DISTFILES=		${DEFAULT_DISTFILES}

# 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

# SDMMC_BOOT-signature
SDMMC_BOOT_IMG=		BPI-R2-HEAD440-0k.img
DISTFILES+=		${SDMMC_BOOT_IMG}
UBOOT_BIN+=		${SDMMC_BOOT_IMG}
SITES.${SDMMC_BOOT_IMG}= ${MASTER_SITE_GITHUB:=BPI-SINOVOIP/BPI-R2-bsp/raw/v1.2.1/mt-pack/mtk/bpi-r2/bin/}

# BRLYT-signature
BRLYT_IMG=		BPI-R2-HEAD1-512b.img
DISTFILES+=		${BRLYT_IMG}
UBOOT_BIN+=		${BRLYT_IMG}
SITES.${BRLYT_IMG}=	${MASTER_SITE_GITHUB:=BPI-SINOVOIP/BPI-R2-bsp/raw/v1.2.1/mt-pack/mtk/bpi-r2/bin/}

# Preloader
PRELOADER_BIN=		preloader_iotg7623Np1_sd_1600M.bin
DISTFILES+=		${PRELOADER_BIN}
UBOOT_BIN+=		${PRELOADER_BIN}
SITES.${PRELOADER_BIN}=	${MASTER_SITE_GITHUB:=BPI-SINOVOIP/BPI-R2-bsp/raw/v1.2.1/mt-pack/mtk/bpi-r2/bin/}

# pkgsrc tries to run distfiles that end in .bin; handle manually
EXTRACT_ONLY=		${DISTFILES:N*.bin}

post-extract:
	cp ${DISTDIR}/${SDMMC_BOOT_IMG} ${DISTDIR}/${BRLYT_IMG} \
	    ${DISTDIR}/${PRELOADER_BIN} ${WRKSRC}

post-build:
# Prepare an image that can be written to an SD card.  First is the
# SDMMC_BOOT signature + address of second header (offset 0x200).
	dd if=${WRKSRC}/${SDMMC_BOOT_IMG} of=${WRKSRC}/bpi-r2-sdmmc.img \
	    bs=512 seek=0
# Append the second header (BRLTY signature) + address of preloader
# (offset 0x800).
	dd if=${WRKSRC}/${BRLYT_IMG} of=${WRKSRC}/bpi-r2-sdmmc.img \
	    bs=512 seek=1
# Append preloader.
	dd if=${WRKSRC}/${PRELOADER_BIN} of=${WRKSRC}/bpi-r2-sdmmc.img \
	    bs=1024 seek=2
# Append U-boot image (offset 320KiB)
	dd if=${WRKSRC}/u-boot.bin of=${WRKSRC}/bpi-r2-sdmmc.img \
	    bs=1024 seek=320 conv=sync

.include "../../sysutils/u-boot/u-boot-arm.mk"
.include "../../mk/bsd.pkg.mk"
@


1.10
log
@u-boot-bananapi-r2: comment out non-existent PATCHDIR
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/08/12 07:25:55 wiz Exp $
d12 1
a12 1
#PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-bananapi-r2/patches
@


1.9
log
@u-boot*: fix some pkglint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/06/20 17:42:34 thorpej Exp $
d12 1
a12 1
PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-bananapi-r2/patches
@


1.8
log
@Update to u-boot-2020.04.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/06/20 17:19:37 thorpej Exp $
d61 1
@


1.7
log
@Set the bootm_size, kernel_addr_r, fdt_addr_r, scriptaddr, pxefile_addr_r,
ramdisk_addr_r, and fdtfile environment varibles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/11/04 21:28:54 rillig Exp $
d9 1
a9 3
PKGREVISION=		4

UBOOT_VERSION=		2019.04-rc4
@


1.6
log
@sysutils: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

Manually excluded consolekit and dc-tools since pkglint didn't get the
formatting correct.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/07/26 10:25:15 tnn Exp $
d9 1
a9 1
PKGREVISION=		3
@


1.5
log
@u-boot-bananapi-r2: add a CHECK_PORTABILITY_SKIP
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/05/08 05:06:48 thorpej Exp $
d7 1
a7 1
UBOOT_INSTALLBOOT_PLIST=installboot.plist
d25 1
a25 1
SITES.${SDMMC_BOOT_IMG}=${MASTER_SITE_GITHUB:=BPI-SINOVOIP/BPI-R2-bsp/raw/v1.2.1/mt-pack/mtk/bpi-r2/bin/}
d30 1
a30 1
UBOOT_BIN+= 		${BRLYT_IMG}
@


1.4
log
@Add installboot(8) overlay support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/04/25 13:22:12 thorpej Exp $
d17 4
@


1.3
log
@Install only the useful files, and install *all* of the useful files.
Bump version to 2019.04-rc4nb2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2019/03/24 20:50:10 thorpej Exp $
d7 3
a9 1
PKGREVISION=		2
@


1.2
log
@- Update to u-boot-2019.04-rc4, which works much better on the
  MediaTek mt7623 SoC than the previous 2019.01-rc2.
- Pull down the necessary SDMMC binary headers and preloader from BPI's
  Github repository, and use them to assemble an image that can be written
  directly to an SD card before adding an MBR partition table.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2019/01/03 05:12:49 thorpej Exp $
d5 1
a5 1
UBOOT_BIN=		bpi-r2-sdmmc.img u-boot.bin u-boot-mtk.bin
d7 1
a7 1
PKGREVISION=		1
d18 1
d24 1
d30 1
d38 1
a38 1
	    ${DISTDIR}/${PRELOADER_BIN} ${WRKDIR}
d43 1
a43 1
	dd if=${WRKDIR}/${SDMMC_BOOT_IMG} of=${WRKSRC}/bpi-r2-sdmmc.img \
d47 1
a47 1
	dd if=${WRKDIR}/${BRLYT_IMG} of=${WRKSRC}/bpi-r2-sdmmc.img \
d50 1
a50 1
	dd if=${WRKDIR}/${PRELOADER_BIN} of=${WRKSRC}/bpi-r2-sdmmc.img \
@


1.1
log
@U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
several other processors, which can be installed in a boot ROM and used to
initialize and test the hardware or to download and run application code.

This package provides U-Boot for the Sinovoip Banana Pi BPI-R2.
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
a5 1
UBOOT_BIN=		u-boot-mtk.bin
d7 3
a9 1
UBOOT_VERSION=		2019.01-rc2
d15 38
@

