linux-atm: fix path to the correct objcopy tool
authorFelix Fietkau <nbd@openwrt.org>
Tue, 1 Feb 2011 18:58:48 +0000 (18:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Feb 2011 18:58:48 +0000 (18:58 +0000)
SVN-Revision: 25285

package/linux-atm/Makefile
package/linux-atm/patches/300-objcopy_path.patch [new file with mode: 0644]

index 8a759df566a3c65a24d1d84be136486e418349b0..b88928df874d87e89c29c717d8d5c00ca9aa1f37 100644 (file)
@@ -68,7 +68,7 @@ define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src/qgen \
                LDFLAGS="" \
                all
-       $(MAKE) -C $(PKG_BUILD_DIR) all
+       $(MAKE) -C $(PKG_BUILD_DIR) OBJCOPY=$(TARGET_CROSS)objcopy all
 endef
 
 define Build/InstallDev
diff --git a/package/linux-atm/patches/300-objcopy_path.patch b/package/linux-atm/patches/300-objcopy_path.patch
new file mode 100644 (file)
index 0000000..4f11516
--- /dev/null
@@ -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.