Move FRC_JSON and DHCPCD_CONF to Makefile

This commit is contained in:
Peter Johnson 2018-12-20 13:36:38 -08:00
parent c559efc53a
commit 1e09760688
No known key found for this signature in database
GPG Key ID: D39DD4DA7D41E329
3 changed files with 6 additions and 12 deletions

6
deps/tools/Makefile vendored
View File

@ -3,6 +3,9 @@ COMPILER?=../02-extract/raspbian9/bin/arm-raspbian9-linux-gnueabihf-
WPILIB?=../allwpilib
WPILIB_PLATFORM?=.
OPENCV_INSTALL?=../03-build/opencv-build/install
EXEC_HOME?=/home/pi
FRC_JSON?=/boot/frc.json
DHCPCD_CONF?=/boot/dhcpcd.conf
.PHONY: all
.SUFFIXES:
@ -58,6 +61,9 @@ rpiConfigServer: ${RPICONFIGSERVER_OBJS}
%.o: %.cpp
${COMPILER}g++ -O -Wall -c -o $@ \
-I${WPILIB}/wpiutil/src/main/native/include \
'-DEXEC_HOME="${EXEC_HOME}"' \
'-DFRC_JSON="${FRC_JSON}"' \
'-DDHCPCD_CONF="${DHCPCD_CONF}"' \
$<
%.html.cpp: %.html

View File

@ -21,12 +21,6 @@
namespace uv = wpi::uv;
#ifdef __RASPBIAN9__
#define DHCPCD_CONF "/boot/dhcpcd.conf"
#else
#define DHCPCD_CONF "dhcpcd.conf"
#endif
#define GEN_MARKER "###### BELOW THIS LINE EDITED BY RPICONFIGSERVER ######"
/*

View File

@ -14,12 +14,6 @@
#include "VisionStatus.h"
#ifdef __RASPBIAN9__
#define FRC_JSON "/boot/frc.json"
#else
#define FRC_JSON "frc.json"
#endif
std::shared_ptr<VisionSettings> VisionSettings::GetInstance() {
static auto inst = std::make_shared<VisionSettings>(private_init{});
return inst;