diff --git a/lora-gateway/Config.in b/lora-gateway/Config.in index f05f205..e187a27 100644 --- a/lora-gateway/Config.in +++ b/lora-gateway/Config.in @@ -2,8 +2,8 @@ if PACKAGE_libloragw -config SPI_DEVICE - string "SPI Device" +config SX1301_SPI_PATH + string "SPI Dev Path" default /dev/spidev0.0 endif diff --git a/lora-gateway/Makefile b/lora-gateway/Makefile index baf89c9..30a5fc3 100644 --- a/lora-gateway/Makefile +++ b/lora-gateway/Makefile @@ -55,7 +55,7 @@ define Package/lora-gateway-utils DEPENDS:=+libloragw endef -TARGET_CFLAGS += $(FPIC) -O2 -Wall -Wextra -std=c99 -Iinc -I. -lm -DSPI_DEV_PATH='\"/dev/spidev0.2\"' +TARGET_CFLAGS += $(FPIC) -O2 -Wall -Wextra -std=c99 -Iinc -I. -lm -DSPI_DEV_PATH=\\\"\"$(CONFIG_SX1301_SPI_PATH)\\\"\" define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/libloragw