button-hotplug: simplify build
authorFelix Fietkau <nbd@nbd.name>
Mon, 24 Oct 2022 16:16:56 +0000 (18:16 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Oct 2022 18:49:34 +0000 (20:49 +0200)
Remove unnecessary kconfig junk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/button-hotplug/Makefile
package/kernel/button-hotplug/src/Kconfig [deleted file]
package/kernel/button-hotplug/src/Makefile

index 55412e56854219eefe01ba121f992dbb9dcd2635..8e8c02609c8bb9d5dfcec4ad14541462c04710a2 100644 (file)
@@ -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))
diff --git a/package/kernel/button-hotplug/src/Kconfig b/package/kernel/button-hotplug/src/Kconfig
deleted file mode 100644 (file)
index aa292e9..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-config BUTTON_HOTPLUG
-       tristate "Button Hotplug driver"
index 230d604f8c403d767fca6b297e41dd28ff4a39a2..e38fa40bb43fe4efa0be58bc437acfab2a19337d 100644 (file)
@@ -1 +1 @@
-obj-${CONFIG_BUTTON_HOTPLUG}   += button-hotplug.o
\ No newline at end of file
+obj-m := button-hotplug.o