]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Added "bootloader" compilation
authorc vw <dl1ycf@darc.de>
Fri, 5 Aug 2022 08:15:54 +0000 (10:15 +0200)
committerc vw <dl1ycf@darc.de>
Fri, 5 Aug 2022 08:15:54 +0000 (10:15 +0200)
Makefile

index c184b0b28be2a0cb1d94107a0c9d1d383f943221..966a8985db7bc1a1647c02cc08eef27d6053fcbb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -518,7 +518,7 @@ cppcheck:
 .PHONY:        clean
 clean:
        -rm -f *.o
-       -rm -f $(PROGRAM) hpsdrsim
+       -rm -f $(PROGRAM) hpsdrsim bootloader
        -rm -rf $(PROGRAM).app
 
 #
@@ -575,6 +575,19 @@ newhpsdrsim.o:     newhpsdrsim.c hpsdrsim.h
 hpsdrsim:       hpsdrsim.o newhpsdrsim.o
        $(LINK) -o hpsdrsim hpsdrsim.o newhpsdrsim.o -lm -lpthread
 
+#############################################################################
+#
+# bootloader is a small command-line program that allows to 
+# set the radio's IP address and upload firmware through the
+# ancient protocol. This program can only be run as root since
+# this protocol requires "sniffing" at the Ethernet adapter
+# (this "sniffing" is done via the pcap library)
+#
+#############################################################################
+
+bootloader:    bootloader.c
+       $(CC) -o bootloader bootloader.c -lpcap
+
 debian:
        cp $(PROGRAM) pkg/pihpsdr/usr/local/bin
        cp /usr/local/lib/libwdsp.so pkg/pihpsdr/usr/local/lib