DESCRIPTION = "Linux kernel for OpenZaurus PXA processor based devices." SECTION = "kernel" LICENSE = "GPLv2" PV = "2.4.18-rmk7-pxa3-embedix" PR = "r46" KV = "2.4.18" RMKV = "7" PXAV = "3" SHARPV = "20031107" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/openzaurus-pxa-${KV}-rmk${RMKV}-pxa${PXAV}-embedix${SHARPV}" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2;name=kernel \ ftp://ftp.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-${KV}-rmk${RMKV}.gz;apply=yes;name=patch1 \ ftp://source.mvista.com/pub/xscale/pxa/diff-${KV}-rmk${RMKV}-pxa${PXAV}.gz;apply=yes;name=patch2 \ http://openzaurus.org/mirror/linux-${PV}-slc860-${SHARPV}-rom1_10.bz2;apply=yes;name=patch3 \ file://piro.patch;apply=yes \ file://swap-performance.patch;apply=yes \ file://bluetooth-2.4.18-mh15.patch;apply=yes \ file://iw_handlers.w13-5.diff;apply=yes \ file://iw_handlers.w14-5.diff;apply=yes \ file://iw240_we15-6.diff;apply=yes \ file://iw249_we16-6.diff;apply=yes \ file://iw249_we17-13.diff;apply=yes \ file://iw240_we18-5.diff;apply=yes \ file://bt950_cs.patch;apply=yes \ file://bluecard_cs.patch;apply=yes \ file://sharpsl_battery.patch;apply=yes \ file://buffered-fbmem.patch;apply=yes \ file://enable-sysrq.patch;apply=yes \ file://compile.patch;apply=yes \ file://idecs.patch;apply=yes \ file://logo.patch;apply=yes \ file://initsh.patch;apply=yes \ file://keyboard-ctrl+alt.patch;apply=yes \ file://keymap-more-sane.patch;apply=yes \ file://mkdep.patch;apply=yes \ file://disable-pcmcia-probe.patch;apply=yes \ file://deviceinfo.patch;apply=yes \ file://linux-2.4.18-list_move.patch;apply=yes \ file://tosa_map.patch;apply=yes \ file://tosa_ts.patch;apply=yes \ file://corgi-fbcon-logo.patch;apply=yes \ file://corgi-default-brightness.patch;apply=yes \ http://www.openswan.org/download/old/openswan-2.2.0-kernel-2.4-klips.patch.gz;apply=yes;name=patch4 \ file://1764-1.patch;apply=yes \ file://module_licence.patch;apply=yes \ file://ir240_sys_max_tx-2.diff;apply=yes \ file://ir241_qos_param-2.diff;apply=yes \ http://us1.samba.org/samba/ftp/cifs-cvs/cifs-1.20c-2.4.tar.gz;name=patch5 \ file://fix_tosa_apm.patch;apply=yes \ file://dumb-hack-for-wlan-ng.patch;apply=yes \ file://unb0rk-apm.patch;apply=yes \ file://apm_arrowkey.patch;apply=yes \ file://defconfig-${MACHINE} " SRC_URI_append_poodle += " file://smallfonts.diff;apply=yes" SRC_URI_append_poodle255 += " file://smallfonts.diff;apply=yes" # apply this when we have a kernel that builds with gcc 3.x: # SRC_URI_append = file://machtune-args.patch;apply=yes SRC_URI_append_tosa = " file://tosa-power-key-off.patch;apply=yes" 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_poodle255 = "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_INIT = "init=/bin/busybox ash" CMDLINE_INIT = " " CMDLINE = "${CMDLINE_MTDPARTS} ${CMDLINE_ROOT} ${CMDLINE_CONSOLE} ${CMDLINE_INIT}" # # Compensate for sucky bootloader on all Sharp Zaurus models # ALLOW_EMPTY = "1" FILES_kernel-image = "" EXTRA_OEMAKE = " EMBEDIXRELEASE=-${DISTRO_VERSION}" KERNEL_CCSUFFIX = "-2.95" KERNEL_LDSUFFIX = "-2.11.2" COMPATIBLE_HOST = "arm.*-linux" # For these old 2.4 kernels we override in sharprom-compatible.conf #COMPATIBLE_MACHINE = "(poodle|corgi|shepherd|husky|poodle255|tosa)" COMPATIBLE_MACHINE = "none" PARALLEL_MAKE = "" # # autoload modules # 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 } PACKAGE_ARCH_corgi = "c7x0" PACKAGE_ARCH_shepherd = "c7x0" PACKAGE_ARCH_husky = "c7x0" SRC_URI[kernel.md5sum] = "ad92859baaa837847b34d842b9f39d38" SRC_URI[kernel.sha256sum] = "90d9a45ba395f742050f791b6944f6263d0ab03c84aad8a32967ca866906490e" SRC_URI[patch1.md5sum] = "90c1cfbc47c7069a14a5cb584a5ada9a" SRC_URI[patch1.sha256sum] = "8cbde563f5b77a7cf5ab900e7e627c493c1e36948b2c021b4738de82ca686d00" SRC_URI[patch2.md5sum] = "249c7a63a506d302c96be26517a70298" SRC_URI[patch2.sha256sum] = "ca569dfa1e5cfd2f4134f3f61f667bcfab5e15c7d43c8a6e835d384ac5b31a07" SRC_URI[patch3.md5sum] = "c90b4f5cabe9c0dfd3a25d9228c97b43" SRC_URI[patch3.sha256sum] = "b0d64fb17e52fb0df38c7dcbe14e21e1f6601ba21f805e17dd6eea636d6fd28b" SRC_URI[patch4.md5sum] = "5c54040bba6fea2bfb47df01056e953f" SRC_URI[patch4.sha256sum] = "d35213dc854f1e1a08512154c7a92fb94d9f0506cc5107f8b2f248412679fb53" SRC_URI[patch5.md5sum] = "f3b96692f679239488de30f2bd896825" SRC_URI[patch5.sha256sum] = "885eda0bbe68018b5770437e542473508f88205bb09cbfde7fc6e0c31f5a6f83"