aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux-atm/patches/300-objcopy_path.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-01 18:58:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-02-01 18:58:48 +0000
commit976698017418ed4490ba79dd8a40ac229740fec4 (patch)
treef61f8261d4c1f1febdbd706d0d0e4017afd3ecd1 /package/linux-atm/patches/300-objcopy_path.patch
parente36a6abcd31d1096053f0e7f6ddc9cd113440565 (diff)
downloadupstream-976698017418ed4490ba79dd8a40ac229740fec4.tar.gz
upstream-976698017418ed4490ba79dd8a40ac229740fec4.tar.bz2
upstream-976698017418ed4490ba79dd8a40ac229740fec4.zip
linux-atm: fix path to the correct objcopy tool
SVN-Revision: 25285
Diffstat (limited to 'package/linux-atm/patches/300-objcopy_path.patch')
-rw-r--r--package/linux-atm/patches/300-objcopy_path.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/linux-atm/patches/300-objcopy_path.patch b/package/linux-atm/patches/300-objcopy_path.patch
new file mode 100644
index 0000000000..4f11516b2f
--- /dev/null
+++ b/package/linux-atm/patches/300-objcopy_path.patch
@@ -0,0 +1,40 @@
+--- a/src/extra/Makefile.am
++++ b/src/extra/Makefile.am
+@@ -7,6 +7,8 @@ EXTRA_DIST = linux-atm.spec.in \
+ BUILT_SOURCES = pca200e.bin pca200e_ecd.bin2 sba200e_ecd.bin2
+ CLEANFILES = pca200e.bin pca200e_ecd.bin2 sba200e_ecd.bin2
+
++OBJCOPY = objcopy
++
+ install-exec-hook:
+ $(MKDIR_P) $(DESTDIR)/lib/firmware
+ $(INSTALL_DATA) $(srcdir)/pca200e.bin $(DESTDIR)/lib/firmware
+@@ -14,7 +16,7 @@ install-exec-hook:
+ $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
+
+ %.bin %.bin2: %.data
+- objcopy -Iihex $< -Obinary $@.gz
++ $(OBJCOPY) -Iihex $< -Obinary $@.gz
+ gzip -n -df $@.gz
+
+
+--- a/src/extra/Makefile.in
++++ b/src/extra/Makefile.in
+@@ -187,6 +187,8 @@ CLEANFILES = pca200e.bin pca200e_ecd.bin
+ all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
++OBJCOPY = objcopy
++
+ .SUFFIXES:
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+@@ -385,7 +387,7 @@ install-exec-hook:
+ $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
+
+ %.bin %.bin2: %.data
+- objcopy -Iihex $< -Obinary $@.gz
++ $(OBJCOPY) -Iihex $< -Obinary $@.gz
+ gzip -n -df $@.gz
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.