bladeRF/debian
Rey Tucker 48ec0a40a6
Move vendor library code for ad936x RFIC to /thirdparty; use git submodule (#689)
This PR creates a git submodule for the analogdevicesinc/no-OS code, moving it from host/libraries/libbladeRF/src/driver/thirdparty/adi/ to thirdparty/analogdevicesinc/no-OS and adjusting the build process accordingly.

The build process will handle the git submodule init / git submodule update as required, or it may be done manually before the build. It will then copy the necessary files to the build tree, apply a series of patches for local modifications, and then build it as libad936x.

There are no changes to the build steps, although the build will fail if git submodule init/update needs to happen but can't (e.g. if github is not reachable).

* thirdparty: add no-OS library submodule

Adds a submodule for https://github.com/analogdevicesinc/no-OS/, pinned
at commit 0bba46e.

* thirdparty: patch and build libad936x

Add cmake file for libad936x

Move our local mods into patch files

* host: libbladeRF: transition to libad936x

Transitions libbladeRF (particularly bladerf2.c) to use the libad936x
package, compiled separately.

This also adds ad936x.h, a driver header file that contains the
necessary things from libad936x.  This is cleaner than just importing
ad9361_api.h, due to the significant dependency/include challenges that
ensue...

* host: fix up libad936x build

Don't use ExternalProject, instead just add it as a subdirectory

Create a FindPatcher.cmake for the patch-or-git selector

Clean up and streamline the ad936x cmakelists

Clean up libbladeRF cmakelist formatting

* thirdparty: fix no-OS patch 0003

* host: ad936x: fixup build errors/warnings on macOS

* thirdparty/adi: patch to chop out ad9361_parse_fir

ad9361_parse_fir refers to sscanf, which is not readily available in the
Nios II library. We don't use this function, so it can go.

* libbladeRF: remove vestigial adi files

* debian: rm thirdparty ADI tree from license file

* host: thirdparty: fix git package handling

* host: thirdparty/ad936x: specify patches in order

It turns out that there's no guarantee that file(GLOB)
will output the patch files in the alphabetical order.

* Revert "debian: rm thirdparty ADI tree from license file"

This reverts commit 36cf335c0e.

* debian: update path in ADI copyright
2018-11-12 18:13:58 -05:00
..
patches Add top-level options for toggling host/fx3 builds 2013-10-27 16:25:32 -04:00
source Debianization of libbladeRF and friends 2013-10-06 20:16:19 -04:00
bladerf-firmware-fx3.dirs Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-firmware-fx3.postinst debian: update firmware pointer to v2.3.1 2018-10-30 15:24:54 -04:00
bladerf-firmware-fx3.prerm Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-fpga-hostedx40.dirs Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-fpga-hostedx40.postinst debian: update FPGA pointer v0.8.0 -> v0.9.0 2018-10-30 15:23:35 -04:00
bladerf-fpga-hostedx40.prerm Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-fpga-hostedx115.dirs Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-fpga-hostedx115.postinst debian: update FPGA pointer v0.8.0 -> v0.9.0 2018-10-30 15:23:35 -04:00
bladerf-fpga-hostedx115.prerm Change FPGA/Firmware download path to be cleaner 2014-07-07 18:09:57 -04:00
bladerf-fpga-hostedxa4.dirs debian: lower-case the new FPGA package names (#570) 2018-08-16 02:04:55 -04:00
bladerf-fpga-hostedxa4.postinst debian: update FPGA pointer v0.8.0 -> v0.9.0 2018-10-30 15:23:35 -04:00
bladerf-fpga-hostedxa4.prerm debian: lower-case the new FPGA package names (#570) 2018-08-16 02:04:55 -04:00
bladerf-fpga-hostedxa9.dirs debian: lower-case the new FPGA package names (#570) 2018-08-16 02:04:55 -04:00
bladerf-fpga-hostedxa9.postinst debian: update FPGA pointer v0.8.0 -> v0.9.0 2018-10-30 15:23:35 -04:00
bladerf-fpga-hostedxa9.prerm debian: lower-case the new FPGA package names (#570) 2018-08-16 02:04:55 -04:00
bladerf.dirs Debianization of libbladeRF and friends 2013-10-06 20:16:19 -04:00
bladerf.docs debian: update packaging files (#596) 2018-08-30 17:28:01 -04:00
bladerf.install Debianization of libbladeRF and friends 2013-10-06 20:16:19 -04:00
bladerf.manpages Generate manpages for bladeRF-* with doxygen 2013-10-06 20:17:26 -04:00
changelog bladeRF 2018.10-rc1 2018-10-30 17:12:29 -04:00
compat Fix Debian packaging to support multiarch 2013-10-20 13:05:33 -04:00
control debian: add libbladerf-doc package 2018-09-04 12:42:26 -04:00
copyright Move vendor library code for ad936x RFIC to /thirdparty; use git submodule (#689) 2018-11-12 18:13:58 -05:00
libbladerf-dev.dirs debian: rename libbladerf0-dev -> libbladerf-dev 2013-12-29 16:05:59 -05:00
libbladerf-dev.docs debian: update packaging files (#596) 2018-08-30 17:28:01 -04:00
libbladerf-dev.install debian: rename libbladerf0-dev -> libbladerf-dev 2013-12-29 16:05:59 -05:00
libbladerf-doc.docs debian: add libbladerf-doc package 2018-09-04 12:42:26 -04:00
libbladerf-doc.install debian: add libbladerf-doc package 2018-09-04 12:42:26 -04:00
libbladerf-udev.dirs debian: split udev rule into its own package 2014-11-29 20:01:51 -05:00
libbladerf-udev.docs debian: update packaging files (#596) 2018-08-30 17:28:01 -04:00
libbladerf-udev.install debian: split udev rule into its own package 2014-11-29 20:01:51 -05:00
libbladerf2.dirs debian: update for libbladeRF 2.0, new FPGA series 2018-08-15 21:02:01 -04:00
libbladerf2.docs debian: update packaging files (#596) 2018-08-30 17:28:01 -04:00
libbladerf2.install debian: update for libbladeRF 2.0, new FPGA series 2018-08-15 21:02:01 -04:00
rules debian: add libbladerf-doc package 2018-09-04 12:42:26 -04:00
watch Debianization of libbladeRF and friends 2013-10-06 20:16:19 -04:00