diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-13 17:32:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-13 17:32:52 -0400 |
commit | 86f69fe9c069dd8608d238581eea259caa1dfc99 (patch) | |
tree | 2a252ac23a60e60b5fa2b6b99d29806d8d2d59be /drivers/staging | |
parent | 5c7514e0610249a4e7710eefd801c2b0442eb8ea (diff) |
Staging: workaround build system bug
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/Makefile | 3 | ||||
-rw-r--r-- | drivers/staging/staging.c | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 93decb89b1d..7c466e94fd9 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile | |||
@@ -1,5 +1,8 @@ | |||
1 | # Makefile for staging directory | 1 | # Makefile for staging directory |
2 | 2 | ||
3 | # fix for build system bug... | ||
4 | obj-$(CONFIG_STAGING) += staging.o | ||
5 | |||
3 | obj-$(CONFIG_ET131X) += et131x/ | 6 | obj-$(CONFIG_ET131X) += et131x/ |
4 | obj-$(CONFIG_SLICOSS) += slicoss/ | 7 | obj-$(CONFIG_SLICOSS) += slicoss/ |
5 | obj-$(CONFIG_SXG) += sxg/ | 8 | obj-$(CONFIG_SXG) += sxg/ |
diff --git a/drivers/staging/staging.c b/drivers/staging/staging.c new file mode 100644 index 00000000000..233e589c093 --- /dev/null +++ b/drivers/staging/staging.c | |||
@@ -0,0 +1,19 @@ | |||
1 | #include <linux/kernel.h> | ||
2 | #include <linux/init.h> | ||
3 | #include <linux/module.h> | ||
4 | |||
5 | static int __init staging_init(void) | ||
6 | { | ||
7 | return 0; | ||
8 | } | ||
9 | |||
10 | static void __exit staging_exit(void) | ||
11 | { | ||
12 | } | ||
13 | |||
14 | module_init(staging_init); | ||
15 | module_exit(staging_exit); | ||
16 | |||
17 | MODULE_AUTHOR("Greg Kroah-Hartman"); | ||
18 | MODULE_DESCRIPTION("Staging Core"); | ||
19 | MODULE_LICENSE("GPL"); | ||