From 087cdcc67a247ec3b0201c047f5b3474170914be Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Thu, 12 Nov 2020 02:41:16 -0300 Subject: [PATCH] add osmo-fl2k support --- .../stage4/28-pisdr-osmo-fl2k/00-packages-nr | 1 + builder/stage4/28-pisdr-osmo-fl2k/00-run.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 builder/stage4/28-pisdr-osmo-fl2k/00-packages-nr create mode 100755 builder/stage4/28-pisdr-osmo-fl2k/00-run.sh diff --git a/builder/stage4/28-pisdr-osmo-fl2k/00-packages-nr b/builder/stage4/28-pisdr-osmo-fl2k/00-packages-nr new file mode 100644 index 0000000..10c35a2 --- /dev/null +++ b/builder/stage4/28-pisdr-osmo-fl2k/00-packages-nr @@ -0,0 +1 @@ +libusb-1.0-0-dev \ No newline at end of file diff --git a/builder/stage4/28-pisdr-osmo-fl2k/00-run.sh b/builder/stage4/28-pisdr-osmo-fl2k/00-run.sh new file mode 100755 index 0000000..cd13ad2 --- /dev/null +++ b/builder/stage4/28-pisdr-osmo-fl2k/00-run.sh @@ -0,0 +1,19 @@ +#!/bin/bash -e + +on_chroot << EOF +mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" +cd "/home/${FIRST_USER_NAME}/PiSDR/Software" + +if [ ! -d "osmo-fl2k" ]; then + git clone git://git.osmocom.org/osmo-fl2k.git +fi + +cd osmo-fl2k +mkdir -p build +cd build +cmake -GNinja -DINSTALL_UDEV_RULES=ON .. +ninja install +ldconfig +cd .. +rm -fr build +EOF \ No newline at end of file