pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/dtc



Module Name:    pkgsrc
Committed By:   jmcneill
Date:           Thu May 25 21:39:57 UTC 2017

Added Files:
        pkgsrc/sysutils/dtc: linux-distinfo linux-dtb.mk

Log Message:
Add infrastructure for building dtb files from linux kernel sources.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dtc/linux-distinfo \
    pkgsrc/sysutils/dtc/linux-dtb.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/dtc/linux-distinfo
diff -u /dev/null pkgsrc/sysutils/dtc/linux-distinfo:1.1
--- /dev/null   Thu May 25 21:39:57 2017
+++ pkgsrc/sysutils/dtc/linux-distinfo  Thu May 25 21:39:57 2017
@@ -0,0 +1,6 @@
+$NetBSD: linux-distinfo,v 1.1 2017/05/25 21:39:57 jmcneill Exp $
+
+SHA1 (linux-4.11.3.tar.xz) = 75102241132b57fa4e9afcfe8d3a34a500073e1d
+RMD160 (linux-4.11.3.tar.xz) = d1449446ee25e9060390bcaa985c7fff41bc1777
+SHA512 (linux-4.11.3.tar.xz) = 835e65968059c2964ea6dd4239e48d44a21565ff112d63d864b032d947d50f6f4aa8af73852a58ddf1d80c763375adcf9663d8bc4da5155f96f85bfb5a25e606
+Size (linux-4.11.3.tar.xz) = 95543348 bytes
Index: pkgsrc/sysutils/dtc/linux-dtb.mk
diff -u /dev/null pkgsrc/sysutils/dtc/linux-dtb.mk:1.1
--- /dev/null   Thu May 25 21:39:57 2017
+++ pkgsrc/sysutils/dtc/linux-dtb.mk    Thu May 25 21:39:57 2017
@@ -0,0 +1,43 @@
+# $NetBSD: linux-dtb.mk,v 1.1 2017/05/25 21:39:57 jmcneill Exp $
+
+LK_VERSION=    4.11.3
+PKGNAME=       dtb-${DTB_ARCH}-${DTB_DEVICE}-${LK_VERSION}
+DISTNAME=      linux-${LK_VERSION}
+CATEGORIES=    sysutils
+MASTER_SITES=  https://cdn.kernel.org/pub/linux/kernel/v4.x/
+EXTRACT_SUFX=  .tar.xz
+EXTRACT_ELEMENTS= \
+               linux-${LK_VERSION}/arch/${DTB_ARCH}/boot/dts \
+               linux-${LK_VERSION}/include
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.kernel.org/
+COMMENT=       DTB files for ${DTB_ARCH} ${DTB_DEVICE} based boards
+LICENSE=       gnu-gpl-v2
+
+DISTINFO_FILE= ${.CURDIR}/../../sysutils/dtc/linux-distinfo
+
+GENERATE_PLIST=        cd ${DESTDIR}${PREFIX};
+GENERATE_PLIST+=${FIND} * -type f | ${SORT};
+
+DTC=           ${LOCALBASE}/bin/dtc
+DTS_DIR=       ${WRKSRC}/arch/${DTB_ARCH}/boot/dts
+DTS_INC=       ${WRKSRC}/include
+DTS_ARCH_INC=  ${DTS_DIR}/include
+
+do-build:
+.for d in ${DTB_DTS}
+       ${CPP} -P -x assembler-with-cpp -I ${DTS_INC} -I ${DTS_ARCH_INC} \
+           -include ${DTS_DIR}/${d} /dev/null | \
+           ${DTC} -i ${DTS_INC} -i ${DTS_ARCH_INC} -I dts -O dtb \
+               -p 1024 -b 0 -o ${DTS_DIR}/${d:C/dts$/dtb/}
+.endfor
+
+do-install:
+.for d in ${DTB_DTS}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/dtb/${DTB_ARCH}
+       ${INSTALL_DATA} ${DTS_DIR}/${d:C/dts$/dtb/} \
+           ${DESTDIR}${PREFIX}/share/dtb/${DTB_ARCH}
+.endfor
+
+BUILD_DEPENDS+=        dtc>=1.4.2:../../sysutils/dtc



Home | Main Index | Thread Index | Old Index