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