linux-openmoko: use add module_autoload for 2.6.31, add ppp_generic and load snd...
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 2 Dec 2009 12:54:56 +0000 (13:54 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Tue, 22 Dec 2009 09:44:07 +0000 (10:44 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
conf/machine/om-gta02.conf
recipes/images/shr-image.inc
recipes/linux/linux-openmoko.inc

index 8e8355b..c65d971 100644 (file)
@@ -83,6 +83,8 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
 EXTRA_IMAGEDEPENDS += "sjf2410-linux-native dfu-util-native"
 
 module_autoload_snd-soc-neo1973-gta02-wm8753 = "snd-soc-neo1973-gta02-wm8753"
+#2.6.31 is using the same name as it was in gta01
+module_autoload_snd-soc-neo1973-wm8753 = "snd-soc-neo1973-wm8753"
 
 # tune for S3C24x0
 include conf/machine/include/tune-arm920t.inc
index ac20537..bbda84d 100644 (file)
@@ -98,12 +98,6 @@ shr_rootfs_postprocess() {
     #set up a nice gentoo-like PS1
     echo "export PS1=\"\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] \"">> ./etc/profile
 
-    #load modules on boot
-    [ -d ./etc/modutils ] || mkdir ./etc/modutils
-    # FIXME: do load those modules through module_autoload in 
-    # machine config or distro config
-    echo "ppp_generic" > ./etc/modutils/ppp_generic
-
     #set up some variables to improve default settings
     echo "if [ \"\$DISPLAY\" = \"\" ]" >> ./etc/profile
     echo "then" >> ./etc/profile
index e789e76..99865c9 100644 (file)
@@ -28,12 +28,8 @@ THUMB_INTERWORKING = "no"
 module_autoload_ohci-hcd = "ohci-hcd"
 module_autoload_hci_usb = "hci_usb"
 module_autoload_g_ether = "g_ether"
-# audio (GTA01)
-module_autoload_snd-soc-neo1973-wm8753 = "snd-soc-neo1973-wm8753"
-# audio (GTA02)
-module_autoload_snd-soc-neo1973-gta02-wm8753 = "snd-soc-neo1973-gta02-wm8753"
-# audio (GTA03)
-module_autoload_snd-soc-neo1973-gta03-wm8753 = ""
+module_autoload_ppp_generic = "ppp_generic"
+# snd modules module_autoload_snd-soc-neo1973-*-wm8753 are in machine.conf 
 # sd/mmc
 module_autoload_s3cmci = "s3cmci"