diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-01 18:58:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-01 18:58:48 +0000 |
commit | d6b56c1112e938ffc3b0cbf868368bc74eb83f0f (patch) | |
tree | 8f81995ade8d4d7ef5a6823798b1185f4e72f65a /package/linux-atm | |
parent | a2c52a899519ad6e13b5badb75d448297e36cc10 (diff) | |
download | master-187ad058-d6b56c1112e938ffc3b0cbf868368bc74eb83f0f.tar.gz master-187ad058-d6b56c1112e938ffc3b0cbf868368bc74eb83f0f.tar.bz2 master-187ad058-d6b56c1112e938ffc3b0cbf868368bc74eb83f0f.zip |
linux-atm: fix path to the correct objcopy tool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25285 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux-atm')
-rw-r--r-- | package/linux-atm/Makefile | 2 | ||||
-rw-r--r-- | package/linux-atm/patches/300-objcopy_path.patch | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/package/linux-atm/Makefile b/package/linux-atm/Makefile index 8a759df566..b88928df87 100644 --- a/package/linux-atm/Makefile +++ b/package/linux-atm/Makefile @@ -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 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. |