From 44b154f57870410374a8ffedc83122e85e8890a8 Mon Sep 17 00:00:00 2001 From: Larry Snizek Date: Fri, 16 Mar 2018 13:23:34 +0000 Subject: [PATCH 1/2] License update --- examples/AN00246_xua_example/LICENSE.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/AN00246_xua_example/LICENSE.txt b/examples/AN00246_xua_example/LICENSE.txt index 844e2bcc..82cfb860 100644 --- a/examples/AN00246_xua_example/LICENSE.txt +++ b/examples/AN00246_xua_example/LICENSE.txt @@ -132,4 +132,4 @@ This License shall be governed by and construed in accordance with English law a This License has been entered into on the date stated at the beginning of it. Schedule -XMOS lib_xua software +XMOS application note AN00246 software From c4a2b86c0dd1f4385dd704904a7e5f382b620973 Mon Sep 17 00:00:00 2001 From: Larry Snizek Date: Thu, 22 Mar 2018 14:48:45 +0000 Subject: [PATCH 2/2] xmosdfu: Linux and Raspberry Pi build instructions --- doc_dfu/building_xmos_dfu.rst | 31 +++++++++++++++++++++++++++---- doc_dfu/index.rst | 2 +- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/doc_dfu/building_xmos_dfu.rst b/doc_dfu/building_xmos_dfu.rst index ee3972ec..3ca54fdd 100644 --- a/doc_dfu/building_xmos_dfu.rst +++ b/doc_dfu/building_xmos_dfu.rst @@ -1,7 +1,7 @@ .. _usb_audiosec_building_xmos_dfu: -Building the XMOS DFU loader - macOS -==================================== +Building the XMOS DFU loader +============================ The XMOS DFU loader is provided as source as part of the USB Audio framework, located in lib_xua/host/xmosdfu. @@ -9,10 +9,33 @@ framework, located in lib_xua/host/xmosdfu. The loader is compiled using libusb, the code for the loader is contained in the file ``xmosdfu.cpp`` +macOS +----- + To build the loader a Makefile is provided, which can be run as follows: - ``make -f Makefile.OSX all`` + ``make -f Makefile.OSX64 all`` This Makefile contains the following: -.. literalinclude:: Makefile.OSX +.. literalinclude:: Makefile.OSX64 + +There is also a 32bit OS X makefile, ``Makefile.OSX32``. + +Linux +----- + +Similarly to macOS, there are two Linux makefiles provided, ``Makefile.Linux32`` and ``Makefile.Linux64``: + +.. literalinclude:: Makefile.Linux64 + +System-wide libusb is used. On Debian-derived systems this can be installed with: + + ``apt-get install libusb-1.0.0-dev`` + +Raspberry Pi +------------ + +A makefile is provided for Raspbian. libusb is required and can be installed using the ``apt-get`` command from previous Linux section. + +.. literalinclude:: Makefile.Pi diff --git a/doc_dfu/index.rst b/doc_dfu/index.rst index bb185281..330eb84d 100644 --- a/doc_dfu/index.rst +++ b/doc_dfu/index.rst @@ -7,4 +7,4 @@ DFU loader for XMOS USB AUDIO devices Creating factory and upgrade images with XFLASH Using the DFU loader - Windows (via the Thesycon driver) Using the DFU loader - macOS (via the XMOS DFU loader) - Building the XMOS DFU loader - macOS + Building the XMOS DFU loader