Commit graph

7 commits

Author SHA1 Message Date
Robert Ghilduta
cd29f93a58 libladeRF: LTO fix
Fixes libbladeRF LTO compilation error
cmake -DCMAKE_C_FLAGS="-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" -DCMAKE_BUILD_TYPE=Release ..
2025-05-19 23:58:10 -07:00
Robert Ghilduta
3a411c87c2 host: combine diff patch path into one line 2020-11-14 11:45:33 -08:00
Robert Ghilduta
296d7a6400 thirdparty: adi: define ALTERA_PLATFORM
libad936x needs ALTERA_PLATFORM even on the host side
2018-12-21 01:28:17 -08:00
Rey Tucker
1e45367785 thirdparty: adi: define ALTERA_PLATFORM for headless platform
libad936x needs ALTERA_PLATFORM because, apparently, memcpy
doesn't work properly on the Nios. This resulted in TX sample
rates being half of the expected value.
2018-12-17 20:28:07 -05:00
Rey Tucker
817d07331c thirdparty: adi: add bladerf2_headless platform
this is distinct enough from platform_bladerf2 that it's worth splitting
it off

thirdparty: adi/brf2_hl: use multiply for msec->usec conversion

This is slightly more accurate than shifting by 10, and matches other
msleep() implementations.

thirdparty: adi: make config.h platform-specific (bladerf2_headless)

thirdparty/adi: disable split gain tables, verbose logging on nios

thirdparty: adi/brf2_hl: run clang-format on these files

they're new on this branch, so i can do this :)

thirdparty: adi: brf2_hl: reduce ad9361 logging

thirdparty: adi: rm vestigial params.c (bladerf2_headless)
2018-12-06 14:45:24 -05:00
Rey Tucker
7939453551 host/fpga_common/thirdparty: move ad936x.h, params.c, config.h
Move these files into more common places, so they can be
used from the FPGA side of the world as well.
2018-11-26 18:03:45 -05: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