aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2020-11-02 11:54:29 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-12-08 21:05:23 +0000
commit81cc4ed39870ce16ef5bfb6f56af3b0269f04cea (patch)
treef67d4afdbeec954dc7e39fc5a2e9473860b02319
parent0fae5914aa3be425ab3f84dd878e7c9a9ac4e7fa (diff)
downloadaports-81cc4ed39870ce16ef5bfb6f56af3b0269f04cea.tar.gz
aports-81cc4ed39870ce16ef5bfb6f56af3b0269f04cea.tar.bz2
aports-81cc4ed39870ce16ef5bfb6f56af3b0269f04cea.tar.xz
testing/imx_loader: new aport
imx-loader is a set of tools to load code into an iMX CPU, most commonly U-Boot. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
-rw-r--r--testing/imx_loader/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/imx_loader/APKBUILD b/testing/imx_loader/APKBUILD
new file mode 100644
index 0000000000..ef6511fc92
--- /dev/null
+++ b/testing/imx_loader/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Olliver Schinagl <oliver@schinagl.nl>
+# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
+pkgname="imx_loader"
+pkgver="0_git20201102"
+pkgrel=0
+pkgdesc="serial loader for i.MX5/6/7/8 series"
+url="https://github.com/boundarydevices/imx_usb_loader"
+arch="all"
+license="LGPL-2.1-only"
+options="!check" # No tests available
+subpackages="imx_usb_loader imx_uart_loader"
+depends="${subpackages}"
+makedepends="coreutils libusb-dev linux-headers"
+_commit="30b43d69770cd69e84c045dc9dcabb1f3e9d975a"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/boundarydevices/imx_usb_loader/archive/${_commit}.tar.gz"
+builddir="${srcdir}/imx_usb_loader-${_commit}"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="${pkgdir}" sysconfdir="/etc" install
+}
+
+imx_uart_loader() {
+ depends=""
+ pkgdesc="${pkgdesc} (UART)"
+
+ mkdir -p "${subpkgdir}/usr/bin"
+ mv "${pkgdir}/usr/bin/${subpkgname%%_loader}" "${subpkgdir}/usr/bin/"
+}
+
+imx_usb_loader() {
+ imx_uart_loader
+ pkgdesc="${pkgdesc} (USB)"
+
+ mkdir -p "${subpkgdir}/etc/"
+ mv "${pkgdir}/etc/imx-loader.d/" "${subpkgdir}/etc/"
+}
+
+sha512sums="5394f89da3d086db34a4ce7f2816bea6eee08d56c53390fb4b53492fab05c5c79674b8fdf00b3eb34ef4e0f5696f0b691d78b914ec9fb6661ec428f7c4d87fc9 imx_loader-0_git20201102.tar.gz"