1
0

300-objcopy_path.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/src/extra/Makefile.am
  2. +++ b/src/extra/Makefile.am
  3. @@ -7,6 +7,8 @@ EXTRA_DIST = linux-atm.spec.in \
  4. BUILT_SOURCES = pca200e.bin pca200e_ecd.bin2 sba200e_ecd.bin2
  5. CLEANFILES = pca200e.bin pca200e_ecd.bin2 sba200e_ecd.bin2
  6. +OBJCOPY = objcopy
  7. +
  8. install-exec-hook:
  9. $(MKDIR_P) $(DESTDIR)/lib/firmware
  10. $(INSTALL_DATA) $(srcdir)/pca200e.bin $(DESTDIR)/lib/firmware
  11. @@ -14,7 +16,7 @@ install-exec-hook:
  12. $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
  13. %.bin %.bin2: %.data
  14. - objcopy -Iihex $< -Obinary $@.gz
  15. + $(OBJCOPY) -Iihex $< -Obinary $@.gz
  16. gzip -n -df $@.gz
  17. --- a/src/extra/Makefile.in
  18. +++ b/src/extra/Makefile.in
  19. @@ -187,6 +187,8 @@ CLEANFILES = pca200e.bin pca200e_ecd.bin
  20. all: $(BUILT_SOURCES)
  21. $(MAKE) $(AM_MAKEFLAGS) all-am
  22. +OBJCOPY = objcopy
  23. +
  24. .SUFFIXES:
  25. $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  26. @for dep in $?; do \
  27. @@ -385,7 +387,7 @@ install-exec-hook:
  28. $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
  29. %.bin %.bin2: %.data
  30. - objcopy -Iihex $< -Obinary $@.gz
  31. + $(OBJCOPY) -Iihex $< -Obinary $@.gz
  32. gzip -n -df $@.gz
  33. # Tell versions [3.59,3.63) of GNU make to not export all variables.