mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-09 07:52:07 +08:00
gpio-nct5104d: simplified makefile
This commit is contained in:
parent
c5351b2e56
commit
6e6f0cfa4c
@ -29,22 +29,10 @@ define KernelPackage/gpio-nct5104d/description
|
||||
Support for GPIO functionality of NCT5104D super I/O chip.
|
||||
endef
|
||||
|
||||
EXTRA_KCONFIG:= \
|
||||
CONFIG_GPIO_NCT5104D=m
|
||||
|
||||
EXTRA_CFLAGS:= \
|
||||
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
|
||||
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
|
||||
|
||||
MAKE_OPTS:= \
|
||||
$(KERNEL_MAKE_FLAGS) \
|
||||
M="$(PKG_BUILD_DIR)" \
|
||||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
$(EXTRA_KCONFIG)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(LINUX_DIR)" \
|
||||
$(MAKE_OPTS) \
|
||||
$(KERNEL_MAKE_FLAGS) \
|
||||
M="$(PKG_BUILD_DIR)" \
|
||||
modules
|
||||
endef
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
config GPIO_NCT5104D
|
||||
tristate "NCT5104D GPIO support"
|
||||
depends on GENERIC_GPIO
|
||||
help
|
||||
Say yes here to support GPIO functionality of NCT5104D super I/O chip
|
@ -1 +1 @@
|
||||
obj-${CONFIG_GPIO_NCT5104D} += gpio-nct5104d.o
|
||||
obj-m += gpio-nct5104d.o
|
||||
|
@ -1290,6 +1290,7 @@ define KernelPackage/wireguard
|
||||
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||
TITLE:=WireGuard secure network tunnel
|
||||
DEPENDS:= \
|
||||
+kmod-crypto-lib-blake2s \
|
||||
+kmod-crypto-lib-chacha20poly1305 \
|
||||
+kmod-crypto-lib-curve25519 \
|
||||
+kmod-udptunnel4 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user