mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
button-hotplug: simplify build
Remove unnecessary kconfig junk Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
288b36c2ea
commit
24bf94ecb7
@ -28,23 +28,8 @@ define KernelPackage/button-hotplug/description
|
||||
If your device uses GPIO buttons, see gpio-button-hotplug.
|
||||
endef
|
||||
|
||||
EXTRA_KCONFIG:= \
|
||||
CONFIG_BUTTON_HOTPLUG=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) \
|
||||
modules
|
||||
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,button-hotplug))
|
||||
|
@ -1,2 +0,0 @@
|
||||
config BUTTON_HOTPLUG
|
||||
tristate "Button Hotplug driver"
|
@ -1 +1 @@
|
||||
obj-${CONFIG_BUTTON_HOTPLUG} += button-hotplug.o
|
||||
obj-m := button-hotplug.o
|
||||
|
Loading…
Reference in New Issue
Block a user