Ignore accidentally tracking xbboot build products. Do track
Makefiles that are not automatically generated. Fixing this makes
debian/clean.sh work again.
Mistakenly ignored files were detected by
git ls-files -i --exclude-standard
and un-ignored build products by
git ls-files -o --exclude-standard
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
It is probably worth spending the time to split them up with
multiple upstream tarballs, but for now, usbboot, xbboot, and so on
are in a single repository managed as a single project.
Teach debian/rules get-orig-source to build a single upstream tarball
with the entire source tree.
Include history of whole tree in the generated changelog.upstream.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
This firmware is not meant to be executed on the host machine, so
unset its executable bit. Noticed by lintian.
While at it, teach stage1 builds to recover from interrupted builds by
ensuring *stage1.bin are not present until all of the relevant
commands have been run.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Use git shortlog to generate a brief list of changes to put in
/usr/share/doc/xburst-tools/changelog.gz. This list is built
at source package generation time because it requires access to
the git repository. The commit ID corresponding to each upstream
release is extracted from debian/changelog since the repository
has no tags.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Bump the upstream version number since configure.ac changed. Add
a debian/source/included-binaries file so dpkg-source does not
misinterpret the included firmware as a mistake.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Document how to use ‘git archive’ to build a tarball from the
usbboot subdirectory of the source repository.
Repeated invocations of the get-orig-source target to fetch the
same commit will produce byte-for-byte identical results.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
The compiled firmware files are unrepresentable in a text diff.
Use the new source format with debian.tar.gz to fix this.
This will also make it easier to patch the upstream source if that
is ever needed in between versions.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
There is no mipsel cross-compiler packaged for Debian, so building
the firmware on arbitrary build machines is not possible.
So let packagers build firmware when generating the source package.
The built firmware is kept in the debian/ directory and then
copied verbatim to <staging directory>/usr/share/xburst-tools
at the appropriate time.
The commands to prepare the firmware are in a script named
debian/autogen.sh, which could be taught to do other things (such as
generate a changelog) later.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
This makes the packaging easier to read and modify.
Features added:
* runs ‘make’ with the -j option for a tiny speedup
* uses appropriate compiler flags even when run directly instead of
through dpkg-buildpackage
* after interrupting a partial build, there is no need any more
for (fake) root privileges to clean up
* after interrupting a partial build, ‘debian/rules clean’ will
work without running autoreconf again.
Features retained:
* ‘debian/rules -n <target>’ provides the list of commands used
to make that target.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Allow usbboot to be built on systems without a mipsel cross-compiler
by passing configure the --disable-firmware option.
Before using the resulting binary, one would need to grab the firmware
from another machine.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>