aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@buglabs.net>2011-02-03 14:50:18 +0100
committerStefan Schmidt <stefan@buglabs.net>2011-02-03 14:58:24 +0100
commit1206aa00bf4bf7ef3630e7edc6add7c83addc8ae (patch)
treee1bdf2db8bb8723bd2f2bf272fb638186c9e3a6a
parentb0170b91b7c8b9e3144b2a50abc937fd83fd8f28 (diff)
downloadopenembedded-1206aa00bf4bf7ef3630e7edc6add7c83addc8ae.tar.gz
openembedded-1206aa00bf4bf7ef3630e7edc6add7c83addc8ae.tar.bz2
openembedded-1206aa00bf4bf7ef3630e7edc6add7c83addc8ae.zip
linux-bug20-linaro_2.6.35: Add experimental recipe
-rw-r--r--recipes/linux/linux-bug20-linaro_2.6.35.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/linux/linux-bug20-linaro_2.6.35.bb b/recipes/linux/linux-bug20-linaro_2.6.35.bb
new file mode 100644
index 0000000000..6f1bafe5d8
--- /dev/null
+++ b/recipes/linux/linux-bug20-linaro_2.6.35.bb
@@ -0,0 +1,42 @@
+require linux.inc
+
+DESCRIPTION = "Linux kernel for BUG20 based on the Linaro kernel tree"
+KERNEL_IMAGETYPE = "uImage"
+
+COMPATIBLE_MACHINE = "bug20"
+
+PR = "r0"
+
+SRCREV = "be4f840306ef858cffc182cde38714f9423bdeb3"
+
+
+SRC_URI = "git://github.com/buglabs/bug20-2.6.35-linaro.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+do_configure_prepend() {
+ cp arch/arm/configs/omap3_buglabs_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"