[oe-commits] org.oe.dev packages/linux/linux-sequoia-2.6.21 : Add Denx 2.6.21.git kernel for the Sequoia dev board

ifaistos commit openembedded-commits at lists.openembedded.org
Mon May 28 21:49:48 UTC 2007


packages/linux/linux-sequoia-2.6.21 : Add Denx 2.6.21.git kernel for the Sequoia dev board

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 9058dac506daee114d8f4d65159b774df87bc1e6
ViewMTN: http://monotone.openembedded.org/revision.psp?id=9058dac506daee114d8f4d65159b774df87bc1e6
Files:
1
packages/linux/linux-sequoia-2.6.21
packages/linux/linux-sequoia_2.6.21.bb
Diffs:

#
# mt diff -r6349a352bd2fe9b66209caa3d7407581ee902125 -r9058dac506daee114d8f4d65159b774df87bc1e6
#
# 
# 
# add_dir "packages/linux/linux-sequoia-2.6.21"
# 
# add_file "packages/linux/linux-sequoia_2.6.21.bb"
#  content [91ba088cf6b7afc424eda939be7afb1dd6223594]
# 
============================================================
--- packages/linux/linux-sequoia_2.6.21.bb	91ba088cf6b7afc424eda939be7afb1dd6223594
+++ packages/linux/linux-sequoia_2.6.21.bb	91ba088cf6b7afc424eda939be7afb1dd6223594
@@ -0,0 +1,60 @@
+# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+SECTION = "kernel"
+DESCRIPTION = "Linux kernel for AMCC's Sequoia dev board"
+LICENSE = "GPL"
+PR = "r0"
+#DEPENDS = "u-boot"
+
+COMPATIBLE_MACHINE = "sequoia"
+
+#DENX git kernel
+#Same as in AMCC's sequoia dev kit
+SRC_URI ="git://www.denx.de/git/linux-2.6-denx.git;protocol=git;tag=78157a82fa20719f7e3307307755888e9af2c0e9 \
+          file://sequoia_defconfig "
+
+
+S = "${WORKDIR}/git"
+
+inherit kernel
+
+export ARCH="ppc"
+
+KERNEL_IMAGETYPE = "zImage.elf"
+
+do_configure() {
+                install -m 644 ${WORKDIR}/sequoia_defconfig ${S}/.config
+                make ARCH=${ARCH} oldconfig
+}
+
+do_stage_append () {
+#need ppc platforms includes + friends in order for external kernel modules to compile as headers a$
+
+       install -d ${STAGING_KERNEL_DIR}/arch/
+       cp -a arch/ppc ${STAGING_KERNEL_DIR}/arch/
+       cp -a arch/powerpc ${STAGING_KERNEL_DIR}/arch/
+
+       install -d ${STAGING_KERNEL_DIR}/include/asm
+       cp -a include/asm-powerpc ${STAGING_KERNEL_DIR}/include/
+       cp -a include/asm-ppc ${STAGING_KERNEL_DIR}/include/
+}
+
+
+
+do_deploy() {
+        install -d ${DEPLOY_DIR_IMAGE}
+        install -m 0644 arch/${ARCH}/boot/images/${KERNEL_IMAGETYPE} \
+                 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
+}
+
+#seems like 2.6.21 kernel images have moved (or is this only for the Denx kernel ?)
+#so we need to copy the kernel image where kernel.bbclass expects it to be
+do_install_prepend() {
+        install -m 0644 arch/${ARCH}/boot/images/${KERNEL_IMAGETYPE} \
+                        arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
+}
+
+do_deploy[dirs] = "${S}"
+
+addtask deploy before do_build after do_compile
+






More information about the Openembedded-commits mailing list