Commit graph

6 commits

Author SHA1 Message Date
Rey Tucker
85fd6da22a
host: fix builds on 32-bit platforms (#573)
Builds were failing in various ways on 32-bit platforms, due to various assumptions (and the fact that pretty much everything is 64-bit nowadays). This PR should fix all of them so that it builds clean.

* host: libbladeRF/thirdparty/adi: fix build error on 32-bit systems

sizeof(void*) is not necessarily equal to sizeof(uint64_t)

* host: libbladeRF/doc: fix 32-bit build failure on doc example

sizeof(size_t) does not always equal sizeof(uint64_t)

* host: docker: remove centos-7-i386 build

it doesn't work, and this is an edgy-enough case that i think we'll be
okay with the ubuntu i386 builds

* host: libbladeRF/bladerf2: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.

* host: libbladeRF_test: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.
2018-08-16 18:57:52 -04:00
Rey Tucker
f918ea49e1
host: docker: fixes for non-linux systems (e.g. macos) (#574)
Gracefully handle situations where there's no nproc command or /proc/loadavg file when doing parallel builds.
2018-08-16 18:49:32 -04:00
Rey Tucker
e958cf154a host: docker: add i386 tests 2018-08-16 02:30:42 -04:00
Rey Tucker
92a9e6bf12 host: docker: build optimization, add automated test script (#37)
* host: docker: clean up the base build process a bit

* host: docker: reduce build context size

We don't need the entire tree (since the _base image has that), so we
can just build from the same dir as the Dockerfile and not transfer
everything to the daemon over and over again.

* host: docker: WIP: script for automated Dockerized testing

* host: docker: use git clean when building base image

* host: docker: add script to automatically freshen base images

* host: docker: auto-detect build dir when testing

* host: docker: build arg for make -j parameter

* host: docker: refactor build script

* host: docker: add parallel run script

* host: docker: adjust make -j settings for builds

* host: docker: test: WIP commit

* host: docker: add usb product check, rfic loopback only for micros

* host: docker: copy the FPGA images from the base
2018-05-22 13:00:21 -04:00
Rey Tucker
c14ec8d042
host: misc: general docker build improvements (#22)
- new build distinguishers:
  - compiler: gcc or clang
  - buildtype: Release or Debug
  - taggedrelease: NO or YES

- add com.nuand.ci.* labels for image metadata

- create a base image with a pruned checkout, to reduce disk consumption
  and to snapshot the working directory's state at the start of a build
  spree

- add -j$(nproc) to the make invocation

- reorganize Dockerfiles to improve build cache hits

- build.bash: iterate over rel, compiler, and buildtype, for a
  combination of 6 builds per distro version

- build.bash: general restructuring for DRY
2018-04-03 18:21:05 -04:00
Rey Tucker
fba7d40ba6 host: misc: add Dockerfiles for multi-distro test builds (#552)
* host: misc: add Dockerfiles for multi-distro test builds

It is now possible to perform test builds automatically across various
releases of Arch, CentOS, Debian, Fedora, and Ubuntu with:

bash host/mis/docker/build.bash

* host: docker: fix ld.so.conf for centos-7
2018-03-30 14:05:15 -04:00