summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-12-09 10:21:01 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-12-09 10:21:01 +0000
commit1f614fba2c98b765cd48efee71f679652bad2d68 (patch)
treea4b28f3c901929ad69a1b3c905fcc6bd4e632c7f
parentc71a6817fda2f897c2eb13a45ad2f0500733775c (diff)
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into r2d2.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages 2004/12/09 11:19:55+01:00 uni-frankfurt.de!mickeyl yank coding superflous EMBEDIXRELEASE into /proc/version to unbreak /etc/init.d/checkversion BKrev: 41b8270di1X0UClrgTEu_Fw1pLJTPw
-rw-r--r--packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb104
-rw-r--r--packages/linux/openzaurus-sa_2.4.18-rmk7-pxa3-embedix20030509.bb95
2 files changed, 199 insertions, 0 deletions
diff --git a/packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb b/packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb
index e69de29bb2..c158bc0788 100644
--- a/packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb
+++ b/packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb
@@ -0,0 +1,104 @@
+SECTION = "kernel"
+PV = "2.4.18-rmk7-pxa3-embedix"
+LICENSE = "GPL"
+KV = "2.4.18"
+RMKV = "7"
+PXAV = "3"
+SHARPV = "20031107"
+PR = "r26"
+DESCRIPTION = "Linux kernel for OpenZaurus PXA processor based devices."
+MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/openzaurus-pxa-${KV}-rmk${RMKV}-pxa${PXAV}-embedix${SHARPV}"
+
+ALLOW_EMPTY_kernel = "1"
+
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2 \
+ ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-${KV}-rmk${RMKV}.gz;patch=1 \
+ ftp://source.mvista.com/pub/xscale/pxa/diff-${KV}-rmk${RMKV}-pxa${PXAV}.gz;patch=1 \
+ http://developer.ezaurus.com/sl_j/source/c860/${SHARPV}/linux-${PV}-slc860-${SHARPV}-rom1_10.bz2;patch=1 \
+ file://piro.patch;patch=1 \
+ file://swap-performance.patch;patch=1 \
+ file://bluetooth-2.4.18-mh15.patch;patch=1 \
+ file://iw_handlers.w13-5.diff;patch=1 \
+ file://iw_handlers.w14-5.diff;patch=1 \
+ file://iw240_we15-6.diff;patch=1 \
+ file://bt950_cs.patch;patch=1 \
+ file://bluecard_cs.patch;patch=1 \
+ file://sharpsl_battery.patch;patch=1 \
+ file://irda-qos.patch;patch=1 \
+ file://buffered-fbmem.patch;patch=1 \
+ file://enable-sysrq.patch;patch=1 \
+ file://compile.patch;patch=1 \
+ file://idecs.patch;patch=1 \
+ file://logo.patch;patch=1 \
+ file://initsh.patch;patch=1 \
+ file://keyboard-ctrl+alt.patch;patch=1 \
+ file://keymap-more-sane.patch;patch=1 \
+ file://mkdep.patch;patch=1 \
+ file://disable-pcmcia-probe.patch;patch=1 \
+ file://deviceinfo.patch;patch=1 \
+ file://linux-2.4.18-list_move.patch;patch=1 \
+ file://tosa_map.patch;patch=1 \
+ file://tosa_ts.patch;patch=1 \
+ file://corgi-fbcon-logo.patch;patch=1 \
+ http://www.openswan.org/download/openswan-2.2.0-kernel-2.4-klips.patch.gz;patch=1 \
+ file://1764-1.patch;patch=1 \
+ file://module_licence.patch;patch=1 \
+ http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/iw249_we16-6.diff;patch=1 \
+ file://defconfig-${MACHINE} \
+ http://us1.samba.org/samba/ftp/cifs-cvs/cifs-1.20c-2.4.tar.gz "
+
+def get_sysreq_setting(bb, d):
+ if bb.data.getVar('ENABLE_SYSREQ', d, 1) in [ 'yes' ]:
+ return "file://enable-sysrq.patch;patch=1 "
+ return ""
+
+SRC_URI_append_poodle += " file://smallfonts.diff;patch=1"
+# apply this when we have a kernel that builds with gcc 3.x:
+# SRC_URI_append = file://machtune-args.patch;patch=1
+SRC_URI_append_tosa = " file://tosa-power-key-off.patch;patch=1"
+
+S = "${WORKDIR}/linux"
+
+inherit kernel
+
+#
+# Create the kernel command line. CMDLINE_CONSOLE is set through kernel.oeclass.
+#
+CMDLINE_MTDPARTS_poodle = "mtdparts=sharpsl-nand:7168k@0k(smf),22528k@7168k(root),-(home)"
+CMDLINE_MTDPARTS_corgi = "mtdparts=sharpsl-nand:7168k@0k(smf),25600k@7168k(root),-(home)"
+CMDLINE_MTDPARTS_shepherd = "mtdparts=sharpsl-nand:7168k@0k(smf),25600k@7168k(root),-(home)"
+CMDLINE_MTDPARTS_husky = "mtdparts=sharpsl-nand:7168k@0k(smf),54272k@7168k(root),-(home)"
+CMDLINE_MTDPARTS_tosa = "mtdparts=sharpsl-nand:7168k@0k(smf),28672k@7168k(root),-(home) EQUIPMENT=2"
+
+CMDLINE_ROOT = "root=/dev/mtdblock2 rootfstype=jffs2 jffs2_orphaned_inodes=delete"
+CMDLINE = "${CMDLINE_MTDPARTS} ${CMDLINE_ROOT} ${CMDLINE_CONSOLE}"
+
+#
+# Compensate for sucky bootloader on all Sharp Zaurus models
+#
+FILES_kernel = ""
+
+EXTRA_OEMAKE = " EXTRAVERSION=-rmk7-pxa3-embedix-${DISTRO_VERSION} EMBEDIXRELEASE="
+KERNEL_CCSUFFIX = "-2.95"
+KERNEL_LDSUFFIX = "-2.11.2"
+COMPATIBLE_HOST = "arm.*-linux"
+
+module_conf_usbdmonitor = "alias usbd0 usbdmonitor"
+module_conf_pxa_bi = "below pxa_bi net_fd usbdcore "
+module_autoload_pxa_bi = "pxa_bi"
+
+do_configure_prepend() {
+ patch -p1 < cifs_24.patch
+ install -m 0644 ${WORKDIR}/defconfig-${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available."
+ echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
+}
+
+do_deploy() {
+ install -d ${DEPLOY_DIR}/images
+ install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR}/images/${KERNEL_IMAGETYPE}-${MACHINE}-${DATETIME}.bin
+}
+
+do_deploy[dirs] = "${S}"
+
+addtask deploy before do_build after do_compile
diff --git a/packages/linux/openzaurus-sa_2.4.18-rmk7-pxa3-embedix20030509.bb b/packages/linux/openzaurus-sa_2.4.18-rmk7-pxa3-embedix20030509.bb
index e69de29bb2..df4e6ef3a0 100644
--- a/packages/linux/openzaurus-sa_2.4.18-rmk7-pxa3-embedix20030509.bb
+++ b/packages/linux/openzaurus-sa_2.4.18-rmk7-pxa3-embedix20030509.bb
@@ -0,0 +1,95 @@
+SECTION = "kernel"
+PV = "2.4.18-rmk7-pxa3-embedix"
+LICENSE = "GPL"
+KV = "2.4.18"
+RMKV = "7"
+PXAV = "3"
+SHARPV = "20030509"
+PR = "r14"
+DESCRIPTION = "Linux kernel for OpenZaurus StrongArm processor based devices."
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/openzaurus-sa-${KV}-rmk${RMKV}-pxa${PXAV}-embedix${SHARPV}"
+
+SRC_URI = "http://aurach.ewu.edu/ield_software/ch5/ROM3.10_stuff/linux-sl5500-${SHARPV}-rom3_10.tar.bz2 \
+ file://cacko.patch;patch=1 \
+ file://battery.patch;patch=1 \
+ file://bluetooth-2.4.18-mh15.patch;patch=1 \
+ file://iw_handlers.w13-5.diff;patch=1 \
+ file://iw_handlers.w14-5.diff;patch=1 \
+ file://iw240_we15-6.diff;patch=1 \
+ file://idecs.patch;patch=1 \
+ file://logo.patch;patch=1 \
+ file://initsh.patch;patch=1 \
+ file://keymap-more-sane.patch;patch=1 \
+ file://mkdep.patch;patch=1 \
+ file://disable-pcmcia-probe.patch;patch=1 \
+ file://linux-2.4.18-list_move.patch;patch=1 \
+ http://www.openswan.org/download/openswan-2.2.0-kernel-2.4-klips.patch.gz;patch=1 \
+ file://1764-1.patch;patch=1 \
+ file://module_licence.patch;patch=1 \
+ http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/iw249_we16-6.diff;patch=1 \
+ file://defconfig-${MACHINE} \
+ "
+
+# that patch allow to use buzzer as sound device but it removes alarms,
+# touchclicks etc so it is removed until be fixed
+# file://sound-2.4.18r2.patch;patch=1
+
+# apply this when we have a patch that allows building with gcc 3.x:
+# SRC_URI_append = file://gcc-3.3.patch;patch=1
+# SRC_URI_append = file://machtune-args.patch;patch=1
+
+S = "${WORKDIR}/linux"
+
+inherit kernel
+
+#
+# Compensate for sucky bootloader on all Sharp Zaurus models
+#
+FILES_kernel = ""
+ALLOW_EMPTY = 1
+
+KERNEL_CCSUFFIX = "-2.95"
+KERNEL_LDSUFFIX = "-2.11.2"
+COMPATIBLE_HOST = "arm.*-linux"
+EXTRA_OEMAKE = " EXTRAVERSION=-rmk7-pxa3-embedix-${DISTRO_VERSION} EMBEDIXRELEASE="
+
+module_conf_usbdmonitor = "alias usbd0 usbdmonitor"
+module_conf_sa1100_bi = "below sa1100_bi net_fd usbdcore "
+module_autoload_sa1100_bi = "sa1100_bi"
+module_autoload_collie_ssp = "collie_ssp"
+module_autoload_collie_tc35143af = "collie_tc35143af"
+#
+# FIXME: Use configuration system
+#
+export mem = ${@bb.data.getVar("COLLIE_MEMORY_SIZE",d,1) or "32"}
+export rd = ${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}
+export CMDLINE = "${CMDLINE_CONSOLE} root=/dev/mtdblock4 rootfstype=jffs2 jffs2_orphaned_inodes=delete"
+
+do_configure_prepend() {
+ install -m 0644 ${WORKDIR}/defconfig-${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available."
+
+ mempos=`echo "obase=16; $mem * 1024 * 1024" | bc`
+ rdsize=`echo "$rd * 1024" | bc`
+ total=`expr $mem + $rd`
+ addr=`echo "obase=16; ibase=16; C0000000 + $mempos" | bc`
+ if [ "$rd" == "0" ]
+ then
+ echo "# CONFIG_MTD_MTDRAM_SA1100 is not set" >> ${S}/.config
+ else
+ echo "CONFIG_MTD_MTDRAM_SA1100=y" >> ${S}/.config
+ echo "CONFIG_MTDRAM_TOTAL_SIZE=$rdsize" >> ${S}/.config
+ echo "CONFIG_MTDRAM_ERASE_SIZE=1" >> ${S}/.config
+ echo "CONFIG_MTDRAM_ABS_POS=$addr" >> ${S}/.config
+ fi
+ echo "CONFIG_CMDLINE=\"$CMDLINE mem=${mem}M\"" >> ${S}/.config
+}
+
+do_deploy() {
+ install -d ${DEPLOY_DIR}/images
+ install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR}/images/${KERNEL_IMAGETYPE}-${MACHINE}-${DATETIME}.bin
+}
+
+do_deploy[dirs] = "${S}"
+
+addtask deploy before do_build after do_compile
+