pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/preloader-m1 Initial import of preloader-m1 f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8e2220b7f813
branches:  trunk
changeset: 448257:8e2220b7f813
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Mar 06 20:14:30 2021 +0000

description:
Initial import of preloader-m1 from Git.

Preloader M1 acts as a wrapper for Linux (and other operating systems)
kernels on Apple M1 hardware and provides a trampoline for starting
processor cores.

diffstat:

 sysutils/preloader-m1/DESCR                  |   3 +++
 sysutils/preloader-m1/Makefile               |  28 ++++++++++++++++++++++++++++
 sysutils/preloader-m1/PLIST                  |   3 +++
 sysutils/preloader-m1/distinfo               |   7 +++++++
 sysutils/preloader-m1/patches/patch-Makefile |  10 ++++++++++
 5 files changed, 51 insertions(+), 0 deletions(-)

diffs (71 lines):

diff -r 259736e2c977 -r 8e2220b7f813 sysutils/preloader-m1/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/preloader-m1/DESCR       Sat Mar 06 20:14:30 2021 +0000
@@ -0,0 +1,3 @@
+Preloader M1 acts as a wrapper for Linux (and other operating systems)
+kernels on Apple M1 hardware and provides a trampoline for starting
+processor cores.
diff -r 259736e2c977 -r 8e2220b7f813 sysutils/preloader-m1/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/preloader-m1/Makefile    Sat Mar 06 20:14:30 2021 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2021/03/06 20:14:30 jmcneill Exp $
+
+PKGNAME=       preloader-m1-0.0.20210220
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=corellium/}
+GITHUB_PROJECT=        preloader-m1
+GITHUB_TAG=    32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae
+DISTNAME=      preloader-m1-${GITHUB_TAG}
+EXTRACT_SUFX=  .tar.gz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/corellium/preloader-m1/
+COMMENT=       Preloader for OS images on Apple M1 SoCs
+LICENSE=       modified-bsd
+
+USE_TOOLS+=    gmake
+
+BUILD_DEPENDS+=        cross-aarch64-none-elf-gcc-[0-9]*:../../cross/aarch64-none-elf-gcc
+MAKE_ENV+=     CROSS_COMPILE=${PREFIX}/cross-aarch64-none-elf/bin/aarch64-none-elf-
+BUILD_TARGET=  machopack preboot.bin
+
+INSTALLATION_DIRS=     bin share/preloader-m1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/machopack ${DESTDIR}${PREFIX}/bin/machopack
+       ${INSTALL_DATA} ${WRKSRC}/preboot.bin ${DESTDIR}${PREFIX}/share/preloader-m1
+
+.include "../../mk/bsd.pkg.mk"
diff -r 259736e2c977 -r 8e2220b7f813 sysutils/preloader-m1/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/preloader-m1/PLIST       Sat Mar 06 20:14:30 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/03/06 20:14:30 jmcneill Exp $
+bin/machopack
+share/preloader-m1/preboot.bin
diff -r 259736e2c977 -r 8e2220b7f813 sysutils/preloader-m1/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/preloader-m1/distinfo    Sat Mar 06 20:14:30 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/03/06 20:14:30 jmcneill Exp $
+
+SHA1 (preloader-m1-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae.tar.gz) = b62ca7f44b889dd900bfa6f54b1cb929f6484872
+RMD160 (preloader-m1-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae.tar.gz) = f5b5f88a9df17b630f2fe5bd76f49e0b35d29922
+SHA512 (preloader-m1-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae.tar.gz) = 
ec113920fcf2658e88599d8c084ebed8d84b0b98d73b7178f24e74b3cf82b23522a5471123a79eebe0c6d3ad27fd08deced5f8810a167fb79a784cf294d542bb
+Size (preloader-m1-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae-32c0b02c2a3d78e90bb4712094fa26d1b6ac6cae.tar.gz) = 26445 bytes
+SHA1 (patch-Makefile) = 8740b9cac0c09252fee9d445648ce6c6cc3549d2
diff -r 259736e2c977 -r 8e2220b7f813 sysutils/preloader-m1/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/preloader-m1/patches/patch-Makefile      Sat Mar 06 20:14:30 2021 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-Makefile,v 1.1 2021/03/06 20:14:30 jmcneill Exp $
+
+--- Makefile.orig      2021-02-20 17:24:43.000000000 +0000
++++ Makefile
+@@ -1,4 +1,4 @@
+-AA64 = /opt/cross/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-elf/bin/aarch64-elf-
++AA64 = $(CROSS_COMPILE)
+ AA64CFLAGS = -Os -Wall -std=c99 -fno-builtin -fno-common -fno-pic -fno-unwind-tables -fomit-frame-pointer -fno-dwarf2-cfi-asm -mgeneral-regs-only
+ 
+ all: linux.macho



Home | Main Index | Thread Index | Old Index