summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch')
-rw-r--r--meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch b/meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch
new file mode 100644
index 0000000000..82dbfa8699
--- /dev/null
+++ b/meta/recipes-bsp/pcmciautils/pcmciautils-017/makefile_fix.patch
@@ -0,0 +1,99 @@
1rebase the patch to 017, removing hardcoded path for true
2as well. Removing of -D in install invocation is a little
3questionable, is it some GNU extention?
4
507/14/2010 - qhe, original patch note follows
6
7Hardcoded paths are bad...
8
9diff --git a/Makefile b/Makefile
10index 26f3e4b..31f0cdf 100644
11--- a/Makefile
12+++ b/Makefile
13@@ -69,7 +69,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@@ -171,7 +171,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@@ -264,30 +264,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@@ -296,22 +298,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: