pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/u-boot-rock64



Module Name:    pkgsrc
Committed By:   tnn
Date:           Thu Apr  2 09:09:05 UTC 2020

Modified Files:
        pkgsrc/sysutils/u-boot-rock64: Makefile
Added Files:
        pkgsrc/sysutils/u-boot-rock64: u-boot-rockchip.mk

Log Message:
u-boot-rock64: add a local copy of u-boot-rockchip.mk here

Since this package still uses the ayufan branch. This is so that
the main u-boot-rockchip.mk can move to mainline.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/sysutils/u-boot-rock64/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-rock64/u-boot-rockchip.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/u-boot-rock64/Makefile
diff -u pkgsrc/sysutils/u-boot-rock64/Makefile:1.5 pkgsrc/sysutils/u-boot-rock64/Makefile:1.6
--- pkgsrc/sysutils/u-boot-rock64/Makefile:1.5  Mon Jan 27 08:02:30 2020
+++ pkgsrc/sysutils/u-boot-rock64/Makefile      Thu Apr  2 09:09:05 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/01/27 08:02:30 thorpej Exp $
+# $NetBSD: Makefile,v 1.6 2020/04/02 09:09:05 tnn Exp $
 
 PKGREVISION=           6
 UBOOT_TARGET=          rock64
@@ -10,7 +10,7 @@ UBOOT_INSTALLBOOT_PLIST=      installboot.pli
 DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-rock64/distinfo
 
 U_BOOT_IMAGE_TYPE=     rk3328
-.include "../../sysutils/u-boot/u-boot-rockchip.mk"
+.include "../../sysutils/u-boot-rock64/u-boot-rockchip.mk"
 
 # Boot Loader stage 3-1 (BL31) EL3 Runtime Firmware
 # XXX LICENSE?

Added files:

Index: pkgsrc/sysutils/u-boot-rock64/u-boot-rockchip.mk
diff -u /dev/null pkgsrc/sysutils/u-boot-rock64/u-boot-rockchip.mk:1.1
--- /dev/null   Thu Apr  2 09:09:05 2020
+++ pkgsrc/sysutils/u-boot-rock64/u-boot-rockchip.mk    Thu Apr  2 09:09:05 2020
@@ -0,0 +1,42 @@
+#      $NetBSD: u-boot-rockchip.mk,v 1.1 2020/04/02 09:09:05 tnn Exp $
+#
+# used by sysutils/u-boot-rock64/Makefile
+
+# Common makefile fragment for rockchip based u-boot targets.
+#
+# Set these variables:
+#
+#      U_BOOT_IMAGE_TYPE       ("rk3399", "rk3328")
+#
+
+UBOOT_VERSION= ${GITHUB_TAG:C/-.*$//}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ayufan-rock64/}
+GITHUB_PROJECT=        linux-u-boot
+GITHUB_TAG=    2017.09-rockchip-ayufan-1063-g29843fbd42
+DISTNAME=      ${GITHUB_TAG}
+PATCHDIR=      ${.CURDIR}/../../sysutils/u-boot-rockpro64/patches
+DISTFILES=     ${DEFAULT_DISTFILES}
+EXTRACT_SUFX=  .tar.gz
+
+# pkgsrc tries to run distfiles that end in .bin; handle manually
+EXTRACT_ONLY=  ${DISTFILES:N*.bin}
+
+USE_TOOLS+=    gawk
+MAKE_ENV+=     BL31=${WRKDIR}/${BL31}
+
+post-extract:
+       cp ${DISTDIR}/${DDR_BIN} ${WRKDIR}
+
+post-build:
+# build stage 3 package
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} u-boot.itb
+# build stage 1 loader
+       ${WRKSRC}/tools/mkimage -n ${U_BOOT_IMAGE_TYPE} -T rksd -d ${WRKDIR}/${DDR_BIN} ${WRKSRC}/idbloader.img
+# append stage2 loader
+       cat ${WRKSRC}/spl/u-boot-spl.bin >> ${WRKSRC}/idbloader.img
+# wrap everything up into a single file that can be written to an SD card
+       cp ${WRKSRC}/idbloader.img ${WRKSRC}/rksd_loader.img
+       dd if=${WRKSRC}/u-boot.itb seek=448 conv=notrunc of=${WRKSRC}/rksd_loader.img
+# build SPI NOR flash image. See dev-ayufan/build.mk.
+       set -e; b=0; while [ "$$b" != 128 ]; do dd bs=2k count=1; dd if=/dev/zero bs=2k count=1; b=$$(expr $$b + 1); done < ${WRKSRC}/idbloader.img > ${WRKSRC}/rkspi_loader.img 2> /dev/null
+       dd if=${WRKSRC}/u-boot.itb seek=1024 conv=notrunc of=${WRKSRC}/rkspi_loader.img



Home | Main Index | Thread Index | Old Index