Skip to content

Commit

Permalink
Add Romi image
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Nov 19, 2020
1 parent 51b7be8 commit eff48d0
Show file tree
Hide file tree
Showing 24 changed files with 1,346 additions and 99 deletions.
14 changes: 13 additions & 1 deletion deps/tools/configServer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ DEPS_LIBS?=$(shell pkg-config --libs --static cscore wpiutil)
EXEC_HOME?=/home/${FIRST_USER_NAME}
FRC_JSON?=/boot/frc.json
DHCPCD_CONF?=/boot/dhcpcd.conf
WPA_SUPPLICANT_CONF?=/etc/wpa_supplicant/wpa_supplicant.conf
DNSMASQ_CONF?=/etc/dnsmasq.d/wpilib.conf
HOSTAPD_CONF?=/etc/hostapd/hostapd.conf
APP_UID?=1000
APP_GID?=1000

.PHONY: all clean
.PHONY: all clean install
.SUFFIXES:

all: configServer
Expand All @@ -17,11 +20,17 @@ clean:
rm -f src/*.o
rm -f src/resources/*.o

install:
svc -d /service/configServer
install -m 755 configServer /usr/local/sbin/
svc -u /service/configServer

OBJS= \
src/main.o \
src/Application.o \
src/MyHttpConnection.o \
src/NetworkSettings.o \
src/RomiStatus.o \
src/SystemStatus.o \
src/UploadHelper.o \
src/VisionSettings.o \
Expand All @@ -41,6 +50,9 @@ configServer: ${OBJS}
'-DEXEC_HOME="${EXEC_HOME}"' \
'-DFRC_JSON="${FRC_JSON}"' \
'-DDHCPCD_CONF="${DHCPCD_CONF}"' \
'-DWPA_SUPPLICANT_CONF="${WPA_SUPPLICANT_CONF}"' \
'-DDNSMASQ_CONF="${DNSMASQ_CONF}"' \
'-DHOSTAPD_CONF="${HOSTAPD_CONF}"' \
'-DAPP_UID=${APP_UID}' \
'-DAPP_GID=${APP_GID}' \
$<
Expand Down
Loading

0 comments on commit eff48d0

Please sign in to comment.