summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils/files/program_prefix.patch
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/files/program_prefix.patch
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/files/program_prefix.patch')
-rw-r--r--meta/recipes-kernel/modutils/files/program_prefix.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-kernel/modutils/files/program_prefix.patch b/meta/recipes-kernel/modutils/files/program_prefix.patch
new file mode 100644
index 0000000000..2927a23a22
--- /dev/null
+++ b/meta/recipes-kernel/modutils/files/program_prefix.patch
@@ -0,0 +1,69 @@
1--- modutils-2.4.25/Makefile.common.in Sun Nov 24 21:23:35 2002
2+++ modutils-2.4.25/Makefile.common.in Thu Jan 29 17:16:30 2004
3@@ -7,6 +7,7 @@
4 mandir = @mandir@
5 prefix = @prefix@
6 sbindir = @sbindir@
7+transform = @program_transform_name@
8
9 AR = @AR@
10 ARCH = @ARCH@
11--- modutils-2.4.25/configure.in Thu Jan 29 17:24:10 2004
12+++ modutils-2.4.25/configure.in Thu Jan 29 17:13:59 2004
13@@ -17,6 +17,7 @@
14 export CC_FOR_BUILD
15
16 AC_CANONICAL_TARGET([])
17+AC_ARG_PROGRAM
18
19 # Handle target_cpu for compatibility.
20 if test "$host_cpu" != "$target_cpu"; then
21--- modutils-2.4.25/depmod/Makefile.in Fri Mar 28 17:54:20 2003
22+++ modutils-2.4.25/depmod/Makefile.in Thu Jan 29 17:16:41 2004
23@@ -60,7 +60,7 @@
24
25 install install-bin: all
26 $(MKDIR) $(DESTDIR)$(sbindir)
27- $(INSTALL) $(STRIP) depmod $(DESTDIR)$(sbindir)
28+ $(INSTALL) $(STRIP) depmod $(DESTDIR)$(sbindir)/`echo depmod | sed -e'$(transform)'`
29
30 dep depend .depend: depmod.c
31 $(CC) -M $(CFLAGS) $(DEFSNOARCH) $(DEFS) $^ > .depend
32--- modutils-2.4.25/genksyms/Makefile.in Sun Nov 24 21:23:35 2002
33+++ modutils-2.4.25/genksyms/Makefile.in Thu Jan 29 17:17:07 2004
34@@ -62,7 +62,7 @@
35
36 install install-bin: all
37 $(MKDIR) $(DESTDIR)$(sbindir)
38- $(INSTALL) $(STRIP) genksyms $(DESTDIR)$(sbindir)
39+ $(INSTALL) $(STRIP) genksyms $(DESTDIR)$(sbindir)/`echo genksyms | sed -e'$(transform)'`
40
41 # auto-generated dependancies are almost redundant once we add all the
42 # rules to get the generated files built first.
43--- modutils-2.4.25/insmod/Makefile.in Fri Mar 28 17:54:20 2003
44+++ modutils-2.4.25/insmod/Makefile.in Thu Jan 29 17:21:10 2004
45@@ -120,16 +120,19 @@
46 @set -ex;\
47 for i in $(TARGETS_REAL); do \
48 $(MKDIR) $(DESTDIR)$(sbindir); \
49- $(INSTALL) $(STRIP) $$i $(DESTDIR)$(sbindir); done;
50+ f=`echo $$i|sed -e'$(transform)'`; \
51+ $(INSTALL) $(STRIP) $$i $(DESTDIR)$(sbindir)/$$f; done;
52 set -e; \
53- for i in $(srcdir)/insmod_ksymoops_clean $(srcdir)/kernelversion; do \
54+ for i in insmod_ksymoops_clean kernelversion; do \
55 $(MKDIR) $(DESTDIR)$(sbindir); \
56- $(INSTALL) $$i $(DESTDIR)$(sbindir); done;
57+ f=`echo $$i|sed -e'$(transform)'`; \
58+ $(INSTALL) $$i $(DESTDIR)$(sbindir)/$$f; done;
59 set -e; \
60 for i in $(COMB); do \
61- ln -sf insmod $(DESTDIR)$(sbindir)/$$i; \
62+ f=`echo $$i|sed -e'$(transform)'`; \
63+ ln -sf `echo insmod|sed -e'$(transform)'` $(DESTDIR)$(sbindir)/$$f; \
64 (test "$(insmod_static)" = yes && \
65- ln -sf insmod.static $(DESTDIR)$(sbindir)/$$i.static) || true; \
66+ ln -sf `echo insmod.static|sed -e'$(transform)'` $(DESTDIR)$(sbindir)/$$f.static) || true; \
67 done
68
69 clean: