pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/u-boot-apple-m1 Build separate u-boot-<board>...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a22e6e80dba0
branches:  trunk
changeset: 457865:a22e6e80dba0
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Fri Sep 03 20:50:00 2021 +0000

description:
Build separate u-boot-<board>.macho files for Mac mini and Macbook Pro.

diffstat:

 sysutils/u-boot-apple-m1/Makefile |  29 ++++++++++++++++++++---------
 sysutils/u-boot-apple-m1/PLIST    |   5 +++--
 sysutils/u-boot-apple-m1/distinfo |  10 +++++-----
 3 files changed, 28 insertions(+), 16 deletions(-)

diffs (83 lines):

diff -r 0a0c6fcba84c -r a22e6e80dba0 sysutils/u-boot-apple-m1/Makefile
--- a/sysutils/u-boot-apple-m1/Makefile Fri Sep 03 14:38:50 2021 +0000
+++ b/sysutils/u-boot-apple-m1/Makefile Fri Sep 03 20:50:00 2021 +0000
@@ -1,15 +1,17 @@
-# $NetBSD: Makefile,v 1.6 2021/08/30 23:44:39 jmcneill Exp $
+# $NetBSD: Makefile,v 1.7 2021/09/03 20:50:00 jmcneill Exp $
+
+PKGREVISION=           1
 
 UBOOT_TARGET=          apple-m1
 UBOOT_CONFIG=          apple_m1_defconfig
-UBOOT_BIN=             u-boot-nodtb.bin u-boot.macho
+UBOOT_BIN=             u-boot-nodtb.bin
 
 DISTINFO_FILE?=                ${.CURDIR}/../../sysutils/u-boot-apple-m1/distinfo
 PATCHDIR?=             ${.CURDIR}/../../sysutils/u-boot-apple-m1/patches
 
 UBOOT_VERSION=  2021.04rc3
 GITHUB_PROJECT=        u-boot
-GITHUB_TAG=    8e7191541ca9b4cda9ee191b2728cf29f1660bdd
+GITHUB_TAG=    c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d
 MASTER_SITES=   ${MASTER_SITE_GITHUB:=kettenis/}
 DIST_SUBDIR=   ${GITHUB_PROJECT}
 DISTNAME=      u-boot-apple-m1-${GITHUB_TAG}
@@ -26,18 +28,27 @@
 DTS_INC=       ${WRKSRC}/include
 DTS_ARCH_INC=  ${DTS_DIR}/include
 
+DTS_BOARDS=    t8103-j274 \
+               t8103-j293
+
+.for board in ${DTS_BOARDS}
+UBOOT_BIN+=    u-boot-${board}.macho
+.endfor
+
 post-build:
+       cp ${WRKSRC}/u-boot-nodtb.bin ${WRKDIR}
+       rm -f ${WRKDIR}/u-boot-nodtb.bin.gz && gzip ${WRKDIR}/u-boot-nodtb.bin
+.for board in ${DTS_BOARDS}
        cd ${DTS_DIR} && \
            ${CPP} -P -x assembler-with-cpp -I ${DTS_INC} -I ${DTS_ARCH_INC} \
-           -include ${DTS_DIR}/t8103-j274.dts /dev/null | \
+           -include ${DTS_DIR}/${board}.dts /dev/null | \
            ${PREFIX}/bin/dtc -i ${DTS_INC} -i ${DTS_ARCH_INC} -I dts -O dtb \
-              -p 1024 -b 0 -o ${WRKDIR}/t8103-j274.dtb
-       cp ${WRKSRC}/u-boot-nodtb.bin ${WRKDIR}
-       rm -f ${WRKDIR}/u-boot-nodtb.bin.gz && gzip ${WRKDIR}/u-boot-nodtb.bin
+              -p 1024 -b 0 -o ${WRKDIR}/${board}.dtb
        cat ${PREFIX}/share/m1n1/m1n1.macho \
            ${WRKDIR}/u-boot-nodtb.bin.gz \
-           ${WRKDIR}/t8103-j274.dtb \
-           > ${WRKSRC}/u-boot.macho
+           ${WRKDIR}/${board}.dtb \
+           > ${WRKSRC}/u-boot-${board}.macho
+.endfor
 
 .include "../../sysutils/u-boot/u-boot-arm64.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0a0c6fcba84c -r a22e6e80dba0 sysutils/u-boot-apple-m1/PLIST
--- a/sysutils/u-boot-apple-m1/PLIST    Fri Sep 03 14:38:50 2021 +0000
+++ b/sysutils/u-boot-apple-m1/PLIST    Fri Sep 03 20:50:00 2021 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2021/03/06 20:17:39 jmcneill Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/09/03 20:50:00 jmcneill Exp $
 share/u-boot/apple-m1/u-boot-nodtb.bin
-share/u-boot/apple-m1/u-boot.macho
+share/u-boot/apple-m1/u-boot-t8103-j274.macho
+share/u-boot/apple-m1/u-boot-t8103-j293.macho
diff -r 0a0c6fcba84c -r a22e6e80dba0 sysutils/u-boot-apple-m1/distinfo
--- a/sysutils/u-boot-apple-m1/distinfo Fri Sep 03 14:38:50 2021 +0000
+++ b/sysutils/u-boot-apple-m1/distinfo Fri Sep 03 20:50:00 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2021/08/30 23:44:39 jmcneill Exp $
+$NetBSD: distinfo,v 1.3 2021/09/03 20:50:00 jmcneill Exp $
 
-SHA1 (u-boot/u-boot-apple-m1-8e7191541ca9b4cda9ee191b2728cf29f1660bdd-8e7191541ca9b4cda9ee191b2728cf29f1660bdd.tar.gz) = 7eaa9c3610faafa695040f60708f478dae63ccf9
-RMD160 (u-boot/u-boot-apple-m1-8e7191541ca9b4cda9ee191b2728cf29f1660bdd-8e7191541ca9b4cda9ee191b2728cf29f1660bdd.tar.gz) = 28db81df99ff76504eda96d1dff3b931fc1f2123
-SHA512 (u-boot/u-boot-apple-m1-8e7191541ca9b4cda9ee191b2728cf29f1660bdd-8e7191541ca9b4cda9ee191b2728cf29f1660bdd.tar.gz) = 
8e26ababbf512cdd7e2653f65b7b6497270ddfb81e322f958a1f535c1c70c8a82131ffb27aa423a0a2d0dc26988f7b9a7ad35130c7c1dae863677bdf47ac5a87
-Size (u-boot/u-boot-apple-m1-8e7191541ca9b4cda9ee191b2728cf29f1660bdd-8e7191541ca9b4cda9ee191b2728cf29f1660bdd.tar.gz) = 21276309 bytes
+SHA1 (u-boot/u-boot-apple-m1-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d.tar.gz) = 604308d2190518585ef650f69a4a1d7c69dfc369
+RMD160 (u-boot/u-boot-apple-m1-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d.tar.gz) = 136f34807a3f1ee0b1d6d882aee46a434cf220ac
+SHA512 (u-boot/u-boot-apple-m1-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d.tar.gz) = 
2aacd1c6be21f91e735e359bf41ce3ffafd0c0ad496a893d7c911dce4eba9bbda1e17caf8bf260cdb965182b1d51beb46562cb42d5860ff48e3c4295b1ff0c3d
+Size (u-boot/u-boot-apple-m1-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d-c6aa1280001d2a3a0f17c1853cd175fe5c21eb3d.tar.gz) = 21276320 bytes



Home | Main Index | Thread Index | Old Index