pkgsrc-WIP-changes archive

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

amlogic-meson-fwtools: Add more fwtools for g12a and g12b



Module Name:	pkgsrc-wip
Committed By:	Han Pengfei <hanpengfei%autobio.com.cn@localhost>
Pushed By:	pengphei
Date:		Wed Sep 22 20:40:41 2021 +0800
Changeset:	1aed9c619297c588f438c70f1b2ba37fa2eb7e44

Added Files:
	amlogic-meson-fwtools/DESCR
	amlogic-meson-fwtools/Makefile
	amlogic-meson-fwtools/PLIST
	amlogic-meson-fwtools/distinfo

Log Message:
amlogic-meson-fwtools: Add more fwtools for g12a and g12b

Signed-off-by: Han Pengfei <hanpengfei%autobio.com.cn@localhost>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1aed9c619297c588f438c70f1b2ba37fa2eb7e44

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 amlogic-meson-fwtools/DESCR    |   5 ++
 amlogic-meson-fwtools/Makefile | 108 +++++++++++++++++++++++++++++++++++++++++
 amlogic-meson-fwtools/PLIST    |   7 +++
 amlogic-meson-fwtools/distinfo |  26 ++++++++++
 4 files changed, 146 insertions(+)

diffs:
diff --git a/amlogic-meson-fwtools/DESCR b/amlogic-meson-fwtools/DESCR
new file mode 100644
index 0000000000..6e4355a0aa
--- /dev/null
+++ b/amlogic-meson-fwtools/DESCR
@@ -0,0 +1,5 @@
+amlogic-meson-fwtools is a collection of tools for packaging trusted boot
+firmware for Amlogic Meson SoCs.
+
+This package includes tools distributed only in binary form by Amlogic
+board vendors.
diff --git a/amlogic-meson-fwtools/Makefile b/amlogic-meson-fwtools/Makefile
new file mode 100644
index 0000000000..d2000ae038
--- /dev/null
+++ b/amlogic-meson-fwtools/Makefile
@@ -0,0 +1,108 @@
+# $NetBSD: Makefile,v 1.4 2019/11/04 21:28:40 rillig Exp $
+
+# Version isn't super-meaningful; we're grabbing a collection of non-changing
+# tools from a variety of locations.
+VERSION=	0.0
+
+PKGNAME=	amlogic-meson-fwtools-${VERSION}
+PKGREVISION=	2		# bump this when a tool is added/removed
+CATEGORIES=	sysutils
+
+MAINTAINER=	port-arm%NetBSD.org@localhost
+COMMENT=	Trusted Firmware packaging tools for the Amlogic Meson family of SoCs
+
+LICENSE=	amlogic-meson-fwtools-license
+
+RESTRICTED=		Redistribution not permitted - see licenses/amlogic-meson-fwtools
+NO_SRC_ON_FTP=		${RESTRICTED}
+NO_SRC_ON_CDROM=	${RESTRICTED}
+NO_BIN_ON_FTP=		${RESTRICTED}
+NO_BIN_ON_CDROM=	${RESTRICTED}
+
+#
+# These tools are distributed only as Linux x86_64 binaries.
+#
+
+EMUL_PLATFORMS=		linux-x86_64
+EMUL_MODULES.linux=	base
+
+NO_CONFIGURE=	yes
+NO_BUILD=	yes
+
+#
+# Hardkernel-supplied firmware tools
+#
+ODROID=			odroidc2-v2015.01
+
+xFIPCREATE=		fip_create
+FIPCREATE=		${ODROID}-${xFIPCREATE}
+DISTFILES+=		${FIPCREATE}
+SITES.${FIPCREATE}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}hardkernel/u-boot/raw/${ODROID}/fip/${xFIPCREATE} @}
+
+xAML_ENCRYPT_GXB=		aml_encrypt_gxb
+AML_ENCRYPT_GXB=		${ODROID}-${xAML_ENCRYPT_GXB}
+DISTFILES+=			${AML_ENCRYPT_GXB}
+SITES.${AML_ENCRYPT_GXB}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}hardkernel/u-boot/raw/${ODROID}/fip/gxb/${xAML_ENCRYPT_GXB} @}
+
+#
+# Khadas-supplied firmware tools
+#
+KHADAS=			khadas-vims-v2015.01
+
+xAML_ENCRYPT_G12B=		aml_encrypt_g12b
+AML_ENCRYPT_G12B=		${KHADAS}-${xAML_ENCRYPT_G12B}
+DISTFILES+=			${AML_ENCRYPT_G12B}
+SITES.${AML_ENCRYPT_G12B}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}khadas/u-boot/raw/${KHADAS}/fip/g12b/${xAML_ENCRYPT_G12B} @}
+
+xAML_ENCRYPT_G12A=		aml_encrypt_g12a
+AML_ENCRYPT_G12A=		${KHADAS}-${xAML_ENCRYPT_G12A}
+DISTFILES+=			${AML_ENCRYPT_G12A}
+SITES.${AML_ENCRYPT_G12B}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}khadas/u-boot/raw/${KHADAS}/fip/g12a/${xAML_ENCRYPT_G12A} @}
+
+#
+# BayLibre-supplied firmware tools
+#
+LIBRETECH=		libretech-cc
+
+xAML_ENCRYPT_GXL=		aml_encrypt_gxl
+AML_ENCRYPT_GXL=		${LIBRETECH}-${xAML_ENCRYPT_GXL}
+DISTFILES+=			${AML_ENCRYPT_GXL}
+SITES.${AML_ENCRYPT_GXL}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}BayLibre/u-boot/raw/${LIBRETECH}/fip/gxl/${xAML_ENCRYPT_GXL} @}
+
+xAML_BLX_FIX_G12A=		blx_fix_g12a.sh
+AML_BLX_FIX_G12A=		${LIBRETECH}-${xAML_BLX_FIX_G12A}
+DISTFILES+=			${AML_BLX_FIX_G12A}
+# Origin script by BayLibre, but only works for linux.
+#SITES.${AML_BLX_FIX_G12A}=	${MASTER_SITE_GITHUB:@url@ \
+#	-${url}BayLibre/u-boot/releases/download/v2017.11-${LIBRETECH}/${xAML_BLX_FIX_G12A} @}
+
+# Updated version for os compability with both linux and bsd.
+SITES.${AML_BLX_FIX_G12A}=	${MASTER_SITE_GITHUB:@url@ \
+	-${url}thirdyouth/u-boot-blobs/raw/main/amlogic/${xAML_BLX_FIX_G12A} @}
+
+INSTALLATION_DIRS+=	bin
+
+do-extract:
+	# Nothing to do.
+	${TRUE}
+
+do-install:
+	${INSTALL_PROGRAM} ${DISTDIR}/${FIPCREATE} \
+		${DESTDIR}${PREFIX}/bin/aml_fip_create
+	${INSTALL_PROGRAM} ${DISTDIR}/${AML_ENCRYPT_GXB} \
+		${DESTDIR}${PREFIX}/bin/aml_encrypt_gxb
+	${INSTALL_PROGRAM} ${DISTDIR}/${AML_ENCRYPT_GXL} \
+		${DESTDIR}${PREFIX}/bin/aml_encrypt_gxl
+	${INSTALL_PROGRAM} ${DISTDIR}/${AML_ENCRYPT_G12B} \
+		${DESTDIR}${PREFIX}/bin/aml_encrypt_g12b
+	${INSTALL_PROGRAM} ${DISTDIR}/${AML_ENCRYPT_G12A} \
+		${DESTDIR}${PREFIX}/bin/aml_encrypt_g12a
+	${INSTALL_DATA} ${DISTDIR}/${AML_BLX_FIX_G12A} \
+		${DESTDIR}${PREFIX}/bin/blx_fix_g12a.sh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/amlogic-meson-fwtools/PLIST b/amlogic-meson-fwtools/PLIST
new file mode 100644
index 0000000000..c3fbd35a3a
--- /dev/null
+++ b/amlogic-meson-fwtools/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2019/05/18 17:39:48 thorpej Exp $
+bin/aml_encrypt_gxb
+bin/aml_encrypt_gxl
+bin/aml_fip_create
+bin/aml_encrypt_g12b
+bin/aml_encrypt_g12a
+bin/blx_fix_g12a.sh
diff --git a/amlogic-meson-fwtools/distinfo b/amlogic-meson-fwtools/distinfo
new file mode 100644
index 0000000000..74c68dc553
--- /dev/null
+++ b/amlogic-meson-fwtools/distinfo
@@ -0,0 +1,26 @@
+$NetBSD: distinfo,v 1.1 2019/05/18 17:39:48 thorpej Exp $
+
+SHA1 (khadas-vims-v2015.01-aml_encrypt_g12a) = f5f3bb5793043a375457d19d826a5cef752238a4
+RMD160 (khadas-vims-v2015.01-aml_encrypt_g12a) = e780623439ca3f0ea6270362168ac615e8475559
+SHA512 (khadas-vims-v2015.01-aml_encrypt_g12a) = 9d641c31c44712915746c2f882ef9c8a2ec82ab58b558c79f95aa26e55e3afe2327e3f30b714c2fe4d9685a3a89b75270140b328a7ef9856ede636515fc2b7d3
+Size (khadas-vims-v2015.01-aml_encrypt_g12a) = 1750647 bytes
+SHA1 (khadas-vims-v2015.01-aml_encrypt_g12b) = f5f3bb5793043a375457d19d826a5cef752238a4
+RMD160 (khadas-vims-v2015.01-aml_encrypt_g12b) = e780623439ca3f0ea6270362168ac615e8475559
+SHA512 (khadas-vims-v2015.01-aml_encrypt_g12b) = 9d641c31c44712915746c2f882ef9c8a2ec82ab58b558c79f95aa26e55e3afe2327e3f30b714c2fe4d9685a3a89b75270140b328a7ef9856ede636515fc2b7d3
+Size (khadas-vims-v2015.01-aml_encrypt_g12b) = 1750647 bytes
+SHA1 (libretech-cc-aml_encrypt_gxl) = 6643bc642585da0fb7a3c68c14586b975d462669
+RMD160 (libretech-cc-aml_encrypt_gxl) = 8efc8f51ea062320a7626a761ba245508d21ebf6
+SHA512 (libretech-cc-aml_encrypt_gxl) = 041a9558d314f24234a79a57bdeda91f2326fc52376d4d12b64223741af510883a13e98a39390594d00f78b4eef09c543981020f8320345c45c6d859b422d270
+Size (libretech-cc-aml_encrypt_gxl) = 1883448 bytes
+SHA1 (libretech-cc-blx_fix_g12a.sh) = c1be9549fa7468f27420c3f91d5b5f5d8a48ca9c
+RMD160 (libretech-cc-blx_fix_g12a.sh) = 5ca3472c4a74a497c7f1f6331d329c8788f448d2
+SHA512 (libretech-cc-blx_fix_g12a.sh) = 9eae2a886c72039c0a8461e336554067bbb1cbf3e9a5c9379d1bd8a07be52397ed20c798fa6c084d0e28de71aa57786ddb525fb2cc05b45ca1750b88dd8505f1
+Size (libretech-cc-blx_fix_g12a.sh) = 1194 bytes
+SHA1 (odroidc2-v2015.01-aml_encrypt_gxb) = 95c9565c64088ad56a10bac79b173c41a574e48e
+RMD160 (odroidc2-v2015.01-aml_encrypt_gxb) = 5cb9ffcb6e8486de42796a448c2e42ed86c5c1bc
+SHA512 (odroidc2-v2015.01-aml_encrypt_gxb) = 195957f44d93f523f9492b4b305b20a18384995001391466ccbcd152147fae132e612e09dd79987fe745f835ef4324ae2f5bc3c3c1f0824acdaf651bcf16c10b
+Size (odroidc2-v2015.01-aml_encrypt_gxb) = 1011765 bytes
+SHA1 (odroidc2-v2015.01-fip_create) = b6d2edd8a72fa1822f6432982d04bbee1798ad4b
+RMD160 (odroidc2-v2015.01-fip_create) = ade537dd04484331ff050d1d41f562f700c9808e
+SHA512 (odroidc2-v2015.01-fip_create) = 1d8a4dd5e23b191b2f2bc1737936a4549251c105eee47abd74db73d6695c912ecbd167489eb2b3ede323d0942b30a4eb75b8e673a7502472ece8e3777be3a9a7
+Size (odroidc2-v2015.01-fip_create) = 14176 bytes


Home | Main Index | Thread Index | Old Index