pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/u-boot Add helpers for building U-Boot images.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a4db8a19e81
branches:  trunk
changeset: 366344:3a4db8a19e81
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Aug 12 14:23:43 2017 +0000

description:
Add helpers for building U-Boot images.

diffstat:

 sysutils/u-boot/distinfo      |   6 ++++++
 sysutils/u-boot/u-boot-arm.mk |   8 ++++++++
 sysutils/u-boot/u-boot.mk     |  36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 0 deletions(-)

diffs (62 lines):

diff -r d5429c6fa2d1 -r 3a4db8a19e81 sysutils/u-boot/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/distinfo  Sat Aug 12 14:23:43 2017 +0000
@@ -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
diff -r d5429c6fa2d1 -r 3a4db8a19e81 sysutils/u-boot/u-boot-arm.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/u-boot-arm.mk     Sat Aug 12 14:23:43 2017 +0000
@@ -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"
diff -r d5429c6fa2d1 -r 3a4db8a19e81 sysutils/u-boot/u-boot.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/u-boot.mk Sat Aug 12 14:23:43 2017 +0000
@@ -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