pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils
Module Name: pkgsrc
Committed By: martin
Date: Sun Feb 21 12:33:33 UTC 2021
Modified Files:
pkgsrc/sysutils: Makefile
Added Files:
pkgsrc/sysutils/imx_usb_loader: DESCR Makefile PLIST distinfo
pkgsrc/sysutils/imx_usb_loader/patches: patch-Makefile
patch-Makefile.orig patch-imx_loader_config.c
Log Message:
Add usb loader utility for Freescale i.MX5/i.MX6/i.MX7
and Vybrid SoCs through the Serial Download Protocol (SDP).
To generate a diff of this commit:
cvs rdiff -u -r1.940 -r1.941 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/imx_usb_loader/DESCR \
pkgsrc/sysutils/imx_usb_loader/Makefile \
pkgsrc/sysutils/imx_usb_loader/PLIST \
pkgsrc/sysutils/imx_usb_loader/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile \
pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile.orig \
pkgsrc/sysutils/imx_usb_loader/patches/patch-imx_loader_config.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.940 pkgsrc/sysutils/Makefile:1.941
--- pkgsrc/sysutils/Makefile:1.940 Thu Feb 18 14:55:32 2021
+++ pkgsrc/sysutils/Makefile Sun Feb 21 12:33:32 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.940 2021/02/18 14:55:32 martin Exp $
+# $NetBSD: Makefile,v 1.941 2021/02/21 12:33:32 martin Exp $
#
COMMENT= System utilities
@@ -339,6 +339,7 @@ SUBDIR+= install-sh
SUBDIR+= intel-backlight
SUBDIR+= intel-microcode-netbsd
SUBDIR+= intellij-fsnotifier
+SUBDIR+= imx_usb_loader
SUBDIR+= ioping
SUBDIR+= ipa
SUBDIR+= ipmitool
Added files:
Index: pkgsrc/sysutils/imx_usb_loader/DESCR
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/DESCR:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/DESCR Sun Feb 21 12:33:32 2021
@@ -0,0 +1,6 @@
+This utility allows to download and execute code on Freescale i.MX5/i.MX6/i.MX7
+and Vybrid SoCs through the Serial Download Protocol (SDP). Depending on
+the board, there is usually some kind of recovery button to bring the SoC
+into serial download boot mode, check documentation of your hardware.
+
+The utility support USB and UART as serial link.
Index: pkgsrc/sysutils/imx_usb_loader/Makefile
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/Makefile:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/Makefile Sun Feb 21 12:33:32 2021
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2021/02/21 12:33:32 martin Exp $
+
+DISTNAME= imx_usb_loader-0.0.0.20210220
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=boundarydevices/}
+EXTRACT_SUFFIX= zip
+GITHUB_PROJECT= imx_usb_loader
+GITHUB_TAG= 30b43d69770cd69e84c045dc9dcabb1f3e9d975a
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/boundarydevices/imx_usb_loader
+COMMENT= SDP bootloader for Freescale i.MX5/i.MX6/i.MX7 and Vybrid SoC
+LICENSE= gnu-lgpl-v2.1
+
+USE_TOOLS+= pkg-config gmake
+MAKE_FLAGS+= prefix=${PREFIX}
+
+INSTALLATION_DIRS+= share/examples/imx_usb_loader
+
+EGDIR= share/examples/imx_usb_loader
+REQD_DIRS= ${PKG_SYSCONFDIR}/imx-loader.d
+LOADERCFGS= imx_usb.conf mx50_usb_work.conf
+LOADERCFGS+= mx51_usb_work.conf mx53_usb_work.conf
+LOADERCFGS+= mx6_usb_sdp_spl.conf mx6_usb_work.conf
+LOADERCFGS+= mx6ull_usb_work.conf mx7_usb_work.conf
+LOADERCFGS+= mx7ulp_usb_work.conf mx8m_usb_sdp_spl.conf
+LOADERCFGS+= mx8mm_usb_work.conf mx8mn_usb_work.conf
+LOADERCFGS+= mx8mq_usb_work.conf vybrid_usb_work.conf
+
+.for i in ${LOADERCFGS}
+CONF_FILES+= ${EGDIR}/imx-loader.d/${i} ${PKG_SYSCONFDIR}/imx-loader.d/${i}
+.endfor
+
+post-install:
+ mv ${DESTDIR}${PREFIX}/etc/imx-loader.d ${DESTDIR}${PREFIX}/share/examples/imx_usb_loader
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/imx_usb_loader/PLIST
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/PLIST:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/PLIST Sun Feb 21 12:33:32 2021
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/21 12:33:32 martin Exp $
+bin/imx_uart
+bin/imx_usb
+share/examples/imx_usb_loader/imx-loader.d/imx_usb.conf
+share/examples/imx_usb_loader/imx-loader.d/mx50_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx51_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx53_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx6_usb_sdp_spl.conf
+share/examples/imx_usb_loader/imx-loader.d/mx6_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx6ull_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx7_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx7ulp_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx8m_usb_sdp_spl.conf
+share/examples/imx_usb_loader/imx-loader.d/mx8mm_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx8mn_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/mx8mq_usb_work.conf
+share/examples/imx_usb_loader/imx-loader.d/vybrid_usb_work.conf
Index: pkgsrc/sysutils/imx_usb_loader/distinfo
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/distinfo:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/distinfo Sun Feb 21 12:33:32 2021
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/02/21 12:33:32 martin Exp $
+
+SHA1 (imx_usb_loader-0.0.0.20210220-30b43d69770cd69e84c045dc9dcabb1f3e9d975a.tar.gz) = c78c427c979938904201598d15ac9c699d7324b4
+RMD160 (imx_usb_loader-0.0.0.20210220-30b43d69770cd69e84c045dc9dcabb1f3e9d975a.tar.gz) = c0fb4eb8c60d74afc9d91f43bef123a7213c4d7a
+SHA512 (imx_usb_loader-0.0.0.20210220-30b43d69770cd69e84c045dc9dcabb1f3e9d975a.tar.gz) =
5394f89da3d086db34a4ce7f2816bea6eee08d56c53390fb4b53492fab05c5c79674b8fdf00b3eb34ef4e0f5696f0b691d78b914ec9fb6661ec428f7c4d87fc9
+Size (imx_usb_loader-0.0.0.20210220-30b43d69770cd69e84c045dc9dcabb1f3e9d975a.tar.gz) = 68279 bytes
+SHA1 (patch-Makefile) = 9356949ac767fc035734097e866d90b32fe5dabb
+SHA1 (patch-imx_loader_config.c) = 4e25f8bb0755a54748a7f78fe19359894ea96127
Index: pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile Sun Feb 21 12:33:32 2021
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2021/02/21 12:33:32 martin Exp $
+
+realpath is not very portable, do not override install dirs
+
+--- Makefile.orig 2020-05-17 03:45:34.000000000 +0000
++++ Makefile
+@@ -17,7 +17,7 @@ else
+ USBCFLAGS = -I/usr/include/libusb-1.0
+ USBLDFLAGS = -L/usr/lib -lusb-1.0
+ endif
+-CONFCPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' -DREL_SYSCONFDIR='"$(rel_sysconfdir)"'
++CONFCPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' -DREL_SYSCONFDIR='"$(sysconfdir)"'
+ CFLAGS ?= -Wall -Wstrict-prototypes -Wno-trigraphs
+
+ imx_usb.o : imx_usb.c imx_sdp.h imx_loader_config.h portable.h
Index: pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile.orig
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile.orig:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/patches/patch-Makefile.orig Sun Feb 21 12:33:32 2021
@@ -0,0 +1,53 @@
+$NetBSD: patch-Makefile.orig,v 1.1 2021/02/21 12:33:32 martin Exp $
+
+realpath is not very portable, do not override install dirs
+
+--- Makefile.orig 2020-05-17 05:45:34.000000000 +0200
++++ Makefile 2021-02-20 19:20:33.863583131 +0100
+@@ -1,10 +1,7 @@
+ all: imx_usb imx_uart
+
+-DESTDIR ?=
+-prefix ?= /usr
+-bindir ?= $(prefix)/bin
+-sysconfdir ?= $(prefix)/etc
+-rel_sysconfdir = $(shell realpath -m --relative-to=$(bindir) $(sysconfdir))
++bindir=$(PREFIX)/bin
++sysconfdir=$(PREFIX)/etc
+
+ BUILDHOST := $(shell uname -s)
+ BUILDHOST := $(patsubst CYGWIN_%,CYGWIN,$(BUILDHOST))
+@@ -17,7 +14,7 @@
+ USBCFLAGS = -I/usr/include/libusb-1.0
+ USBLDFLAGS = -L/usr/lib -lusb-1.0
+ endif
+-CONFCPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' -DREL_SYSCONFDIR='"$(rel_sysconfdir)"'
++CONFCPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' -DREL_SYSCONFDIR='"$(sysconfdir)"'
+ CFLAGS ?= -Wall -Wstrict-prototypes -Wno-trigraphs
+
+ imx_usb.o : imx_usb.c imx_sdp.h imx_loader_config.h portable.h
+@@ -33,16 +30,16 @@
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+ install: imx_usb imx_uart
+- mkdir -p '$(DESTDIR)$(sysconfdir)/imx-loader.d/'
+- install -m644 *.conf '$(DESTDIR)$(sysconfdir)/imx-loader.d/'
+- mkdir -p '$(DESTDIR)$(bindir)'
+- install -m755 imx_usb '$(DESTDIR)$(bindir)/imx_usb'
+- install -m755 imx_uart '$(DESTDIR)$(bindir)/imx_uart'
++ mkdir -p '$(sysconfdir)/imx-loader.d/'
++ install -m644 *.conf '$(sysconfdir)/imx-loader.d/'
++ mkdir -p '$(bindir)'
++ install -m755 imx_usb '$(bindir)/imx_usb'
++ install -m755 imx_uart '$(bindir)/imx_uart'
+
+ uninstall:
+- rm -rf '$(DESTDIR)$(sysconfdir)/imx-loader.d/'
+- rm -rf '$(DESTDIR)$(bindir)/imx_usb'
+- rm -rf '$(DESTDIR)$(bindir)/imx_uart'
++ rm -rf '$(sysconfdir)/imx-loader.d/'
++ rm -rf '$(bindir)/imx_usb'
++ rm -rf '$(bindir)/imx_uart'
+
+ clean:
+ rm -f imx_usb imx_uart *.o
Index: pkgsrc/sysutils/imx_usb_loader/patches/patch-imx_loader_config.c
diff -u /dev/null pkgsrc/sysutils/imx_usb_loader/patches/patch-imx_loader_config.c:1.1
--- /dev/null Sun Feb 21 12:33:33 2021
+++ pkgsrc/sysutils/imx_usb_loader/patches/patch-imx_loader_config.c Sun Feb 21 12:33:32 2021
@@ -0,0 +1,14 @@
+$NetBSD: patch-imx_loader_config.c,v 1.1 2021/02/21 12:33:32 martin Exp $
+
+PATH_MAX is used, so include limits.h
+
+--- imx_loader_config.c.orig 2020-05-17 05:45:34.000000000 +0200
++++ imx_loader_config.c 2021-02-20 17:52:52.815546397 +0100
+@@ -21,6 +21,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdint.h>
++#include <limits.h>
+
+ #include "portable.h"
+ #include "imx_sdp.h"
Home |
Main Index |
Thread Index |
Old Index