--- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/bin2fex.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/bin2fex.1 @@ -0,0 +1 @@ +.so man1/sunxi-fexc.1 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/changelog +++ sunxi-tools-1.4.2+git20221128.530adf/debian/changelog @@ -0,0 +1,138 @@ +sunxi-tools (1.4.2+git20221128.530adf-3) unstable; urgency=medium + + * Delete ramboot.scr on clean. (Closes: #1049265) + + -- Ian Campbell Sun, 20 Aug 2023 14:36:27 +0100 + +sunxi-tools (1.4.2+git20221128.530adf-2) unstable; urgency=medium + + * Actually bump Standards-Version to 4.6.2, as I intended in the previous + upload, still no changes required. + * Add basic manpages for commands which lacked them. + + -- Ian Campbell Sat, 28 Jan 2023 15:44:03 +0000 + +sunxi-tools (1.4.2+git20221128.530adf-1) unstable; urgency=medium + + * New upstream snapshot. + * Add dependency on adduser since we use addgroup in postinst. + * Update Lintian override syntax. + * Ignore hardening flags errors when building raw target shims. + * Bump Standards-Version to 4.6.2, no changes required. + + -- Ian Campbell Sun, 08 Jan 2023 10:21:46 +0000 + +sunxi-tools (1.4.2+git20220329.76089c-1) unstable; urgency=medium + + * New upstream snapshot. + + -- Ian Campbell Sun, 15 May 2022 07:48:03 +0100 + +sunxi-tools (1.4.2+git20220212.08e209-1) unstable; urgency=medium + + * New upstream release. + + Includes new sunxi-fel.1 manpage + * Include the upstream target stubs in the package. + + -- Ian Campbell Sat, 12 Feb 2022 13:48:51 +0000 + +sunxi-tools (1.4.2+git20211216.02a865-2) unstable; urgency=medium + + * Fix FTCBFS: (Closes: #1000564) + + Let dh_auto_build pass cross tools to make. + + Make pkg-config substitutable. + Thanks to Helmut Grohne for the patch. + + -- Ian Campbell Sun, 16 Jan 2022 10:14:46 +0000 + +sunxi-tools (1.4.2+git20211216.02a865-1) unstable; urgency=medium + + * New upstream snapshot (Closes: #1003788). + * Bump Standards-Version to 4.6.0, no changes required. + + -- Ian Campbell Sun, 16 Jan 2022 09:03:48 +0000 + +sunxi-tools (1.4.2+git20181114.6d598a-3) unstable; urgency=medium + + * Only trigger a udev event if `udevadm` is available. Discovered by + piuparts. Also ignore any error from `udevadm trigger`. (Closes: #918465). + + -- Ian Campbell Sun, 06 Jan 2019 12:14:53 +0000 + +sunxi-tools (1.4.2+git20181114.6d598a-2) unstable; urgency=medium + + * Bump Standards-Version to 4.3.0, no changes required. + * Switch to debhelper compat level 12, using the new debhelper-compat + dependency instead of debian/compat. No other changes required. + * Specify Rules-Requires-Root: no. + * Update Lintian overrides. + * Trigger a udev event on the USB device in postinst, to cause the group + ownership set by a newly installed udev rules file to take effect + immediately. + + -- Ian Campbell Sat, 05 Jan 2019 12:07:16 +0000 + +sunxi-tools (1.4.2+git20181114.6d598a-1) unstable; urgency=medium + + * Correct versioning of upstream snapshot (~git is before 1.4.2, while +git + is after which is what was intended). + * Ensure hardened CFLAGS/CPPFLAGS are propagated to the build, this changed + in the git20181114.6d598a snapshot. + + -- Ian Campbell Sun, 16 Dec 2018 15:02:19 +0000 + +sunxi-tools (1.4.2~git20181114.6d598a-1) unstable; urgency=medium + + [ Ian Campbell ] + * New upstream snapshot. + - Updated d/copyright + - Added build-dep on zlib + * Update Standards-Version, no changes required. + * Add lintian override for AppStream warning + * Disable "check_all_fex" test target since it requires external resources. + + [ Ondřej Nový ] + * d/changelog: Remove trailing whitespaces + + -- Ian Campbell Sat, 15 Dec 2018 21:00:47 +0000 + +sunxi-tools (1.4.1-2) unstable; urgency=medium + + * Regularise and update debian/{control,copyright} using CME. + * Update VCS-* to point to salsa. + * Update Standards-Version, no changes required. + * Correct udev rule to use SUBSYSTEM not (unnecessarily) SUBSYSTEMS. + + -- Ian Campbell Sun, 13 May 2018 14:15:12 +0100 + +sunxi-tools (1.4.1-1) unstable; urgency=medium + + * New upstream release. + * Update standard version, no changes required. + * Enable hardening flags. + + -- Ian Campbell Sun, 30 Oct 2016 13:36:07 +0000 + +sunxi-tools (1.3-1) unstable; urgency=medium + + * New upstream release. + - Support for new "spl" sub command to the fel tool. + - Various bug fixes. + * Update Vcs-* to point to anonscm. + * Recommend split u-boot-sunxi package only. + + -- Ian Campbell Tue, 24 Nov 2015 20:27:33 +0000 + +sunxi-tools (1.2-2) unstable; urgency=medium + + * Create a "sunxi-fel" group and add udev rules to make the FEL mode USB + device available to members of that group. + * Include upstream README in the package (Closes: #757642) + + -- Ian Campbell Mon, 25 Aug 2014 21:40:38 +0100 + +sunxi-tools (1.2-1) unstable; urgency=medium + + * Initial release (Closes: #750104). + + -- Ian Campbell Sat, 12 Jul 2014 20:51:56 +0100 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/clean +++ sunxi-tools-1.4.2+git20221128.530adf/debian/clean @@ -0,0 +1 @@ +ramboot.scr --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/control +++ sunxi-tools-1.4.2+git20221128.530adf/debian/control @@ -0,0 +1,34 @@ +Source: sunxi-tools +Maintainer: Ian Campbell +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 12), + pkg-config, + libusb-1.0-0-dev, + libfdt-dev, + u-boot-tools, + ruby, + binutils-arm-none-eabi, + gcc-arm-none-eabi, + zlib1g-dev +Standards-Version: 4.6.2 +Vcs-Browser: https://salsa.debian.org/debian/sunxi-tools +Vcs-Git: https://salsa.debian.org/debian/sunxi-tools.git +Homepage: http://linux-sunxi.org/Sunxi-tools +Rules-Requires-Root: no + +Package: sunxi-tools +Architecture: any +Depends: adduser, + ${shlibs:Depends}, + ${misc:Depends} +Recommends: u-boot-sunxi:armhf +Description: tools for working with Allwinner (sunxi) ARM processors + This package contains various tools for working with devices based around the + Allwinner sunxi processors (A10/A13/A20/A31 etc). Utilities include tools to: + . + - interact with the processors' lowlevel bootrom (AKA FEL mode). + - boot over the USB OTG port. + - compile and decompile the Allwinner binary hardware descriptions (FEX + files). + - display information about sunxi boot headers. --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/copyright +++ sunxi-tools-1.4.2+git20221128.530adf/debian/copyright @@ -0,0 +1,152 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: sunxi-tools +Upstream-Contact: Alejandro Mery + linux-sunxi@googlegroups.com +Source: git://github.com/linux-sunxi/sunxi-tools.git + +Files: adb-devprobe.sh + fel-gpio +Copyright: 2012,2013 Henrik Nordstrom +License: Expat + +Files: README.md LICENSE.md + .gitignore + .travis.yml .github/workflows/build_check.yml + Makefile autoversion.sh find-arm-gcc.sh + boot_head.S boot_head.lds + fel-sdboot.S fel-sdboot.lds bin/fel-sdboot.sunxi + jtag-loop.c jtag-loop.S jtag-loop.lds bin/jtag-loop.sunxi + bootinfo.c + common.h + fel.c fel_lib.c fel_lib.h + fel-remotefunc-compiler.rb + fel-spiflash.c fel-spiflash.h + fexc.c fexc.h + nand-common.h + nand-part-a10.h + nand-part-a20.h + nand-part.c + nand-part-main.c + phoenix_info.c + pio.c + progress.c progress.h + uart0-helloworld-sdboot.c uart0-helloworld-sdboot.lds bin/uart0-helloworld-sdboot.sunxi + script.c script.h + script_bin.c script_bin.h + script_fex.c script_fex.h + script_uboot.c script_uboot.h + soc_info.c soc_info.h + tests/fextest.sh tests/Makefile tests/test_all_fex.sh + tests/test_bin2fex_corner_cases.sh tests/test_fex2bin_corner_cases.sh + tests/unify-fex.c + thunks/README.md thunks/Makefile + thunks/clrsetbits.S thunks/clrsetbits.h + thunks/fel-to-spl-thunk.S thunks/fel-to-spl-thunk.h + thunks/memcpy.S thunks/memcpy.h + thunks/objdump_to_h.awk + thunks/readl_writel.S thunks/readl_writel.h + thunks/rmr-thunk.S thunks/rmr-thunk.h + thunks/sid_read_root.S thunks/sid_read_root.h + include/types.h include/list.h + bin/ramboot.uboot-sh bin/ramboot.scr + sunxi-fel.1 +Copyright: 2011,2012,2013 Henrik Nordstrom + 2012 Alejandro Mery + 2012 Jens Andersen + 2013 Patrick Wood + 2013 Pat Wood + 2012,2013 Patrick H Wood. + 2007-2012 Allwinner Technology Co., Ltd. + Copyright (C) 2015,2016 Bernhard Nortmann + Copyright (C) 2015,2016 Siarhei Siamashka + (C) Copyright 2013 Stefan Kristiansson + Copyright (C) 2018 by Andre Przywara +License: GPL-2+ + +Files: fel-remotefunc-spi-data-transfer.c + fel-remotefunc-spi-data-transfer.h +Copyright: Copyright © 2016 Siarhei Siamashka +License: Expat + +Files: fit_image.c + fit_image.h +Copyright: Copyright (C) 2018-2020 Andre Przywara +License: GPL-2 + +Files: meminfo.c +Copyright: 2012 Floris Bos + 2014 Luc Verhaegen +License: GPL-2+ + +Files: script_extractor.c +Copyright: 2015 Olliver Schinagl +License: GPL-2+ + +Files: nand-image-builder.c +Copyright: Copyright © 2011 Parrot S.A. + Copyright © 2016 NextThing Co. + Copyright © 2016 Free Electrons +License: GPL-2 + +Files: include/portable_endian.h +Copyright: `Mathias Panzenböck +License: public-domain + I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like. + In case there are jurisdictions that don't support putting things in the public domain you can also consider it to + be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it + an example on how to get the endian conversion functions on different platforms. + +Files: debian/* +Copyright: 2014 Ian Campbell + 2015-2023 Ian Campbell +License: GPL-2+ + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +License: GPL-2 + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License version 2 as published by + the Free Software Foundation. + . + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + . + You should have received a copy of the GNU General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + +License: GPL-2+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License version + 2 can be found in `/usr/share/common-licenses/GPL-2'. --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/fex2bin.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/fex2bin.1 @@ -0,0 +1 @@ +.so man1/sunxi-fexc.1 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/lintian-overrides +++ sunxi-tools-1.4.2+git20221128.530adf/debian/lintian-overrides @@ -0,0 +1,2 @@ +# Appstream not relevant for sunxi-tools +sunxi-tools: appstream-metadata-missing-modalias-provide match rule usb:v1F3ApEFE8d* [lib/udev/rules.d/60-sunxi-tools.rules] --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/manpages +++ sunxi-tools-1.4.2+git20221128.530adf/debian/manpages @@ -0,0 +1,6 @@ +debian/sunxi-fexc.1 +debian/fex2bin.1 +debian/bin2fex.1 +debian/sunxi-bootinfo.1 +debian/sunxi-nand-part.1 +debian/sunxi-pio.1 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/rules +++ sunxi-tools-1.4.2+git20221128.530adf/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/dpkg/architecture.mk + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_build: + # These are small shims loaded directly into raw target ram without an OS. + echo 'blhc: ignore-line-regexp: arm-none-eabi-gcc .* -o (fel-sdboot|jtag-loop|uart0-helloworld-sdboot)\.elf .*' + + $(MAKE) -C thunks CROSS_COMPILE=arm-none-eabi- + dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" tools + + mkimage -A arm -T script -d bin/ramboot.uboot-sh ramboot.scr + $(MAKE) CROSS_COMPILE=arm-none-eabi- binfiles + +override_dh_auto_install: PKG := debian/sunxi-tools +override_dh_auto_install: + $(MAKE) install-tools DESTDIR=$(CURDIR)/$(PKG) PREFIX=/usr + + install -m0644 ramboot.scr $(PKG)/usr/share/sunxi-tools/ramboot.scr + install -m0644 fel-sdboot.sunxi $(PKG)/usr/share/sunxi-tools/fel-sdboot.sunxi + install -m0644 jtag-loop.sunxi $(PKG)/usr/share/sunxi-tools/jtag-loop.sunxi + install -m0644 uart0-helloworld-sdboot.sunxi $(PKG)/usr/share/sunxi-tools/uart0-helloworld-sdboot.sunxi --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/source/format +++ sunxi-tools-1.4.2+git20221128.530adf/debian/source/format @@ -0,0 +1 @@ +1.0 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-bootinfo.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-bootinfo.1 @@ -0,0 +1,24 @@ +\" Manpage for sunxi-bootinfo +.\" Copyright (C) 2023 by Ian Campbell +.TH sunxi-bootinfo 1 "28 Jan 2023" "1.4.2" "sunxi-bootinfo man page" +.SH NAME +sunxi-bootinfo \- dump information from Allwinner boot files +.SH SYNOPSIS +.B sunxi-bootinfo +.RB [ +.I +.RB ] +.br +.SH DESCRIPTION +.B sunxi-bootinfo +dumps information found in Allwinner +.B boot0 +and +.B boot1 +files. +.br +.SH SEE ALSO +.UR https://linux-sunxi.org/Sunxi-tools#sunxi-bootinfo +.UE +.SH AUTHOR +Ian Campbell --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-fexc.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-fexc.1 @@ -0,0 +1,71 @@ +\" Manpage for sunxi-fexc +.\" Copyright (C) 2023 by Ian Campbell +.TH sunxi-fexc 1 "28 Jan 2023" "1.4.2" "sunxi-fexc man page" +.SH NAME +sunxi-fexc \- convert between .fex files and the binary representation +.SH SYNOPSIS +.B sunxi-fexc +.RB [ +.RB -vq +.RB ] +.RB [ +.RB -I +.I +.RB ] +.RB [ +.RB -O +.I +.RB ] +.RB [ +.I +.RB [ +.I +.RB ]] +.br +.B fex2bin +.RB [ +.I -vq +.RB ] +.RB [ +.I +.RB [ +.I +.RB ]] +.br +.B bin2fex +.RB [ +.I -vq +.RB ] +.RB [ +.I +.RB [ +.I +.RB ]] +.br +.SH DESCRIPTION +.B sunxi-fexc +converts back and forth between +.B .fex +files and the +.B script.bin +binary representation. +.sp +The aliases +.B bin2fex +and +.B fex2bin +convert a +.B script.bin +to a +.B .fex +file and a +.B .fex +file to a +.B script.bin +file respectively. +.br +.SH SEE ALSO +.UR https://linux-sunxi.org/Sunxi-tools#sunxi-fexc_and_wrappers +.UE +.SH AUTHOR +Ian Campbell --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-nand-part.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-nand-part.1 @@ -0,0 +1,46 @@ +\" Manpage for sunxi-nand-part +.\" Copyright (C) 2023 by Ian Campbell +.TH sunxi-nand-part 1 "28 Jan 2023" "1.4.2" "sunxi-nand-part man page" +.SH NAME +sunxi-nand-part \- repartition the internal NAND on sunxi devices +.SH SYNOPSIS +.B sunxi-nand-part +.RB [ +.RB -f +.I a10|a20 +.RB ] +.I nand-device +.br +.B sunxi-nand-part +.I nand-device +.I 'name2 len2 [usertype2]' +.RB [ +.I 'name3 len3 [usertype3]' +.RB ] +.RB ... +.br +.B sunxi-nand-part +.RB [ +.RB -f +.I a10|a20 +.RB ] +.I nand-device +.I start1 'name1 len1 [usertype1]' +.RB [ +.I 'name2 len2 [usertype2]' +.RB ] +.RB ... +.br +.SH DESCRIPTION +.B sunxi-nand-part +can be used to repartition the internal NAND on sunxi devices +.B boot0 +and +.B boot1 +files. +.br +.SH SEE ALSO +.UR https://linux-sunxi.org/Sunxi-tools#sunxi-nand-part +.UE +.SH AUTHOR +Ian Campbell --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-pio.1 +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-pio.1 @@ -0,0 +1,73 @@ +\" Manpage for sunxi-pio +.\" Copyright (C) 2023 by Ian Campbell +.TH sunxi-pio 1 "28 Jan 2023" "1.4.2" "sunxi-pio man page" +.SH NAME +sunxi-pio \- manipulate PIO (GPIO and pinmux) on sunxi devices +.SH SYNOPSIS +.B sunxi-pio +.RB -m|-i +.I input +.RB [ +.RB -o +.I output +.RB ] +.I pin +.SH DESCRIPTION +.B sunxi-pio +manipulates PIO (GPIO and pinmux) on sunxi devices +.SH OPTIONS +.B \-m +.RS 4 +mmap - read pin state from system +.RE +.sp +.B \-i +.RS 4 +read pin state from file +.RE +.sp +.B \-o +.RS 4 +save pin state data to file +.RE +.sp +.B print +.RS 4 +Show all pins +.RE +.sp +.B Pxx +.RS 4 +Show pin +.RE +.sp +.B Pxx +.RS 4 +Configure pin +.RE +.sp +.B Pxx=data,drive +.RS 4 +Configure GPIO output +.RE +.sp +.B Pxx*count +.RS 4 +Oscillate GPIO output (mmap mode only) +.RE +.sp +.B Pxx?pull +.RS 4 +Configure GPIO input +.RE +.sp +.B clean +.RS 4 +Clean input pins +.RE +.sp +.SH SEE ALSO +.UR https://linux-sunxi.org/Sunxi-tools#sunxi-pio +.UE +.SH AUTHOR +Ian Campbell --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-tools.dirs +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-tools.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/sunxi-tools --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-tools.docs +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-tools.docs @@ -0,0 +1 @@ +README.md --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-tools.postinst +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-tools.postinst @@ -0,0 +1,29 @@ +#! /bin/sh + +set -e + +case "$1" in + configure) + + addgroup --system --quiet sunxi-fel + if which udevadm >/dev/null 2>&1; then + udevadm trigger --subsystem-match usb --attr-match=idVendor=1f3a --attr-match=idProduct=efe8 || true + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + + ;; +esac + +#DEBHELPER# + +exit 0 --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/sunxi-tools.udev +++ sunxi-tools-1.4.2+git20221128.530adf/debian/sunxi-tools.udev @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="efe8", GROUP="sunxi-fel" --- sunxi-tools-1.4.2+git20221128.530adf.orig/debian/watch +++ sunxi-tools-1.4.2+git20221128.530adf/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+dfsg$//,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/sunxi-tools-$1\.tar\.gz/ \ + https://github.com/linux-sunxi/sunxi-tools/tags .*/v?(\d\S*)\.tar\.gz --- sunxi-tools-1.4.2+git20221128.530adf.orig/tests/Makefile +++ sunxi-tools-1.4.2+git20221128.530adf/tests/Makefile @@ -19,7 +19,7 @@ BOARDS_URL := https://github.com/linux-sunxi/sunxi-boards/archive/master.zip BOARDS_DIR := sunxi-boards -check: check_all_fex coverage +check: coverage # Conversion cycle (.fex -> .bin -> .fex) test for all sunxi-boards check_all_fex: $(BOARDS_DIR)/README unify-fex --- sunxi-tools-1.4.2+git20221128.530adf.orig/tests/test_bin2fex_corner_cases.sh +++ sunxi-tools-1.4.2+git20221128.530adf/tests/test_bin2fex_corner_cases.sh @@ -22,6 +22,11 @@ # use sunxi-fexc in "fex2bin" mode, testing explicit parameters at the same time FEX2BIN="../sunxi-fexc -v -q -I fex -O bin" +if [ ! -e "${TESTFILE}" } ; then + echo >&2 "Skipping $(basename $0), no board files found" + exit 0 +fi + ${FEX2BIN} ${TESTFILE}.fex ${TESTFILE}.bin # have bin2fex explicitly read /dev/stdin, to force use of fexc.c's "read_all()" cat ${TESTFILE}.bin | ${BIN2FEX} /dev/stdin > /dev/null