net/nut: Add back serial support
It looks like serial support was accidentally dropped due to missing pieces on Config.in and Makefile. Add back serial support by fixing that. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
This commit is contained in:
parent
c1d26bacdf
commit
5503dac806
2 changed files with 10 additions and 0 deletions
|
@ -23,3 +23,10 @@
|
||||||
help
|
help
|
||||||
If you have a UPS you can connect to via SNMP, select this.
|
If you have a UPS you can connect to via SNMP, select this.
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config NUT_DRIVER_SERIAL
|
||||||
|
depends on PACKAGE_nut
|
||||||
|
bool "Build with suport for serial drivers"
|
||||||
|
help
|
||||||
|
If you have a UPS connected via serial cable, select this.
|
||||||
|
default n
|
||||||
|
|
|
@ -24,6 +24,7 @@ PKG_INSTALL:=1
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_NUT_DRIVER_SNMP \
|
CONFIG_NUT_DRIVER_SNMP \
|
||||||
CONFIG_NUT_DRIVER_USB \
|
CONFIG_NUT_DRIVER_USB \
|
||||||
|
CONFIG_NUT_DRIVER_SERIAL \
|
||||||
CONFIG_NUT_SSL
|
CONFIG_NUT_SSL
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -323,6 +324,7 @@ define DriverPackage
|
||||||
DEPENDS:=nut +nut-common
|
DEPENDS:=nut +nut-common
|
||||||
$(if $(filter $(1),snmp),DEPENDS+= @NUT_DRIVER_SNMP)
|
$(if $(filter $(1),snmp),DEPENDS+= @NUT_DRIVER_SNMP)
|
||||||
$(if $(filter $(1),usb),DEPENDS+= @NUT_DRIVER_USB)
|
$(if $(filter $(1),usb),DEPENDS+= @NUT_DRIVER_USB)
|
||||||
|
$(if $(filter $(1),serial),DEPENDS+= @NUT_DRIVER_SERIAL)
|
||||||
endef
|
endef
|
||||||
# Deliberately empty description in order to trigger a build failure.
|
# Deliberately empty description in order to trigger a build failure.
|
||||||
# It should be overridden by the list below, and when updating to a
|
# It should be overridden by the list below, and when updating to a
|
||||||
|
@ -478,6 +480,7 @@ CONFIGURE_ARGS += \
|
||||||
--$(if $(CONFIG_NUT_DRIVER_USB),with,without)-usb \
|
--$(if $(CONFIG_NUT_DRIVER_USB),with,without)-usb \
|
||||||
--without-avahi \
|
--without-avahi \
|
||||||
--$(if $(CONFIG_NUT_DRIVER_SNMP),with,without)-snmp \
|
--$(if $(CONFIG_NUT_DRIVER_SNMP),with,without)-snmp \
|
||||||
|
--$(if $(CONFIG_NUT_DRIVER_SERAL),with,without)-serial \
|
||||||
--without-neon \
|
--without-neon \
|
||||||
--without-powerman \
|
--without-powerman \
|
||||||
--with-cgi \
|
--with-cgi \
|
||||||
|
|
Loading…
Reference in a new issue