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
Updates control file version from 3.9.5 to 4.1.4.
Replaces http: URLs with https: URLs where applicable.
Updates copyright file to match restructuring in libbladeRF 2.
Include COPYING and legal/* files when installing docs.
Fix maintainer name :)
W: bladerf source: syntax-error-in-dep5-copyright line 95: Continuation line outside a paragraph.
W: bladerf source: ancient-standards-version 3.9.2 (current is 3.9.4)
My laptop (with saucy) is somewhat pickier than my old lucid desktop.
Surprise, surprise.
How to build the .debs:
wget https://github.com/Nuand/bladeRF/archive/master.tar.gz
tar -zxvf master.tar.gz
cd bladeRF-master
debuild -i -us -uc -b
Caveat: once we get into a groove release-wise, we'll need to remember
to update debian/changelog (look at the 'dch' command)
This produces three .deb files:
bladerf_0~20131005-2_amd64.deb
Contains bladeRF-cli, bladeRF-flash, and man pages
libbladerf0_0~20131005-2_amd64.deb
Contains libbladeRF.so.0
libbladerf0-dev_0~20131005-2_amd64.deb
Contains libbladeRF.so symlink, libbladeRF.h, and libbladeRF.pc
This is still somewhat fragile. Also, it pretty much depends on
Ubuntu 13.10, which hasn't been released yet. But we're ahead of
the game, no?!