Skip to content

Commit

Permalink
Staging: workaround build system bug
Browse files Browse the repository at this point in the history
This is needed as CONFIG_STAGING is set to y, yet there is no code in
drivers/staging/ to build, so the build-in.o doesn't get created
properly.  Create a "dummy" module in drivers/staging called staging.c
to work around this bug.

Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
gregkh committed Oct 13, 2008
1 parent 5c7514e commit 86f69fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/Makefile
@@ -1,5 +1,8 @@
# Makefile for staging directory # Makefile for staging directory


# fix for build system bug...
obj-$(CONFIG_STAGING) += staging.o

obj-$(CONFIG_ET131X) += et131x/ obj-$(CONFIG_ET131X) += et131x/
obj-$(CONFIG_SLICOSS) += slicoss/ obj-$(CONFIG_SLICOSS) += slicoss/
obj-$(CONFIG_SXG) += sxg/ obj-$(CONFIG_SXG) += sxg/
Expand Down
19 changes: 19 additions & 0 deletions drivers/staging/staging.c
@@ -0,0 +1,19 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>

static int __init staging_init(void)
{
return 0;
}

static void __exit staging_exit(void)
{
}

module_init(staging_init);
module_exit(staging_exit);

MODULE_AUTHOR("Greg Kroah-Hartman");
MODULE_DESCRIPTION("Staging Core");
MODULE_LICENSE("GPL");

0 comments on commit 86f69fe

Please sign in to comment.