Add wifi qrcode script and instructions

This commit is contained in:
Tyler Perkins
2021-12-21 17:53:24 -05:00
parent d98b7764e2
commit 0b6cf2ca52
6 changed files with 41 additions and 1 deletions

View File

@@ -39,6 +39,9 @@ DEFINITIONS = -DDATA_='"$(DATA)"'
DEFINITIONS += -DDATA_IMG_='"$(DATA_IMG)"'
DEFINITIONS += -DDATA_FONT_='"$(DATA_FONT)"'
WIFI_SSID = "DEFAULT_WIFI"
WIFI_PASS = "DEFAULT_PASS"
all : $(OBJ)
@echo LD $@
@$(CC) $(FLAGS) $(CFLAGS) -o $(BIN)/$(TARGET) $(OBJ) $(LIBRARIES)
@@ -50,10 +53,13 @@ all : $(OBJ)
src/config.hpp :
cp src/config.def.hpp src/config.hpp
img/wifi.png :
./scripts/wifi.sh $(WIFI_SSID) $(WIFI_PASS)
open : all
$(BIN)/$(TARGET)
$(OBJ): src/config.hpp
$(OBJ): src/config.hpp img/wifi.png
install : all
mkdir -p $(PREFIX)/bin
@@ -73,5 +79,8 @@ clean :
find . -type f -name '*.o' -delete
rm -rf $(BIN)/*
clean-wifi:
rm -f ./img/wifi.png
clean-config :
rm -rf src/config.hpp