From de4a5bc6f2468bbb65d362eddb372226463d66e3 Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Tue, 20 Apr 2010 19:30:33 +0200 Subject: zaurus-2.6.inc: reorder common Zaurus settings. * reabsorb zaurus-kernel.inc --- conf/machine/include/zaurus-2.6.inc | 67 ++++++++++++++++++++++++++-------- conf/machine/include/zaurus-kernel.inc | 15 -------- 2 files changed, 51 insertions(+), 31 deletions(-) delete mode 100644 conf/machine/include/zaurus-kernel.inc (limited to 'conf/machine/include') diff --git a/conf/machine/include/zaurus-2.6.inc b/conf/machine/include/zaurus-2.6.inc index d8bd5b00dc..1b5599b55c 100644 --- a/conf/machine/include/zaurus-2.6.inc +++ b/conf/machine/include/zaurus-2.6.inc @@ -1,25 +1,29 @@ +######################## # Zaurus common settings -# Additionally, clamshell specific stuff in zaurus-clamshell.inc +######################## + +IMAGE_FSTYPES += "jffs2 tar.gz" +EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=${ERASEBLOCKSIZE} --pad --faketime -n" + +EXTRA_IMAGEDEPENDS += "zaurus-installer" -TARGET_ARCH = "arm" + +###### +# nand +###### ERASEBLOCKSIZE = "0x4000" ERASEBLOCKSIZE_akita = "0x20000" -# Warning! SL-C3000 seems to be "0x4000" (16m NAND) -# C3100 and C3200 have same 128MB NAND device as akita +# Warning! SL-C3000 has "0x4000" (16MiB NAND) +# C3100 and C3200 have same 128MiB NAND device as akita ERASEBLOCKSIZE_spitz = "0x20000" -EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=${ERASEBLOCKSIZE} --pad --faketime -n" -EXTRA_IMAGEDEPENDS += "zaurus-installer" - -SERIAL_CONSOLE = "115200 ttyS0" -SERIAL_CONSOLE_collie = "115200 ttySA0" +######### +# xserver (FIXME: xserver-xorg is in testing on spitz) +######### -# FIXME: xserver-xorg is in testing on spitz - -# deprecated defaults PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" XSERVER = "xserver-kdrive-fbdev" @@ -40,9 +44,36 @@ PREFERRED_PROVIDER_virtual/xserver_spitz = "xserver-xorg" XSERVER_spitz = "xserver-xorg xf86-input-keyboard xf86-input-mouse xf86-input-evdev" PREFERRED_PROVIDER_virtual/libgl_spitz = "mesa-dri" -PCMCIA_MANAGER ?= "pcmciautils" -IMAGE_FSTYPES += "jffs2 tar.gz" +######## +# kernel +######## + +MACHINE_KERNEL_VERSION = "2.6" + +PREFERRED_PROVIDER_virtual/kernel = "linux-rp" + +# Starting with 2.6.32 linux-rp is deprecated for some models +#PREFERRED_PROVIDER_virtual/kernel = "linux" +PREFERRED_PROVIDER_virtual/kernel_collie = "linux" +PREFERRED_PROVIDER_virtual/kernel_tosa = "linux" + +# Default bootloader expects "zImage", use "uImage" for u-boot +# Note: kexecboot can boot both kind of images +ZAURUS_KERNEL_IMAGETYPE ?= "zImage" +KERNEL_IMAGETYPE = "${ZAURUS_KERNEL_IMAGETYPE}" + + +################ +# machine tuning +################ + +TARGET_ARCH = "arm" + +SERIAL_CONSOLE = "115200 ttyS0" +SERIAL_CONSOLE_collie = "115200 ttySA0" + +PCMCIA_MANAGER ?= "pcmciautils" MACHINE_FEATURES = "kernel26 apm alsa pcmcia irda usbgadget keyboard touchscreen screen vfat ext2" MACHINE_FEATURES_append_akita = " usbhost " @@ -52,7 +83,6 @@ MACHINE_FEATURES_append_tosa = " usbhost wifi " MACHINE_EXTRA_RDEPENDS = "zaurusd mtd-utils nandlogical" MACHINE_EXTRA_RDEPENDS_collie = "zaurusd" -# Here we just need snd modules # Fixme ? pcmcia and pxa2xx-cs are now compiled in kernel # Fixme ? module-snd for collie MACHINE_EXTRA_RRECOMMENDS_collie = "" @@ -65,5 +95,10 @@ MACHINE_EXTRA_RRECOMMENDS_poodle = "kernel-module-snd-soc-poodle kernel-module-p # Fixme ? module-snd for tosa MACHINE_EXTRA_RRECOMMENDS_tosa = "apm-tosa-suspendfix" -require conf/machine/include/zaurus-kernel.inc + +################################## +# build kexecboot kernel while +# making sure rootfs is compatible +################################## + require conf/machine/include/initramfs-kexecboot.inc diff --git a/conf/machine/include/zaurus-kernel.inc b/conf/machine/include/zaurus-kernel.inc deleted file mode 100644 index bbbb38315c..0000000000 --- a/conf/machine/include/zaurus-kernel.inc +++ /dev/null @@ -1,15 +0,0 @@ -# Zaurus common kernel settings - -MACHINE_KERNEL_VERSION = "2.6" - -PREFERRED_PROVIDER_virtual/kernel = "linux-rp" - -# Starting with 2.6.32 linux-rp is deprecated for some models -#PREFERRED_PROVIDER_virtual/kernel = "linux" -PREFERRED_PROVIDER_virtual/kernel_collie = "linux" -PREFERRED_PROVIDER_virtual/kernel_tosa = "linux" - -# Default bootloader expects "zImage", use "uImage" for u-boot -# Note: kexecboot can boot both kind of images -ZAURUS_KERNEL_IMAGETYPE ?= "zImage" -KERNEL_IMAGETYPE = "${ZAURUS_KERNEL_IMAGETYPE}" -- cgit 1.2.3-korg