Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME := firmware-utils
  9. include $(INCLUDE_DIR)/host-build.mk
  10. include $(INCLUDE_DIR)/kernel.mk
  11. define cc
  12. $(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
  13. endef
  14. define Host/Compile
  15. mkdir -p $(HOST_BUILD_DIR)/bin
  16. $(call cc,addpattern)
  17. $(call cc,asustrx)
  18. $(call cc,trx)
  19. $(call cc,motorola-bin)
  20. $(call cc,dgfirmware)
  21. $(call cc,mksenaofw md5)
  22. $(call cc,trx2usr)
  23. $(call cc,ptgen)
  24. $(call cc,airlink)
  25. $(call cc,srec2bin)
  26. $(call cc,mkmylofw)
  27. $(call cc,mkcsysimg)
  28. $(call cc,mkzynfw)
  29. $(call cc,lzma2eva,-lz)
  30. $(call cc,mkcasfw)
  31. $(call cc,mkfwimage,-lz -Wall)
  32. $(call cc,mkfwimage2,-lz)
  33. $(call cc,imagetag imagetag_cmdline cyg_crc32)
  34. $(call cc,add_header)
  35. $(call cc,makeamitbin)
  36. $(call cc,encode_crc)
  37. $(call cc,nand_ecc)
  38. $(call cc,mkplanexfw sha1)
  39. $(call cc,mktplinkfw md5, -Wall)
  40. $(call cc,mktplinkfw2 md5)
  41. $(call cc,tplink-safeloader md5, -Wall)
  42. $(call cc,pc1crypt)
  43. $(call cc,osbridge-crc)
  44. $(call cc,wrt400n cyg_crc32)
  45. $(call cc,mkdniimg)
  46. $(call cc,mktitanimg)
  47. $(call cc,mkchkimg)
  48. $(call cc,mkzcfw cyg_crc32)
  49. $(call cc,spw303v)
  50. $(call cc,zyxbcm)
  51. $(call cc,trx2edips)
  52. $(call cc,xorimage)
  53. $(call cc,buffalo-enc buffalo-lib, -Wall)
  54. $(call cc,buffalo-tag buffalo-lib, -Wall)
  55. $(call cc,buffalo-tftp buffalo-lib, -Wall)
  56. $(call cc,mkwrgimg md5, -Wall)
  57. $(call cc,mkedimaximg)
  58. $(call cc,mkbrncmdline)
  59. $(call cc,mkbrnimg)
  60. $(call cc,mkdapimg)
  61. $(call cc, mkcameofw, -Wall)
  62. $(call cc,seama md5)
  63. $(call cc,oseama md5, -Wall)
  64. $(call cc,fix-u-media-header cyg_crc32,-Wall)
  65. $(call cc,hcsmakeimage bcmalgo)
  66. $(call cc,mkporayfw, -Wall)
  67. $(call cc,mkhilinkfw, -lcrypto)
  68. $(call cc,mkdcs932, -Wall)
  69. $(call cc,mkheader_gemtek,-lz)
  70. $(call cc,mkrtn56uimg, -lz)
  71. $(call cc,dgn3500sum)
  72. $(call cc,edimax_fw_header, -Wall)
  73. $(call cc,mkmerakifw sha1, -Wall)
  74. $(call cc,jcgimage, -lz -Wall)
  75. endef
  76. define Host/Install
  77. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
  78. endef
  79. $(eval $(call HostBuild))