kopia lustrzana https://github.com/cyoung/stratux
rodzic
f21070414d
commit
17c43dbb3a
26
Makefile
26
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue