summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils/modutils-cross
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/modutils/modutils-cross
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/modutils/modutils-cross')
-rw-r--r--meta/recipes-kernel/modutils/modutils-cross/module.h.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-kernel/modutils/modutils-cross/module.h.diff b/meta/recipes-kernel/modutils/modutils-cross/module.h.diff
new file mode 100644
index 0000000000..077baaf3eb
--- /dev/null
+++ b/meta/recipes-kernel/modutils/modutils-cross/module.h.diff
@@ -0,0 +1,33 @@
1diff -urN modutils-2.4.27.orig/include/module.h modutils-2.4.27/include/module.h
2--- modutils-2.4.27.orig/include/module.h 2003-01-27 11:22:02.000000000 -0500
3+++ modutils-2.4.27/include/module.h 2004-08-23 19:52:34.756772712 -0400
4@@ -88,6 +88,20 @@
5 /* For sizeof() which are related to the module platform and not to the
6 environment isnmod is running in, use sizeof_xx instead of sizeof(xx). */
7
8+/* Additional test for OE, set tgt_blah correct for the target arch, *not* the
9+ native arch. If int isn't 32bit on the native machine we're in trouble. */
10+
11+#ifdef ARCH_arm
12+#define tgt_sizeof_char sizeof(char)
13+#define tgt_sizeof_short sizeof(short)
14+#define tgt_sizeof_int sizeof(int)
15+#define tgt_sizeof_long 4
16+#define tgt_sizeof_char_p 4
17+#define tgt_sizeof_void_p 4
18+#define tgt_long int
19+#define tgt_long_fmt "l"
20+#define tgt_strtoul strtoul
21+#else
22 #define tgt_sizeof_char sizeof(char)
23 #define tgt_sizeof_short sizeof(short)
24 #define tgt_sizeof_int sizeof(int)
25@@ -97,7 +111,7 @@
26 #define tgt_long long
27 #define tgt_long_fmt "l"
28 #define tgt_strtoul strtoul
29-
30+#endif
31 /* This assumes that long long on a 32 bit system is equivalent to long on the
32 * equivalent 64 bit system. Also that void and char pointers are 8 bytes on
33 * all 64 bit systems. Add per system tweaks if it ever becomes necessary.