Skip to content

Commit

Permalink
Update build process to use new dump1090.
Browse files Browse the repository at this point in the history
Fixes cyoung#171.
  • Loading branch information
cyoung committed Dec 30, 2015
1 parent f210704 commit 17c43db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
22 changes: 20 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@ $(if $(GOROOT),,$(error GOROOT is not set!))
endif

all:
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
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

.PHONY: test
test:
Expand Down Expand Up @@ -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
10 changes: 0 additions & 10 deletions image/spindle/wheezy-stage4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17c43db

Please sign in to comment.