kinect-audio-setup.git
8 years agoMerge tag 'v0.4' into debian
Antonio Ospite [Thu, 7 Jan 2016 16:36:24 +0000 (17:36 +0100)]
Merge tag 'v0.4' into debian

Release v0.4

8 years agoDrop the Changelog file and use a NEWS file v0.4
Antonio Ospite [Tue, 5 Jan 2016 21:29:52 +0000 (22:29 +0100)]
Drop the Changelog file and use a NEWS file

The NEWS file is intended for humans, all the other species can look at
the git history.

There is no need to keep a detailed Changelog around which is the exact
copy of the git history anyways.

8 years agokinect_upload_fw: detach possible kernel drivers
Antonio Ospite [Tue, 5 Jan 2016 22:43:04 +0000 (23:43 +0100)]
kinect_upload_fw: detach possible kernel drivers

8 years agokinect_upload_fw: make libusb initialization more robust
Antonio Ospite [Tue, 5 Jan 2016 22:41:07 +0000 (23:41 +0100)]
kinect_upload_fw: make libusb initialization more robust

Check the return values of all the libusb functions.

Also return more sensible values when ret is not immediately useful.

8 years agokinect_upload_fw: return -errno when fopen fails
Antonio Ospite [Tue, 5 Jan 2016 22:25:43 +0000 (23:25 +0100)]
kinect_upload_fw: return -errno when fopen fails

This way all the error paths return negative codes.

8 years agokinect_upload_fw: some cosmetic changes
Antonio Ospite [Tue, 5 Jan 2016 22:20:36 +0000 (23:20 +0100)]
kinect_upload_fw: some cosmetic changes

Adjust the code style a little bit, no functional changes.

8 years agokinect_upload_fw: rename "res" to "ret" in main()
Antonio Ospite [Tue, 5 Jan 2016 22:15:00 +0000 (23:15 +0100)]
kinect_upload_fw: rename "res" to "ret" in main()

For me it's more a return value than the actual result of some operation.

8 years agokinect_upload_fw: factor out an upload_firmware function
Antonio Ospite [Tue, 5 Jan 2016 22:11:53 +0000 (23:11 +0100)]
kinect_upload_fw: factor out an upload_firmware function

8 years agokinect_upload_fw: fix some warnings from clang -Weverything
Antonio Ospite [Tue, 5 Jan 2016 22:02:53 +0000 (23:02 +0100)]
kinect_upload_fw: fix some warnings from clang -Weverything

8 years agokinect_upload_fw: Makefile: don't enable unsupported options with clang
Antonio Ospite [Tue, 5 Jan 2016 22:02:14 +0000 (23:02 +0100)]
kinect_upload_fw: Makefile: don't enable unsupported options with clang

8 years agokinect_upload_fw: check the return value of get_first_reply() and get_reply()
Antonio Ospite [Tue, 5 Jan 2016 22:01:07 +0000 (23:01 +0100)]
kinect_upload_fw: check the return value of get_first_reply() and get_reply()

8 years agokinect_upload_fw: release the interface when exiting
Antonio Ospite [Tue, 5 Jan 2016 20:54:05 +0000 (21:54 +0100)]
kinect_upload_fw: release the interface when exiting

8 years agokinect_upload_fw: use symbolic constants instead of magic values
Antonio Ospite [Tue, 5 Jan 2016 20:39:48 +0000 (21:39 +0100)]
kinect_upload_fw: use symbolic constants instead of magic values

8 years agokinect_upload_fw: initialize current_configuration before libusb_get_configuration()
Antonio Ospite [Tue, 5 Jan 2016 19:08:18 +0000 (20:08 +0100)]
kinect_upload_fw: initialize current_configuration before libusb_get_configuration()

Initialize the variable as suggested by http://libusb.sourceforge.net/api-1.0/caveats.html

10 years agodebian/po: add Swedish translation of debconf templates
Antonio Ospite [Mon, 17 Nov 2014 13:52:47 +0000 (14:52 +0100)]
debian/po: add Swedish translation of debconf templates

Closes: #769869
Thanks: Martin Bagge, Anders Jonsson

10 years agodebian/copyright: use GPL-2+ as a fallback license
Antonio Ospite [Tue, 4 Nov 2014 23:36:42 +0000 (00:36 +0100)]
debian/copyright: use GPL-2+ as a fallback license

This fixes the file-without-copyright-information lintian warning

10 years agodebian/copyright: split the license texts from file attribution
Antonio Ospite [Tue, 4 Nov 2014 23:42:01 +0000 (00:42 +0100)]
debian/copyright: split the license texts from file attribution

10 years agodebian/po: add Dutch translation of debconf templates
Antonio Ospite [Mon, 3 Nov 2014 13:51:17 +0000 (14:51 +0100)]
debian/po: add Dutch translation of debconf templates

Closes: #767491
Thanks: Frans Spiesschaert

10 years agodebian/po: add Turkish translation of debconf templates
Antonio Ospite [Wed, 27 Aug 2014 12:31:43 +0000 (14:31 +0200)]
debian/po: add Turkish translation of debconf templates

Closes: #757871
Thanks: Mert Dirik

10 years agodebian/changelog: release package version 0.3-2 debian/0.3-2
Antonio Ospite [Thu, 19 Jun 2014 11:01:03 +0000 (13:01 +0200)]
debian/changelog: release package version 0.3-2

Git-Dch: ignore

10 years agoMerge branch 'translations' into debian
Antonio Ospite [Thu, 19 Jun 2014 10:03:42 +0000 (12:03 +0200)]
Merge branch 'translations' into debian

10 years agodebian/po: add Czech translation of debconf templates
Antonio Ospite [Thu, 19 Jun 2014 09:59:54 +0000 (11:59 +0200)]
debian/po: add Czech translation of debconf templates

Closes: #751415
Thanks: Michal Šimůnek

10 years agodebian/po: reformat and cleanup translations
Antonio Ospite [Thu, 19 Jun 2014 09:57:52 +0000 (11:57 +0200)]
debian/po: reformat and cleanup translations

Thanks: Christian PERRIER

10 years agodebian/po: add Japanese translation of debconf templates
Antonio Ospite [Tue, 4 Mar 2014 10:59:26 +0000 (11:59 +0100)]
debian/po: add Japanese translation of debconf templates

Closes: #740713
Thanks: victory

10 years agodebian/po: add Polish translation of debconf templates
Antonio Ospite [Mon, 3 Mar 2014 21:54:28 +0000 (22:54 +0100)]
debian/po: add Polish translation of debconf templates

Closes: #740629
Thanks: Michał Kułach

10 years agodebian/po: add Spanish translation of debconf templates
Antonio Ospite [Mon, 3 Mar 2014 15:19:54 +0000 (16:19 +0100)]
debian/po: add Spanish translation of debconf templates

Closes: #740570
Thanks: Matías A. Bellone

10 years agodebian/po: update templates.pot
Antonio Ospite [Mon, 3 Mar 2014 15:16:55 +0000 (16:16 +0100)]
debian/po: update templates.pot

Add the templates.pot from which the *.po files have been created.

10 years agodebian/po/pt.po: remove the old untranslated strings
Antonio Ospite [Tue, 25 Feb 2014 14:31:13 +0000 (15:31 +0100)]
debian/po/pt.po: remove the old untranslated strings

10 years agodebian/po: update Italian translation fo the debconf templates
Antonio Ospite [Tue, 25 Feb 2014 12:10:32 +0000 (13:10 +0100)]
debian/po: update Italian translation fo the debconf templates

Closes: #740075

10 years agodebian/po: add German translation of debconf templates
Antonio Ospite [Tue, 25 Feb 2014 11:37:39 +0000 (12:37 +0100)]
debian/po: add German translation of debconf templates

Closes: #739948
Thanks: Stephan Beck, Christian PERRIER

10 years agodebian/po: add French translation of debconf templates
Antonio Ospite [Tue, 25 Feb 2014 11:32:21 +0000 (12:32 +0100)]
debian/po: add French translation of debconf templates

Closes: #739870
Thanks: Julien Patriarca

10 years agodebian/po: add Danish translation of debconf templates
Antonio Ospite [Tue, 25 Feb 2014 11:30:03 +0000 (12:30 +0100)]
debian/po: add Danish translation of debconf templates

Closes: #739747
Thanks: Joe Hansen

10 years agodebian/po: add Russian translation of debconf templates
Antonio Ospite [Tue, 25 Feb 2014 11:27:59 +0000 (12:27 +0100)]
debian/po: add Russian translation of debconf templates

Closes: #739421
Thanks: Yuri Kozlov

10 years agodebian/po: update Portuguese translation of debconf templates
Antonio Ospite [Tue, 25 Feb 2014 11:23:05 +0000 (12:23 +0100)]
debian/po: update Portuguese translation of debconf templates

Closes: #733259
Thanks: Américo Monteiro

10 years agodebian: update Maintainer email address
Antonio Ospite [Tue, 25 Feb 2014 14:23:18 +0000 (15:23 +0100)]
debian: update Maintainer email address

10 years agodebian/{control,templates}: use the text reviewed by debian-l10n
Antonio Ospite [Thu, 9 Jan 2014 13:48:31 +0000 (14:48 +0100)]
debian/{control,templates}: use the text reviewed by debian-l10n

Closes: #733300
Thanks: Christian PERRIER and Justin B Rye

10 years agodebian/po/pt.po: fix a typo in a comment s/Translalion/Translation/
Antonio Ospite [Sat, 28 Dec 2013 11:41:01 +0000 (12:41 +0100)]
debian/po/pt.po: fix a typo in a comment s/Translalion/Translation/

10 years agodebian/po: add Portuguese translation for debconf messages
Antonio Ospite [Sat, 28 Dec 2013 11:36:52 +0000 (12:36 +0100)]
debian/po: add Portuguese translation for debconf messages

Closes: #733259
Thanks: Américo Monteiro

10 years agodebian/changelog: prepare for 0.3-2
Antonio Ospite [Wed, 11 Dec 2013 11:43:12 +0000 (12:43 +0100)]
debian/changelog: prepare for 0.3-2

Git-Dch: ignore

10 years agodebian/patches: add a patch to make kinect_upload_fw work with more devices
Antonio Ospite [Wed, 11 Dec 2013 11:37:19 +0000 (12:37 +0100)]
debian/patches: add a patch to make kinect_upload_fw work with more devices

10 years agokinect_upload_fw: fix setting configuration for some devices
Kristof Robot [Sun, 8 Dec 2013 14:46:50 +0000 (15:46 +0100)]
kinect_upload_fw: fix setting configuration for some devices

On some Kinect devices where the desired configuration is already the
currently active one libusb_set_configuration() fails in some way
causing the subsequent bulk transfer to fail, and the program to exit,
with this message:

  libusbx: error [op_set_configuration] failed, error -1 errno 110
  About to send: 09 20 02 06 01 00 00 00 60 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00
  libusbx: error [submit_bulk_transfer] submiturb failed error -1 errno=2
  Error: res: -1    transferred: 0 (expected 24)

Only set the desired configuration if it hasn't been set already.
This prevents the problems from above.

Do the configuration check as illustrated in
http://libusbx.sourceforge.net/api-1.0/caveats.html that is by checking
that the current configuration is still the desired one after claiming
the device.

10 years agodebian/changelog: refresh for 0.3-1 once again debian/0.3-1
Antonio Ospite [Fri, 6 Dec 2013 22:30:12 +0000 (23:30 +0100)]
debian/changelog: refresh for 0.3-1 once again

Git-Dch: ignore

10 years agodebian/copyright: update copyright years for the package files
Antonio Ospite [Fri, 6 Dec 2013 22:28:50 +0000 (23:28 +0100)]
debian/copyright: update copyright years for the package files

10 years agodebian/changelog: refresh for 0.3-1
Antonio Ospite [Fri, 6 Dec 2013 21:26:54 +0000 (22:26 +0100)]
debian/changelog: refresh for 0.3-1

Git-Dch: ignore

10 years agodebian/control: reformatting done by cme
Antonio Ospite [Fri, 6 Dec 2013 20:16:46 +0000 (21:16 +0100)]
debian/control: reformatting done by cme

cme also added the XS-Autobuild field, its value could be changed to yes in
future, according to:
http://www.debian.org/doc/manuals/developers-reference/pkgs.html#non-free-buildd

10 years agodebian/changelog: refresh changelog for 0.3-1
Antonio Ospite [Fri, 6 Dec 2013 17:03:42 +0000 (18:03 +0100)]
debian/changelog: refresh changelog for 0.3-1

Git-Dch: ignore

10 years agodebian/postrm: do not try to remove /lib/firmware/
Antonio Ospite [Fri, 6 Dec 2013 16:59:54 +0000 (17:59 +0100)]
debian/postrm: do not try to remove /lib/firmware/

/lib/firmware/ is owned by udev, so it's not of our business to remove
it; actually with recent piuparts it's not even there anymore when the
package is purged as udev is removed before kinect-audio-setup.

10 years agodebian: remove kinect-audio-setup.lintian-overrides
Antonio Ospite [Fri, 6 Dec 2013 16:57:49 +0000 (17:57 +0100)]
debian: remove kinect-audio-setup.lintian-overrides

The override about the empty lib/firmware/kinect/ is not needed anymore
as the upstream installation does not create it beforehand.

10 years agoMerge tag 'v0.3' into debian
Antonio Ospite [Fri, 6 Dec 2013 16:52:09 +0000 (17:52 +0100)]
Merge tag 'v0.3' into debian

Release v0.3

10 years agoChangeLog: refresh for v0.3 v0.3
Antonio Ospite [Fri, 6 Dec 2013 16:46:39 +0000 (17:46 +0100)]
ChangeLog: refresh for v0.3

10 years agoMakefile: remove a trailing space
Antonio Ospite [Fri, 6 Dec 2013 16:45:36 +0000 (17:45 +0100)]
Makefile: remove a trailing space

10 years agoMakefile: don't create the empty dir /lib/firmware/kinect
Antonio Ospite [Fri, 6 Dec 2013 16:43:22 +0000 (17:43 +0100)]
Makefile: don't create the empty dir /lib/firmware/kinect

Let kinect_fetch_fw create the frmware destination dir when necessary.

10 years agokinect_upload_fw/Makefile: fix double spacing
Antonio Ospite [Fri, 6 Dec 2013 16:42:43 +0000 (17:42 +0100)]
kinect_upload_fw/Makefile: fix double spacing

Remove a double space before an assignment.

10 years agokinect_upload_fw/endian.c: fix warning and rename a function
Antonio Ospite [Fri, 6 Dec 2013 16:36:12 +0000 (17:36 +0100)]
kinect_upload_fw/endian.c: fix warning and rename a function

Remove the bigend() function, it is never used and causes a compiler
warning:

  endian.c:10:12: warning: ‘bigend’ defined but not used [-Wunused-function]
   static int bigend(void) {

Also rename the litend() function to little_endian(), there is no need
to use a short name in this case.

10 years agodebian/changelog: refresh entries for 0.2-3
Antonio Ospite [Tue, 19 Nov 2013 16:50:42 +0000 (17:50 +0100)]
debian/changelog: refresh entries for 0.2-3

10 years agodebian/po/it.po: add Italian translation for the debconf dialogs
Antonio Ospite [Tue, 19 Nov 2013 16:44:35 +0000 (17:44 +0100)]
debian/po/it.po: add Italian translation for the debconf dialogs

10 years agodebian/po/templates.pot: fill in some info in the header
Antonio Ospite [Tue, 19 Nov 2013 16:43:51 +0000 (17:43 +0100)]
debian/po/templates.pot: fill in some info in the header

10 years agodebian/changelog: prepare for 0.2-3
Antonio Ospite [Tue, 19 Nov 2013 15:17:54 +0000 (16:17 +0100)]
debian/changelog: prepare for 0.2-3

Git-Dch: ignore

10 years agoREADME: reword and re-indent some paragraphs
Antonio Ospite [Tue, 19 Nov 2013 15:16:18 +0000 (16:16 +0100)]
README: reword and re-indent some paragraphs

10 years agodebian/control: fix short and long descriptions
Antonio Ospite [Tue, 19 Nov 2013 15:13:47 +0000 (16:13 +0100)]
debian/control: fix short and long descriptions

Short description should be a noun phrase.
Also reword and re-indent the long description.

10 years agodebian/rules: remove some unneeded comments
Antonio Ospite [Tue, 19 Nov 2013 15:06:28 +0000 (16:06 +0100)]
debian/rules: remove some unneeded comments

10 years agoMakefile: misc fixes
Antonio Ospite [Tue, 19 Nov 2013 15:02:39 +0000 (16:02 +0100)]
Makefile: misc fixes

Use $(MAKE) for recursive invocations, fix a typo s/prare/prepare/, and
fix wording in a comment.

10 years agodebian/watch: add a watch file
Antonio Ospite [Tue, 19 Nov 2013 14:59:43 +0000 (15:59 +0100)]
debian/watch: add a watch file

10 years agodebian/copyright: update to Copyright-Format 1.0
Antonio Ospite [Tue, 19 Nov 2013 14:56:39 +0000 (15:56 +0100)]
debian/copyright: update to Copyright-Format 1.0

10 years agodebian/control: bump Standards-Version to 3.9.5
Antonio Ospite [Tue, 19 Nov 2013 14:54:54 +0000 (15:54 +0100)]
debian/control: bump Standards-Version to 3.9.5

10 years agodebian/control: specify the debian package branch in Vcs-Git
Antonio Ospite [Tue, 19 Nov 2013 14:54:12 +0000 (15:54 +0100)]
debian/control: specify the debian package branch in Vcs-Git

This is what is suggested in
http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-VCS-fields

10 years agodebian/gbp.conf: explicitly disable pristine-tar
Antonio Ospite [Tue, 19 Nov 2013 14:53:09 +0000 (15:53 +0100)]
debian/gbp.conf: explicitly disable pristine-tar

This fixes build when users have pristine-tar set to True in the global
configuration file.

10 years agodebian/control: switch to debhelper >= 9
Antonio Ospite [Tue, 19 Nov 2013 14:52:05 +0000 (15:52 +0100)]
debian/control: switch to debhelper >= 9

10 years agodebian/install: drop debian/lintian/kinect-audio-setup
Antonio Ospite [Tue, 19 Nov 2013 14:50:50 +0000 (15:50 +0100)]
debian/install: drop debian/lintian/kinect-audio-setup

Now that the override is in debian/kinect-audio-setup.lintian-overrides
dh_lintian should pick it up.

10 years agodebian/kinect-audio-setup.lintian-overrides: move from debian/lintian
Antonio Ospite [Tue, 19 Nov 2013 14:46:20 +0000 (15:46 +0100)]
debian/kinect-audio-setup.lintian-overrides: move from debian/lintian

Also add a comment describing the reason for the override.

12 years agokinect_upload_fw: initialize 'transferred' before USB transfers
Antonio Ospite [Thu, 23 Feb 2012 21:48:22 +0000 (22:48 +0100)]
kinect_upload_fw: initialize 'transferred' before USB transfers

This makes sure the subsequent error messages print a sane value when
libusb fails without touching the variable.

12 years agoREADME: acknowledge Steven Toth's sponsorship
Antonio Ospite [Fri, 3 Feb 2012 12:12:01 +0000 (13:12 +0100)]
README: acknowledge Steven Toth's sponsorship

12 years agodebian: release package version 0.2-2 debian/0.2-2
Antonio Ospite [Fri, 3 Feb 2012 12:03:04 +0000 (13:03 +0100)]
debian: release package version 0.2-2

Git-Dch: Ignore

12 years agodebian: use debconf to ask if the user accepts the MSK4W EULA
Antonio Ospite [Wed, 28 Dec 2011 12:47:23 +0000 (13:47 +0100)]
debian: use debconf to ask if the user accepts the MSK4W EULA

12 years agodebian: start version 0.2-2
Antonio Ospite [Wed, 28 Dec 2011 11:30:32 +0000 (12:30 +0100)]
debian: start version 0.2-2

12 years agodebian: depend on p7zip-full >= 9.20
Antonio Ospite [Wed, 28 Dec 2011 11:22:56 +0000 (12:22 +0100)]
debian: depend on p7zip-full >= 9.20

Earlier versions do not handle .msi files correctly.

12 years agokinect_fetch_fw: mention that p7zip-full >= 9.20 is needed
Antonio Ospite [Wed, 28 Dec 2011 11:17:52 +0000 (12:17 +0100)]
kinect_fetch_fw: mention that p7zip-full >= 9.20 is needed

With earlier versions the firmware cannot be extracted from the .msi
file.

12 years agoREADME: mention reloading udev rules
Antonio Ospite [Wed, 28 Dec 2011 11:14:06 +0000 (12:14 +0100)]
README: mention reloading udev rules

After the firmware has been downloaded and the udev rules installed,
udevd must be told to reload the rules to actually handle the Kinect
audio device.

12 years agodebian/changelog: refresh version 0.2-1 debian/0.2-1
Antonio Ospite [Sun, 27 Nov 2011 12:31:29 +0000 (13:31 +0100)]
debian/changelog: refresh version 0.2-1

12 years agodebian/control: tell where the UAC firmare if downloaded from
Antonio Ospite [Sun, 27 Nov 2011 12:29:04 +0000 (13:29 +0100)]
debian/control: tell where the UAC firmare if downloaded from

12 years agodebian: fix debian-changelog-line-too-long lintian warnings
Antonio Ospite [Sun, 27 Nov 2011 11:37:09 +0000 (12:37 +0100)]
debian: fix debian-changelog-line-too-long lintian warnings

W: kinect-audio-setup: debian-changelog-line-too-long line 2
W: kinect-audio-setup: debian-changelog-line-too-long line 7

12 years agodebian: import upstream version v0.2
Antonio Ospite [Sun, 27 Nov 2011 11:32:43 +0000 (12:32 +0100)]
debian: import upstream version v0.2

12 years agoMerge branch 'master' into debian
Antonio Ospite [Sun, 27 Nov 2011 11:25:05 +0000 (12:25 +0100)]
Merge branch 'master' into debian

12 years agoAdd ChangeLog for v0.2 v0.2
Antonio Ospite [Sun, 27 Nov 2011 11:16:20 +0000 (12:16 +0100)]
Add ChangeLog for v0.2

12 years agokinect_fetch_fw: tell where we are getting the firmware from
Antonio Ospite [Sun, 27 Nov 2011 09:23:30 +0000 (10:23 +0100)]
kinect_fetch_fw: tell where we are getting the firmware from

12 years agoREADME: tell where we are getting the actual firmware from
Antonio Ospite [Sun, 27 Nov 2011 09:11:51 +0000 (10:11 +0100)]
README: tell where we are getting the actual firmware from

12 years agoREADME: fix a typo and add some clarifications
Antonio Ospite [Sun, 27 Nov 2011 09:10:28 +0000 (10:10 +0100)]
README: fix a typo and add some clarifications

12 years agokinect_fetch_fw: make the script less verbose when invoking 7z
Antonio Ospite [Sun, 27 Nov 2011 08:59:04 +0000 (09:59 +0100)]
kinect_fetch_fw: make the script less verbose when invoking 7z

12 years agokinect_fetch_fw: download the latest KinectSDK-v1.0-beta2-x86.msi
Antonio Ospite [Sun, 27 Nov 2011 08:46:38 +0000 (09:46 +0100)]
kinect_fetch_fw: download the latest KinectSDK-v1.0-beta2-x86.msi

12 years agokinect_fetch_fw: mention wget in the internal documentation
Antonio Ospite [Sun, 27 Nov 2011 08:45:54 +0000 (09:45 +0100)]
kinect_fetch_fw: mention wget in the internal documentation

12 years agokinect_upload_fw: specify libraries after objects in the linking command
Antonio Ospite [Sat, 26 Nov 2011 23:34:57 +0000 (00:34 +0100)]
kinect_upload_fw: specify libraries after objects in the linking command

When some options, like -Wl,--as-needed, are passed to the compiler (and
then to the liker) the order of linking options becomes important:
libraries must be specified after the objects in the linking command.

The implicit rule used was more or less:
  kinect_upload_fw: kinect_upload_fw.o
      $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@

with LDFLAGS expanded before $^ (the objects); use LDLIBS to specify the
libraries instead, which is expanded after $^.

More details in
http://ao2.it/it/blog/2011/11/27/dont-mix-ldflags-and-ldlibs

13 years agoAdd info about building kinect_upload_fw for MS Windows
Antonio Ospite [Fri, 4 Nov 2011 23:10:30 +0000 (00:10 +0100)]
Add info about building kinect_upload_fw for MS Windows

13 years agoUpdate .gitignore
Antonio Ospite [Fri, 4 Nov 2011 22:59:19 +0000 (23:59 +0100)]
Update .gitignore

Add endian and endian.h, add any *.o file and even *.exe ones as we are
going to add instructions about how to build kinect_upload_fw on MS
Windows too.

13 years agokinect_upload_fw: fix reading the firmware file on Windows
Antonio Ospite [Fri, 21 Oct 2011 20:19:37 +0000 (22:19 +0200)]
kinect_upload_fw: fix reading the firmware file on Windows

In MS Windows fread() behaves differently than on UNIX systems when
reading binary files if we do not specify "b" in the mode when opening
the file.

Quoting FOPEN(3) man page:

 ... the 'b' is ignored on all POSIX conforming systems, including
 Linux. (Other systems may treat text files and binary files
 differently, and adding the 'b' may be a good idea if you do I/O to a
 binary file and expect that your program may be ported to non-UNIX
 environments.)

13 years agokinect_upload_fw: fix a mingw32 compilation error
Antonio Ospite [Fri, 14 Oct 2011 19:57:12 +0000 (21:57 +0200)]
kinect_upload_fw: fix a mingw32 compilation error

When compiling with i586-mingw32msvci-g++ We get these errors:

kinect_upload_fw.c: In function ‘int main(int, char**)’:
kinect_upload_fw.c:236: error: jump to label ‘cleanup’
kinect_upload_fw.c:179: error:   from here
kinect_upload_fw.c:185: error:   crosses initialization of ‘uint32_t addr’
kinect_upload_fw.c:238: error: jump to label ‘fail_libusb_open’
kinect_upload_fw.c:155: error:   from here
kinect_upload_fw.c:185: error:   crosses initialization of ‘uint32_t addr’

Declaring and initializing a variable in the same statement after a goto
is allowed in C but not in C++; look at C++ specification Section 6.7
Paragraph 3.
(http://www.kuzbass.ru:8086/docs/isocpp/stmt.html#stmt.dcl)

Work around that by splitting 'addr' declaration and initialization.

13 years agokinect_upload_fw: fix generating endian.h before compiling kinect_upload_fw
Antonio Ospite [Thu, 13 Oct 2011 21:35:10 +0000 (23:35 +0200)]
kinect_upload_fw: fix generating endian.h before compiling kinect_upload_fw

Generate endian.h before compiling kinect_upload_fw, this is how it
should have been done from the start.

Until now the system-wide endian.h was being picked up instead, making
the whole compile-time-endian-detection mechanism useless; now we are
actually using it.

13 years agokinect_upload_fw: disable some compiler flags
Antonio Ospite [Thu, 13 Oct 2011 21:31:11 +0000 (23:31 +0200)]
kinect_upload_fw: disable some compiler flags

Disable some compiler flags to be more compatible with older setups:

  - vanilla libusb-1.0.8 makes compilation fail with -pedantic-errors

  - gcc versions older than 4.6 do not have -Wunused-but-set-variable

13 years agodebian: Initial debian packaging import debian/0.1-1
Antonio Ospite [Wed, 12 Oct 2011 11:02:39 +0000 (13:02 +0200)]
debian: Initial debian packaging import

13 years agoAdd ChangeLog for v0.1 v0.1
Antonio Ospite [Wed, 12 Oct 2011 10:13:34 +0000 (12:13 +0200)]
Add ChangeLog for v0.1

13 years agokinect_upload_fw: fix a couple of minor warnings from 'sparse'
Antonio Ospite [Thu, 6 Oct 2011 12:49:01 +0000 (14:49 +0200)]
kinect_upload_fw: fix a couple of minor warnings from 'sparse'

Sparse is a Semantic Parser for C, it gives these warnings on
kinect_upload_fw.c:

kinect_upload_fw.c:42:14: warning: symbol 'seq' was not declared. Should it be static?
kinect_upload_fw.c:149:26: warning: Using plain integer as NULL pointer