aboutsummaryrefslogtreecommitdiffstats
path: root/sw/Makefile
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2018-12-14 20:04:26 +0100
committerSylvain Munaut <tnt@246tNt.com>2018-12-14 20:04:26 +0100
commit8c5277d075815e4e5cf63af004d597afad9d4c1e (patch)
tree424be367054c5e47317f15d41e699a708deb46a6 /sw/Makefile
parent18adc3602af4aa10ec11779b201dbae659dd83d9 (diff)
sw: Import the embedded control software
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'sw/Makefile')
-rw-r--r--sw/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/sw/Makefile b/sw/Makefile
new file mode 100644
index 0000000..92137c5
--- /dev/null
+++ b/sw/Makefile
@@ -0,0 +1,23 @@
+CROSS ?= arm-linux-gnueabihf-
+
+CC=$(CROSS)gcc
+LD=$(CROSS)gcc
+
+CFLAGS=-Wall --sysroot=$(SYSROOT)
+LDLIBS=-liio --sysroot=$(SYSROOT)
+
+
+all: sysroot_test osmo-rfds
+
+osmo-rfds: osmo-rfds.o
+
+sysroot_test:
+ @if [ "x$(SYSROOT)" = "x" ]; then \
+ echo >&2 "[!] Need SYSROOT to be pointing to the buildroot SDK"; \
+ false; \
+ fi
+
+clean:
+ rm -f osmo-rfds *.o
+
+.PHONY: sysroot_test clean