summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/dtb-arm64-apple-m1/DESCR7
-rw-r--r--sysutils/dtb-arm64-apple-m1/Makefile45
-rw-r--r--sysutils/dtb-arm64-apple-m1/PLIST2
-rw-r--r--sysutils/dtb-arm64-apple-m1/distinfo6
4 files changed, 60 insertions, 0 deletions
diff --git a/sysutils/dtb-arm64-apple-m1/DESCR b/sysutils/dtb-arm64-apple-m1/DESCR
new file mode 100644
index 00000000000..2911cbab666
--- /dev/null
+++ b/sysutils/dtb-arm64-apple-m1/DESCR
@@ -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 --git a/sysutils/dtb-arm64-apple-m1/Makefile b/sysutils/dtb-arm64-apple-m1/Makefile
new file mode 100644
index 00000000000..64712dca285
--- /dev/null
+++ b/sysutils/dtb-arm64-apple-m1/Makefile
@@ -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
+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 --git a/sysutils/dtb-arm64-apple-m1/PLIST b/sysutils/dtb-arm64-apple-m1/PLIST
new file mode 100644
index 00000000000..fee97dab92a
--- /dev/null
+++ b/sysutils/dtb-arm64-apple-m1/PLIST
@@ -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 --git a/sysutils/dtb-arm64-apple-m1/distinfo b/sysutils/dtb-arm64-apple-m1/distinfo
new file mode 100644
index 00000000000..b6f1adb142c
--- /dev/null
+++ b/sysutils/dtb-arm64-apple-m1/distinfo
@@ -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