[oe-commits] Stefan Schmidt : linux-omap-hah_2.6.31: Add kernel recipe for bug20

git version control git at git.openembedded.org
Tue Aug 24 18:21:16 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: bdf185ef3fc01d67487c44f6b4ef9124604de81f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bdf185ef3fc01d67487c44f6b4ef9124604de81f

Author: Stefan Schmidt <stefan at datenfreihafen.org>
Date:   Tue Aug 24 20:17:19 2010 +0200

linux-omap-hah_2.6.31: Add kernel recipe for bug20

---

 recipes/linux/linux-omap-hah_2.6.31.bb |   43 ++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux-omap-hah_2.6.31.bb b/recipes/linux/linux-omap-hah_2.6.31.bb
new file mode 100644
index 0000000..cc7fbf9
--- /dev/null
+++ b/recipes/linux/linux-omap-hah_2.6.31.bb
@@ -0,0 +1,43 @@
+require linux.inc
+
+DESCRIPTION = "Linux kernel for OMAP processors"
+KERNEL_IMAGETYPE = "uImage"
+
+COMPATIBLE_MACHINE = "bug20"
+
+MACHINE_KERNEL_PR = "r93"
+
+SRCREV = "070d5214ded7ae675fe0d3e715e40decdfcfc00d"
+
+SRC_URI = "git://github.com/buglabs/bug20-2.6.31-omap.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+CVS_TARBALL_STASH = ""
+
+do_configure_prepend() {
+	cp arch/arm/configs/omap3_bug_defconfig ${WORKDIR}/defconfig
+}
+
+do_configure_append() {
+	sed -i -e "s/CONFIG_LOCALVERSION=\"\"/CONFIG_LOCALVERSION=\"-${PR}\"/g" ${S}/.config
+}
+
+# Make BMI header files available for JNI
+do_install_append() {
+	install -d ${D}${includedir}/linux/bmi/
+	install -m 0644 ${S}/include/linux/bmi/*.h ${D}${includedir}/linux/bmi/
+
+	install -d ${D}${sysconfdir}/
+	echo "BUG Kernel Information" > ${D}${sysconfdir}/kernelinfo
+	date >> ${D}${sysconfdir}/kernelinfo
+	whoami >> ${D}${sysconfdir}/kernelinfo
+	echo "git rev: ${SRCREV}" >> ${D}${sysconfdir}/kernelinfo
+}
+
+PACKAGES += "kernel-headers"
+FILES_kernel-headers = "${includedir}/linux/bmi"
+FILES_kernel-image += "${sysconfdir}/kernelinfo"
+
+module_conf_g_file_storage = "options g_file_storage file=/dev/mmcblk1 removable=y"
+module_autoload_g_file_storage = "g_file_storage"





More information about the Openembedded-commits mailing list