Yocto BSP Summit Presentation

From Yocto Project
(Difference between revisions)
Jump to: navigation, search
(Created page with "This is the yocto-testmod.patch file mentioned in the presentation: diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 6a1a092..b6165b6 100644 --- a/drivers/misc/...")
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
The slides for the Yocto BSP Summit BSP Format Presentation are available here:
 +
 +
[[File:Yocto-bsp-summit-2012-bsp-format.pdf]]
 +
 
This is the yocto-testmod.patch file mentioned in the presentation:
 
This is the yocto-testmod.patch file mentioned in the presentation:
  

Latest revision as of 09:22, 1 April 2012

The slides for the Yocto BSP Summit BSP Format Presentation are available here:

File:Yocto-bsp-summit-2012-bsp-format.pdf

This is the yocto-testmod.patch file mentioned in the presentation:

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 6a1a092..b6165b6 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -392,6 +392,11 @@ config HMC6352
 	  This driver provides support for the Honeywell HMC6352 compass,
 	  providing configuration and heading data via sysfs.
 
+config YOCTO_TESTMOD
+	tristate "Yocto Test Driver"
+	help
+	  This driver provides a silly message for testing Yocto.
+
 config EP93XX_PWM
 	tristate "EP93xx PWM support"
 	depends on ARCH_EP93XX
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 3e1d801..11384d8 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -36,6 +36,7 @@ obj-$(CONFIG_TI_DAC7512)	+= ti_dac7512.o
 obj-$(CONFIG_C2PORT)		+= c2port/
 obj-$(CONFIG_IWMC3200TOP)      += iwmc3200top/
 obj-$(CONFIG_HMC6352)		+= hmc6352.o
+obj-$(CONFIG_YOCTO_TESTMOD)	+= yocto-testmod.o
 obj-y				+= eeprom/
 obj-y				+= cb710/
 obj-$(CONFIG_SPEAR13XX_PCIE_GADGET)	+= spear13xx_pcie_gadget.o
diff --git a/drivers/misc/yocto-testmod.c b/drivers/misc/yocto-testmod.c
new file mode 100644
index 0000000..81de912
--- /dev/null
+++ b/drivers/misc/yocto-testmod.c
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2012 Intel Corporation
+ * Authored-by:  Tom Zanussi <tom.zanussi@intel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <linux/module.h>
+
+static int __init yocto_testmod_init(void)
+{
+	printk("Kilroy was here! __m_(OuO)_m__");
+}
+
+static void __exit yocto_testmod_exit(void)
+{
+	printk("Kilroy was not here!");
+}
+
+module_init(yocto_testmod_init);
+module_exit(yocto_testmod_exit);
+
+MODULE_AUTHOR("Tom Zanussi <tom.zanussi@intel.com");
+MODULE_DESCRIPTION("Yocto Test Driver");
+MODULE_LICENSE("GPL");

These are the contents of the yocto-testmod.cfg file mentioned in the presentation:

CONFIG_MISC_DEVICES=y
CONFIG_YOCTO_TESTMOD=y
Personal tools