summaryrefslogtreecommitdiff
path: root/packages/linux/linux-titan-sh4_2.6.17.bb
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-07-06 14:41:19 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-06 14:41:19 +0000
commit4777a70d6665e319ae3723b5e75f67ed0f10997d (patch)
treed3166fa743d0506deb0825d1027c22c1e48f897e /packages/linux/linux-titan-sh4_2.6.17.bb
parent9bfbf27d78e0edd5f639c2eaee98f5e506ce7cc6 (diff)
linux/linux-titan-sh4: Upgrade the titan kernel from 2.6.16 to 2.6.17 now
that the sh tree has been upgraded to 2.6.17.
Diffstat (limited to 'packages/linux/linux-titan-sh4_2.6.17.bb')
-rw-r--r--packages/linux/linux-titan-sh4_2.6.17.bb50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/linux/linux-titan-sh4_2.6.17.bb b/packages/linux/linux-titan-sh4_2.6.17.bb
new file mode 100644
index 0000000000..7d59400723
--- /dev/null
+++ b/packages/linux/linux-titan-sh4_2.6.17.bb
@@ -0,0 +1,50 @@
+SECTION = "kernel"
+DESCRIPTION = "Linux kernel for SH4 based TITAN router appliance"
+LICENSE = "GPL"
+MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>
+PR = "r0"
+
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
+ cvs://anonymous@linuxsh.cvs.sourceforge.net/cvsroot/linuxsh;module=linux;date=20060706 \
+ file://titan-flash.patch;patch=1 \
+ file://titan-config"
+S = "${WORKDIR}/linux-${PV}"
+
+COMPATIBLE_HOST = 'sh4.*-linux'
+
+inherit kernel
+
+ARCH = "sh"
+KERNEL_IMAGETYPE = "zImage"
+KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
+
+# Fix up kernel version - sh kernels get -sh added automatically
+KERNEL_RELEASE = "${KERNEL_VERSION}"
+
+#
+# The linux-sh cvs tree is a "drop in source tree" and needs to be copied
+# over the top of the normal linux source since it only includes modified
+# files.
+#
+do_unpack_extra(){
+ cp -pPR ${WORKDIR}/linux/* ${S}
+}
+addtask unpack_extra after do_unpack before do_patch
+
+#
+# Use an updated defconfig which includes the flash driver
+# The flash driver quality doesn't allow it to be a part of the main kernel
+#
+do_configure_prepend() {
+ install -m 0644 ${WORKDIR}/titan-config ${S}/arch/sh/configs/titan_defconfig
+ yes '' | oe_runmake titan_defconfig
+}
+
+#
+# Should I make the nfs boot image?
+#
+#do_deploy_titan() {
+# To NFS boot you need to objcopy the image...
+# ${HOST_PREFIX}objcopy -O binary -R .note -R .comment -S arch/sh/boot/compressed/vmlinux ${DEPLOY_DIR}/linux.bin
+#}
+#addtask deploy before do_build after do_compile