Update build process to use new dump1090.

Fixes #171.
pull/182/head^2
Christopher Young 2015-12-29 19:50:33 -05:00
rodzic f21070414d
commit 17c43dbb3a
2 zmienionych plików z 22 dodań i 14 usunięć

Wyświetl plik

@ -7,13 +7,27 @@ $(if $(GOROOT),,$(error GOROOT is not set!))
endif
all:
cd dump978 && make lib
sudo cp -f ./libdump978.so /usr/lib/libdump978.so
git submodule update --init
cd linux-mpu9150 && make -f Makefile-native-shared
make xdump978
make xdump1090
make xlinux-mpu9150
make xgen_gdl90
xgen_gdl90:
go get -t -d -v ./main ./test ./linux-mpu9150/mpu ./godump978 ./mpu6050 ./uatparse
go build $(BUILDINFO) main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go main/uibroadcast.go
xdump1090:
git submodule update --init
cd dump1090 && make
xdump978:
cd dump978 && make lib
sudo cp -f ./libdump978.so /usr/lib/libdump978.so
xlinux-mpu9150:
git submodule update --init
cd linux-mpu9150 && make -f Makefile-native-shared
.PHONY: test
test:
make -C test
@ -61,6 +75,10 @@ install:
ln -sf /etc/init.d/stratux /etc/rc2.d/S01stratux
ln -sf /etc/init.d/stratux /etc/rc6.d/K01stratux
make www
cp -f dump1090/dump1090 /usr/bin/
clean:
rm -f gen_gdl90 libdump978.so
cd dump1090 && make clean
cd dump978 && make clean
rm -f linux-mpu9150/*.o linux-mpu9150/*.so

Wyświetl plik

@ -119,16 +119,6 @@ make install
ldconfig
EOF
echo " - dump1090"
ssh_in_to_qemu chroot /mnt sh -l -ex - <<\EOF
cd /root
rm -rf dump1090
git clone https://github.com/antirez/dump1090
cd dump1090
make
cp dump1090 /usr/bin/
EOF
echo " - Stratux"
scp_in_to_qemu /root/spindle/gen_gdl90 /tmp/gen_gdl90