pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/dtb-arm64-apple-m1 Initial import of dtb-arm6...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/af11ee6eae3f
branches:  trunk
changeset: 448258:af11ee6eae3f
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Mar 06 20:16:28 2021 +0000

description:
Initial import of dtb-arm64-apple-m1 from Git.

The devicetree is a data structure for describing hardware. Rather than
hard coding every detail of a device into an operating system, many aspects
of the hardware can be described in a data structure that is passed to the
operating system at boot time.

This package includes Device Tree Blob (.dtb) files generated from
the Corellium Linux kernel for Apple M1 devices.

diffstat:

 sysutils/dtb-arm64-apple-m1/DESCR    |   7 +++++
 sysutils/dtb-arm64-apple-m1/Makefile |  45 ++++++++++++++++++++++++++++++++++++
 sysutils/dtb-arm64-apple-m1/PLIST    |   2 +
 sysutils/dtb-arm64-apple-m1/distinfo |   6 ++++
 4 files changed, 60 insertions(+), 0 deletions(-)

diffs (76 lines):

diff -r 8e2220b7f813 -r af11ee6eae3f sysutils/dtb-arm64-apple-m1/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dtb-arm64-apple-m1/DESCR Sat Mar 06 20:16:28 2021 +0000
@@ -0,0 +1,7 @@
+The devicetree is a data structure for describing hardware. Rather than
+hard coding every detail of a device into an operating system, many aspects
+of the hardware can be described in a data structure that is passed to the
+operating system at boot time.
+
+This package includes Device Tree Blob (.dtb) files generated from
+the Corellium Linux kernel for Apple M1 devices.
diff -r 8e2220b7f813 -r af11ee6eae3f sysutils/dtb-arm64-apple-m1/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dtb-arm64-apple-m1/Makefile      Sat Mar 06 20:16:28 2021 +0000
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2021/03/06 20:16:28 jmcneill Exp $
+
+GITHUB_PROJECT=        linux-m1
+GITHUB_TAG=    777de308c5d5f39d12b37c09b8a0d640fc1969e3
+DISTNAME=      linux-m1-777de308c5d5f39d12b37c09b8a0d640fc1969e3
+PKGNAME=       dtb-arm64-apple-m1-5.11rc4
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=corellium/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+EXTRACT_SUFX=  .tar.gz
+EXTRACT_ELEMENTS= \
+       ${GITHUB_PROJECT}-${GITHUB_TAG}/arch/arm64/boot/dts \
+       ${GITHUB_PROJECT}-${GITHUB_TAG}/include
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/corellium/linux-m1/
+COMMENT=       DTB files for arm64 apple-m1 based boards
+LICENSE=       gnu-gpl-v2
+
+DTC=           ${LOCALBASE}/bin/dtc
+DTS_DIR=       ${WRKSRC}/arch/arm64/boot/dts
+DTS_INC=       ${WRKSRC}/include
+DTS_ARCH_INC=  ${DTS_DIR}/include
+
+DTB_DTS=       apple/apple-m1-j274.dts
+
+do-build:
+.for d in ${DTB_DTS}
+       cd ${DTS_DIR} && \
+           ${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/arm64/apple
+       ${INSTALL_DATA} ${DTS_DIR}/${d:C/dts$/dtb/} \
+           ${DESTDIR}${PREFIX}/share/dtb/arm64/apple/
+.endfor
+
+BUILD_DEPENDS+=        dtc>=1.4.2:../../sysutils/dtc
+
+.include "../../mk/bsd.pkg.mk"
diff -r 8e2220b7f813 -r af11ee6eae3f sysutils/dtb-arm64-apple-m1/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dtb-arm64-apple-m1/PLIST Sat Mar 06 20:16:28 2021 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2021/03/06 20:16:28 jmcneill Exp $
+share/dtb/arm64/apple/apple-m1-j274.dtb
diff -r 8e2220b7f813 -r af11ee6eae3f sysutils/dtb-arm64-apple-m1/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dtb-arm64-apple-m1/distinfo      Sat Mar 06 20:16:28 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/03/06 20:16:28 jmcneill Exp $
+
+SHA1 (linux-m1/linux-m1-777de308c5d5f39d12b37c09b8a0d640fc1969e3-777de308c5d5f39d12b37c09b8a0d640fc1969e3.tar.gz) = e5333e2e0adae799c3c2ba4f0ead80ac2ad98034
+RMD160 (linux-m1/linux-m1-777de308c5d5f39d12b37c09b8a0d640fc1969e3-777de308c5d5f39d12b37c09b8a0d640fc1969e3.tar.gz) = 47ee923a4e2c59727e39b69468a3cf80b45a07ff
+SHA512 (linux-m1/linux-m1-777de308c5d5f39d12b37c09b8a0d640fc1969e3-777de308c5d5f39d12b37c09b8a0d640fc1969e3.tar.gz) = 
02de8133c69940c0bc0d7fe9b70afd39bed65e8f6753224f8206c7e511360324e3ed186dde468dfe6ad82fe4e90c366f0bd2e7e6e92f3df6cd696dee4e52f4f0
+Size (linux-m1/linux-m1-777de308c5d5f39d12b37c09b8a0d640fc1969e3-777de308c5d5f39d12b37c09b8a0d640fc1969e3.tar.gz) = 189491134 bytes



Home | Main Index | Thread Index | Old Index