1
0

Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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,srec2bin)
  25. $(call cc,mkmylofw)
  26. $(call cc,mkcsysimg)
  27. $(call cc,mkzynfw)
  28. $(call cc,lzma2eva,-lz)
  29. $(call cc,mkcasfw)
  30. $(call cc,mkfwimage,-lz -Wall)
  31. $(call cc,mkfwimage2,-lz)
  32. $(call cc,imagetag imagetag_cmdline cyg_crc32)
  33. $(call cc,add_header)
  34. $(call cc,makeamitbin)
  35. $(call cc,encode_crc)
  36. $(call cc,nand_ecc)
  37. $(call cc,mkplanexfw sha1)
  38. $(call cc,mktplinkfw md5, -Wall)
  39. $(call cc,mktplinkfw2 md5)
  40. $(call cc,mktplinkfw-kernel)
  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,mkwrggimg md5, -Wall)
  58. $(call cc,mkedimaximg)
  59. $(call cc,mkbrncmdline)
  60. $(call cc,mkbrnimg)
  61. $(call cc,mkdapimg)
  62. $(call cc, mkcameofw, -Wall)
  63. $(call cc,seama md5)
  64. $(call cc,oseama md5, -Wall)
  65. $(call cc,fix-u-media-header cyg_crc32,-Wall)
  66. $(call cc,hcsmakeimage bcmalgo)
  67. $(call cc,mkporayfw, -Wall)
  68. $(call cc,mkhilinkfw, -lcrypto)
  69. $(call cc,mkdcs932, -Wall)
  70. $(call cc,mkheader_gemtek,-lz)
  71. $(call cc,mkrtn56uimg, -lz)
  72. $(call cc,dgn3500sum)
  73. $(call cc,edimax_fw_header, -Wall)
  74. $(call cc,mkmerakifw sha1, -Wall)
  75. $(call cc,mkmerakifw-old, -Wall)
  76. $(call cc,jcgimage, -lz -Wall)
  77. $(call cc,mkbuffaloimg, -Wall)
  78. $(call cc,zyimage, -Wall)
  79. endef
  80. define Host/Install
  81. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
  82. endef
  83. $(eval $(call HostBuild))