Skip to content

Commit

Permalink
add IQEngine client
Browse files Browse the repository at this point in the history
This adds the IQEngine client, which can be used to visualized a
recording done with Maia SDR from the DDR directly.

Signed-off-by: Daniel Estévez <daniel@destevez.net>
  • Loading branch information
daniestevez committed Feb 23, 2024
1 parent b6f030f commit 2d4f888
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "maia-sdr"]
path = maia-sdr
url = https://github.com/maia-sdr/maia-sdr.git
[submodule "IQEngine"]
path = IQEngine
url = https://github.com/IQEngine/IQEngine
1 change: 1 addition & 0 deletions IQEngine
Submodule IQEngine added at 2f095b
30 changes: 29 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,35 @@ maia-wasm: buildroot/board/$(TARGET)/maia-wasm/pkg buildroot/board/$(TARGET)/mai

.PHONY: maia-wasm

### IQEngine client ###
IQEngine/client/build:
cd IQEngine/client && npm ci && npm run build

.PHONY: IQEngine/client/build

# IQEngine assets are compressed with xz to save ramfs space
# maia-httpd uncompresses these on the fly for each request.
buildroot/board/$(TARGET)/iqengine: IQEngine/client/build
rm -rf $@
mkdir $@
cp $</index.html $@/
lz4 -m --best --rm $</assets/*
cp $</assets/* $@/

buildroot/board/$(TARGET)/iqengine-public: IQEngine/client/build
rm -rf $@
mkdir $@
cp IQEngine/client/public/discord.svg $@/
cp IQEngine/client/public/github.svg $@/
cp IQEngine/client/public/LinkedIn_icon.svg $@/

iqengine: buildroot/board/$(TARGET)/iqengine buildroot/board/$(TARGET)/iqengine-public

.PHONY: iqengine

### Buildroot ###

buildroot/output/images/rootfs.cpio.gz: buildroot/board/$(TARGET)/maia-sdr.ko buildroot/board/$(TARGET)/maia-httpd maia-wasm
buildroot/output/images/rootfs.cpio.gz: buildroot/board/$(TARGET)/maia-sdr.ko buildroot/board/$(TARGET)/maia-httpd maia-wasm iqengine
@echo device-fw $(VERSION)> $(CURDIR)/buildroot/board/$(TARGET)/VERSIONS
@$(foreach dir,$(VSUBDIRS),echo $(dir) $(shell cd $(dir) && git describe --abbrev=4 --dirty --always --tags) >> $(CURDIR)/buildroot/board/$(TARGET)/VERSIONS;)
make -C buildroot ARCH=arm zynq_$(TARGET)_defconfig
Expand Down Expand Up @@ -229,6 +255,8 @@ clean:
make -C maia-sdr/maia-hdl clean
cd maia-sdr/maia-httpd; cargo clean
cd maia-sdr/maia-wasm; cargo clean
rm -rf IQEngine/client/build
rm -rf IQEngine/client/node_modules
rm -f $(notdir $(wildcard build/*))
rm -rf build/*

Expand Down
2 changes: 1 addition & 1 deletion buildroot

0 comments on commit 2d4f888

Please sign in to comment.