diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-19 16:19:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-24 22:50:42 +0100 |
commit | 6da7fc5ceabaf45e933b56bcc69d25f1f9f73821 (patch) | |
tree | 5277e212af144606111c10d349aedbbe3f51acde /meta/recipes-bsp/pcmciautils/pcmciautils-018 | |
parent | 30b44d9e67493dbd5771817dc3a9e6edc4471352 (diff) | |
download | poky-6da7fc5ceabaf45e933b56bcc69d25f1f9f73821.tar.gz |
pcmciautils: Upgrade 017 -> 018
version workaround is done in recipe itself
by adding PV to CFLAGS
(From OE-Core rev: 7899ea60ec0f39a465166eea196a5b554e5cd3f5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/pcmciautils/pcmciautils-018')
-rw-r--r-- | meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_fix.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_fix.patch b/meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_fix.patch new file mode 100644 index 0000000000..81269c9a0e --- /dev/null +++ b/meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_fix.patch | |||
@@ -0,0 +1,99 @@ | |||
1 | Hardcoded paths are bad... | ||
2 | This lets us use the install from OE's native sysroot | ||
3 | rebase the patch to 018, removing hardcoded path for true | ||
4 | as well. Removing of -D in install invocation is a little | ||
5 | questionable, is it some GNU extention? | ||
6 | |||
7 | -Khem Raj <raj.khem@gmail.com> | ||
8 | |||
9 | Index: pcmciautils-018/Makefile | ||
10 | =================================================================== | ||
11 | --- pcmciautils-018.orig/Makefile | ||
12 | +++ pcmciautils-018/Makefile | ||
13 | @@ -76,7 +76,7 @@ sbindir = ${exec_prefix}/sbin | ||
14 | mandir = ${prefix}/usr/share/man | ||
15 | udevdir = ${prefix}/lib/udev | ||
16 | |||
17 | -INSTALL = /usr/bin/install -c | ||
18 | +INSTALL = install -c | ||
19 | INSTALL_PROGRAM = ${INSTALL} | ||
20 | INSTALL_DATA = ${INSTALL} -m 644 | ||
21 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | ||
22 | @@ -180,7 +180,7 @@ endif | ||
23 | # if DEBUG is enabled, then we do not strip or optimize | ||
24 | ifeq ($(strip $(DEBUG)),true) | ||
25 | CFLAGS += -O1 -g -DDEBUG -D_GNU_SOURCE | ||
26 | - STRIPCMD = /bin/true -Since_we_are_debugging | ||
27 | + STRIPCMD = true -Since_we_are_debugging | ||
28 | else | ||
29 | CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE | ||
30 | STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment | ||
31 | @@ -273,30 +273,32 @@ clean: | ||
32 | |||
33 | install-hotplug: | ||
34 | $(INSTALL) -d $(DESTDIR)$(hotplugdir) | ||
35 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.agent | ||
36 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia.rc $(DESTDIR)$(hotplugdir)/pcmcia.rc | ||
37 | + $(INSTALL_PROGRAM) hotplug/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.agent | ||
38 | + $(INSTALL_PROGRAM) hotplug/pcmcia.rc $(DESTDIR)$(hotplugdir)/pcmcia.rc | ||
39 | |||
40 | uninstall-hotplug: | ||
41 | - rm -f $(DESTDIR)$(hotplugdir)/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.rc | ||
42 | |||
43 | install-socket-hotplug: | ||
44 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent | ||
45 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | ||
46 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent | ||
47 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | ||
48 | |||
49 | uninstall-socket-hotplug: | ||
50 | - rm -f $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | ||
51 | |||
52 | install-socket-tools: | ||
53 | - $(INSTALL_PROGRAM) -D $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) | ||
54 | + $(INSTALL) -d $(DESTDIR)$(udevhelperdir) | ||
55 | + $(INSTALL_PROGRAM) $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) | ||
56 | |||
57 | uninstall-socket-tools: | ||
58 | - rm -f $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) | ||
59 | |||
60 | install-tools: | ||
61 | $(INSTALL) -d $(DESTDIR)$(sbindir) | ||
62 | - $(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) | ||
63 | + $(INSTALL) -d $(DESTDIR)$(udevhelperdir) | ||
64 | + $(INSTALL_PROGRAM) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) | ||
65 | $(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA) | ||
66 | - $(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS) | ||
67 | + $(INSTALL_PROGRAM) $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS) | ||
68 | |||
69 | uninstall-tools: | ||
70 | - rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL) | ||
71 | @@ -305,22 +307,24 @@ uninstall-tools: | ||
72 | |||
73 | install-config: | ||
74 | $(INSTALL) -d $(DESTDIR)$(pcmciaconfdir) | ||
75 | - $(INSTALL_DATA) -D config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts | ||
76 | + $(INSTALL_DATA) config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts | ||
77 | if [ -f config/config.opts.$(ARCH) ]; then \ | ||
78 | - $(INSTALL_DATA) -D config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \ | ||
79 | + $(INSTALL_DATA) config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \ | ||
80 | fi | ||
81 | |||
82 | uninstall-config: | ||
83 | # - rm -f $(DESTDIR)$(pcmciaconfdir)/config.opts | ||
84 | |||
85 | install-udev: | ||
86 | - $(INSTALL_DATA) -D $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | ||
87 | + $(INSTALL) -d $(DESTDIR)$(udevrulesdir) | ||
88 | + $(INSTALL_DATA) $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | ||
89 | |||
90 | uninstall-udev: | ||
91 | - rm -f $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | ||
92 | |||
93 | install-man: | ||
94 | - $(INSTALL_DATA) -D man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 | ||
95 | + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | ||
96 | + $(INSTALL_DATA) man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 | ||
97 | $(SYMLINK) pccardctl.8 $(DESTDIR)$(mandir)/man8/lspcmcia.8 | ||
98 | |||
99 | uninstall-man: | ||