pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/u-boot



Module Name:    pkgsrc
Committed By:   jmcneill
Date:           Sat Aug 12 14:23:43 UTC 2017

Added Files:
        pkgsrc/sysutils/u-boot: distinfo u-boot-arm.mk u-boot.mk

Log Message:
Add helpers for building U-Boot images.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot/distinfo \
    pkgsrc/sysutils/u-boot/u-boot-arm.mk pkgsrc/sysutils/u-boot/u-boot.mk

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

Added files:

Index: pkgsrc/sysutils/u-boot/distinfo
diff -u /dev/null pkgsrc/sysutils/u-boot/distinfo:1.1
--- /dev/null   Sat Aug 12 14:23:43 2017
+++ pkgsrc/sysutils/u-boot/distinfo     Sat Aug 12 14:23:43 2017
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/12 14:23:43 jmcneill Exp $
+
+SHA1 (u-boot-2017.07.tar.bz2) = 517c33f41e2969f3b5b88e9ae3c042acfe1bde05
+RMD160 (u-boot-2017.07.tar.bz2) = b0d83a55b6daabdec28d85fdfb814a529c8d5eb9
+SHA512 (u-boot-2017.07.tar.bz2) = 821175dd414e1fd0e5b6d9293a5766cbc8ae63a2361e82309f67e92c02b881263a7832dba0bcfc820b036a582981ddc20a8f484f2995d110f3240907a3ff7a95
+Size (u-boot-2017.07.tar.bz2) = 11282262 bytes
Index: pkgsrc/sysutils/u-boot/u-boot-arm.mk
diff -u /dev/null pkgsrc/sysutils/u-boot/u-boot-arm.mk:1.1
--- /dev/null   Sat Aug 12 14:23:43 2017
+++ pkgsrc/sysutils/u-boot/u-boot-arm.mk        Sat Aug 12 14:23:43 2017
@@ -0,0 +1,8 @@
+# $NetBSD: u-boot-arm.mk,v 1.1 2017/08/12 14:23:43 jmcneill Exp $
+
+MAINTAINER=    port-arm%NetBSD.org@localhost
+BUILD_DEPENDS+=        cross-arm-none-eabi-gcc-[0-9]*:../../cross/arm-none-eabi-gcc
+
+UBOOT_ENV+=    CROSS_COMPILE=${PREFIX}/cross-arm-none-eabi/bin/arm-none-eabi-
+
+.include "u-boot.mk"
Index: pkgsrc/sysutils/u-boot/u-boot.mk
diff -u /dev/null pkgsrc/sysutils/u-boot/u-boot.mk:1.1
--- /dev/null   Sat Aug 12 14:23:43 2017
+++ pkgsrc/sysutils/u-boot/u-boot.mk    Sat Aug 12 14:23:43 2017
@@ -0,0 +1,36 @@
+# $NetBSD: u-boot.mk,v 1.1 2017/08/12 14:23:43 jmcneill Exp $
+
+UBOOT_VERSION?=        2017.07
+PKGNAME=       u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
+DISTNAME?=     u-boot-${UBOOT_VERSION}
+DISTINFO_FILE?=        ${.CURDIR}/../../sysutils/u-boot/distinfo
+CATEGORIES=    sysutils
+EXTRACT_SUFX=  .tar.bz2
+
+HOMEPAGE?=     https://www.denx.de/wiki/U-Boot
+MASTER_SITES?= ftp://ftp.denx.de/pub/u-boot/
+
+BUILD_DEPENDS+=        dtc>=1.4.2:../../sysutils/dtc
+
+COMMENT=       Das U-Boot, the Universal Boot Loader (${UBOOT_CONFIG})
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+USE_TOOLS+=    gmake
+
+MAKE_ENV+=     ${UBOOT_ENV}
+
+do-configure:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gmake ${UBOOT_CONFIG}
+
+do-build:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gmake
+
+do-install:
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/u-boot/${UBOOT_TARGET}
+.for bin in ${UBOOT_BIN}
+       ${INSTALL_DATA} ${WRKSRC}/${bin} \
+           ${DESTDIR}${PREFIX}/share/u-boot/${UBOOT_TARGET}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index