aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-16 17:13:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-16 17:13:38 +0000
commit5766e4d2239efe0b6daf95fbcf5328fc5def649b (patch)
treed4baa712907b6c8c6b600cbef99393688354f21a
parent34e24ed054864a57bc5a7796ddea3e507fad94e2 (diff)
downloadupstream-5766e4d2239efe0b6daf95fbcf5328fc5def649b.tar.gz
upstream-5766e4d2239efe0b6daf95fbcf5328fc5def649b.tar.bz2
upstream-5766e4d2239efe0b6daf95fbcf5328fc5def649b.zip
mpc85xx: add input drivers to default packages, and load those during preinit
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35626 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/mpc85xx/Makefile4
-rw-r--r--target/linux/mpc85xx/base-files/lib/preinit/05_mpc85xx_load_input_drivers11
2 files changed, 14 insertions, 1 deletions
diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile
index c84c0e2911..feaa3bc731 100644
--- a/target/linux/mpc85xx/Makefile
+++ b/target/linux/mpc85xx/Makefile
@@ -17,7 +17,9 @@ LINUX_VERSION:=3.7.8
include $(INCLUDE_DIR)/target.mk
-DEFAULT_PACKAGES += kmod-booke-wdt
+DEFAULT_PACKAGES += \
+ kmod-input-core kmod-input-gpio-keys kmod-button-hotplug \
+ kmod-booke-wdt
define Target/Description
Build images for the Freescale MPC85xx based boards.
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/05_mpc85xx_load_input_drivers b/target/linux/mpc85xx/base-files/lib/preinit/05_mpc85xx_load_input_drivers
new file mode 100644
index 0000000000..ef1cce3608
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/lib/preinit/05_mpc85xx_load_input_drivers
@@ -0,0 +1,11 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+preinit_mpc85xx_load_input_drivers() {
+ insmod input-core
+ insmod gpio_keys
+ insmod button-hotplug
+}
+
+boot_hook_add preinit_main preinit_mpc85xx_load_input_drivers