Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jvde-github authored Nov 16, 2024
1 parent 59c2ffa commit f192981
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ build_project() {
cd NMEA2000; cd src
g++ -O3 -c N2kMsg.cpp N2kStream.cpp N2kMessages.cpp N2kTimer.cpp NMEA2000.cpp N2kGroupFunctionDefaultHandlers.cpp N2kGroupFunction.cpp -I.
ar rcs libnmea2000.a *.o
cd ../../build; ls ..; cmake .. -DNMEA2000_PATH=..; make
cd ../../build; ls ..;
if [ "$package_arch" = "armhf" ]; then
cmake .. -DNMEA2000_PATH=.. -DARMV6=ON;
else
cmake .. -DNMEA2000_PATH=..;
fi

make
cd ..
}

Expand Down

0 comments on commit f192981

Please sign in to comment.