[Armadeus-commitlog] SF.net SVN: armadeus:[872] trunk/target/linux/modules/fpga/POD
Brought to you by:
sszy
|
From: <Fa...@us...> - 2008-08-11 08:21:05
|
Revision: 872
http://armadeus.svn.sourceforge.net/armadeus/?rev=872&view=rev
Author: FabM
Date: 2008-08-11 08:21:10 +0000 (Mon, 11 Aug 2008)
Log Message:
-----------
[Drivers][POD] Error patched
Added Paths:
-----------
trunk/target/linux/modules/fpga/POD/void/
trunk/target/linux/modules/fpga/POD/void/Kconfig
trunk/target/linux/modules/fpga/POD/void/Makefile
trunk/target/linux/modules/fpga/POD/void/void.c
Added: trunk/target/linux/modules/fpga/POD/void/Kconfig
===================================================================
--- trunk/target/linux/modules/fpga/POD/void/Kconfig (rev 0)
+++ trunk/target/linux/modules/fpga/POD/void/Kconfig 2008-08-11 08:21:10 UTC (rev 872)
@@ -0,0 +1,10 @@
+#
+#
+
+config VOID_DRIVER
+ tristate "Useless, just to avoid error"
+ default n
+ depends on POD_DRIVERS
+ ---help---
+ Useless, just to avoid error
+
Added: trunk/target/linux/modules/fpga/POD/void/Makefile
===================================================================
--- trunk/target/linux/modules/fpga/POD/void/Makefile (rev 0)
+++ trunk/target/linux/modules/fpga/POD/void/Makefile 2008-08-11 08:21:10 UTC (rev 872)
@@ -0,0 +1,29 @@
+#
+# Makefile for a generic Armadeus drivers
+#
+
+# Part executed when called from kernel build system:
+ifneq ($(KERNELRELEASE),)
+
+obj-$(CONFIG_VOID_DRIVER) += void.o
+
+# Part executed when called from standard make in this directory:
+# (preferably use Makefile in parent directory)
+else
+
+BASE_DIR="../../../../../../buildroot/"
+REL=`grep "BR2_PACKAGE_LINUX_VERSION=" $(BASE_DIR).config | \
+ sed "s/BR2_PACKAGE_LINUX_VERSION=\\"//" | sed "s/\\"//"`
+ARMADEUS_KERNEL_DIR=$(BASE_DIR)build_arm/linux-$(REL)
+KDIR := $(ARMADEUS_KERNEL_DIR)
+PWD := $(shell pwd)
+
+default:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+
+clean:
+ rm -f *.*o
+ rm -f Module.symvers
+
+endif
+
Property changes on: trunk/target/linux/modules/fpga/POD/void/Makefile
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/target/linux/modules/fpga/POD/void/void.c
===================================================================
--- trunk/target/linux/modules/fpga/POD/void/void.c (rev 0)
+++ trunk/target/linux/modules/fpga/POD/void/void.c 2008-08-11 08:21:10 UTC (rev 872)
@@ -0,0 +1,45 @@
+/*
+ **********************************************************************
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ **********************************************************************
+ */
+
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/init.h>
+
+//
+// Module's initialization function
+//
+static int __init void_init(void)
+{
+ printk("Init void module\n");
+
+ return(0);
+}
+
+//
+// Module's cleanup function
+//
+static void __exit void_exit(void)
+{
+ printk("Leave void module\n");
+}
+
+module_init(void_init);
+module_exit(void_exit);
+MODULE_AUTHOR("Fabien Marteau");
+MODULE_DESCRIPTION("Void driver");
+MODULE_LICENSE("GPL");
Property changes on: trunk/target/linux/modules/fpga/POD/void/void.c
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|