Move FRC_JSON and DHCPCD_CONF to Makefile
This commit is contained in:
parent
c559efc53a
commit
1e09760688
6
deps/tools/Makefile
vendored
6
deps/tools/Makefile
vendored
|
@ -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
|
||||
|
|
|
@ -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 ######"
|
||||
|
||||
/*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user