Commit graph

9 commits

Author SHA1 Message Date
Robert Ghilduta
60ae4d0683 host: remove pthreadswin32 from CMake depedency 2023-12-04 01:15:59 -08:00
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
Rey Tucker
3e2dc30d04
debian: update packaging files (#596)
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 :)
2018-08-30 17:28:01 -04:00
Ryan Tucker
8b19754b3f Update copyright date ranges to include 2017 2017-12-21 12:55:05 -05:00
Ryan Tucker
c9f3945d18 update debian/copyright to match inttypes_msvc.h rename 2014-06-21 13:49:37 -04:00
Ryan Tucker
587682cccc Fix two lintian errors
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.
2013-12-01 13:40:10 -05:00
Daniel Gröber
6abbec9138 Add debian/copyright entries for new code 2013-11-28 13:58:09 -05:00
Ryan Tucker
edc468dbb2 Update debian/copyright to match current state
Second/third/fourth pairs of eyes are welcome...

h/t to A. Maitland Bottoms' Debian package for spotting the
Altera and OpenCores packages
2013-10-27 00:18:13 -04:00
Ryan Tucker
21111276e1 Debianization of libbladeRF and friends
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?!
2013-10-06 20:16:19 -04:00