• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/firmware-utils/CMakeLists.txt

  1 CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
  2 
  3 PROJECT(firmware-utils C)
  4 INCLUDE(GNUInstallDirs)
  5 INCLUDE(FindZLIB)
  6 INCLUDE(FindOpenSSL)
  7 
  8 IF(NOT ZLIB_FOUND)
  9   MESSAGE(FATAL_ERROR "Unable to find zlib library.")
 10 ENDIF()
 11 
 12 IF(NOT OPENSSL_FOUND)
 13   MESSAGE(FATAL_ERROR "Unable to find OpenSSL librry.")
 14 ENDIF()
 15 
 16 ADD_DEFINITIONS(-Wall -Wno-unused-parameter)
 17 
 18 MACRO(FW_UTIL util deps extra_cflags libs)
 19   ADD_EXECUTABLE(${util} src/${util}.c ${deps})
 20   INSTALL(TARGETS ${util} RUNTIME)
 21   IF(NOT "${extra_cflags}" STREQUAL "")
 22     SET_TARGET_PROPERTIES(${util} PROPERTIES COMPILE_FLAGS ${extra_cflags})
 23   ENDIF()
 24   IF(NOT "${libs}" STREQUAL "")
 25     TARGET_LINK_LIBRARIES(${util} ${libs})
 26   ENDIF()
 27 ENDMACRO(FW_UTIL)
 28 
 29 FW_UTIL(add_header "" "" "")
 30 FW_UTIL(addpattern "" "" "")
 31 FW_UTIL(asustrx "" "" "")
 32 FW_UTIL(avm-wasp-checksum "" --std=gnu99 "")
 33 FW_UTIL(bcm4908asus "" "" "")
 34 FW_UTIL(bcm4908kernel "" "" "")
 35 FW_UTIL(buffalo-enc src/buffalo-lib.c "" "")
 36 FW_UTIL(buffalo-tag src/buffalo-lib.c "" "")
 37 FW_UTIL(buffalo-tftp src/buffalo-lib.c "" "")
 38 FW_UTIL(cros-vbutil "" "" "${OPENSSL_CRYPTO_LIBRARIES}")
 39 FW_UTIL(dgfirmware "" "" "")
 40 FW_UTIL(dgn3500sum "" "" "")
 41 FW_UTIL(dns313-header "" "" "")
 42 FW_UTIL(edimax_fw_header "" "" "")
 43 FW_UTIL(encode_crc "" "" "")
 44 FW_UTIL(fix-u-media-header src/cyg_crc32.c "" "")
 45 FW_UTIL(hcsmakeimage src/bcmalgo.c "" "")
 46 FW_UTIL(imagetag "src/imagetag_cmdline.c;src/cyg_crc32.c" "" "")
 47 FW_UTIL(iptime-crc32 src/cyg_crc32.c "" "")
 48 FW_UTIL(iptime-naspkg "" "" "")
 49 FW_UTIL(jcgimage "" "" "${ZLIB_LIBRARIES}")
 50 FW_UTIL(lxlfw "" "" "")
 51 FW_UTIL(lzma2eva "" "" "${ZLIB_LIBRARIES}")
 52 FW_UTIL(makeamitbin "" "" "")
 53 FW_UTIL(mkbrncmdline "" "" "")
 54 FW_UTIL(mkbrnimg "" "" "")
 55 FW_UTIL(mkbuffaloimg "" "" "")
 56 FW_UTIL(mkcameofw "" "" "")
 57 FW_UTIL(mkcasfw "" "" "")
 58 FW_UTIL(mkchkimg "" "" "")
 59 FW_UTIL(mkcsysimg "" "" "")
 60 FW_UTIL(mkdapimg "" "" "")
 61 FW_UTIL(mkdapimg2 "" "" "")
 62 FW_UTIL(mkdhpimg src/buffalo-lib.c "" "")
 63 FW_UTIL(mkdlinkfw src/mkdlinkfw-lib.c --std=c99 "${ZLIB_LIBRARIES}")
 64 FW_UTIL(mkdniimg "" "" "")
 65 FW_UTIL(mkedimaximg "" "" "")
 66 FW_UTIL(mkfwimage "" "-Wextra -D_FILE_OFFSET_BITS=64" "${ZLIB_LIBRARIES}")
 67 FW_UTIL(mkfwimage2 "" "" "${ZLIB_LIBRARIES}")
 68 FW_UTIL(mkh3cimg "" "" "")
 69 FW_UTIL(mkh3cvfs "" "" "")
 70 FW_UTIL(mkheader_gemtek "" "" "${ZLIB_LIBRARIES}")
 71 FW_UTIL(mkhilinkfw "" "" "${OPENSSL_CRYPTO_LIBRARIES}")
 72 FW_UTIL(mkmerakifw src/sha1.c "" "")
 73 FW_UTIL(mkmerakifw-old "" "" "")
 74 FW_UTIL(mkmylofw "" "" "")
 75 FW_UTIL(mkplanexfw src/sha1.c "" "")
 76 FW_UTIL(mkporayfw "" "" "")
 77 FW_UTIL(mkrasimage "" --std=gnu99 "")
 78 FW_UTIL(mkrtn56uimg "" "" "${ZLIB_LIBRARIES}")
 79 FW_UTIL(mksenaofw src/md5.c --std=gnu99 "")
 80 FW_UTIL(mksercommfw "" "" "")
 81 FW_UTIL(mktitanimg "" "" "")
 82 FW_UTIL(mktplinkfw "src/mktplinkfw-lib.c;src/md5.c" -fgnu89-inline "")
 83 FW_UTIL(mktplinkfw2 "src/mktplinkfw-lib.c;src/md5.c" -fgnu89-inline "")
 84 FW_UTIL(mkwrggimg src/md5.c "" "")
 85 FW_UTIL(mkwrgimg src/md5.c "" "")
 86 FW_UTIL(mkzcfw src/cyg_crc32.c "" "")
 87 FW_UTIL(mkzynfw "" "" "")
 88 FW_UTIL(mkzyxelzldfw src/md5.c "" "")
 89 FW_UTIL(motorola-bin "" "" "")
 90 FW_UTIL(nand_ecc "" "" "")
 91 FW_UTIL(nec-enc "" --std=gnu99 "")
 92 FW_UTIL(osbridge-crc "" "" "")
 93 FW_UTIL(oseama src/md5.c "" "")
 94 FW_UTIL(otrx "" "" "")
 95 FW_UTIL(pc1crypt "" "" "")
 96 FW_UTIL(ptgen src/cyg_crc32.c "" "")
 97 FW_UTIL(seama src/md5.c "" "")
 98 FW_UTIL(sign_dlink_ru src/md5.c "" "")
 99 FW_UTIL(spw303v "" "" "")
100 FW_UTIL(srec2bin "" "" "")
101 FW_UTIL(tplink-safeloader src/md5.c --std=gnu99 "")
102 FW_UTIL(trx "" "" "")
103 FW_UTIL(trx2edips "" "" "")
104 FW_UTIL(trx2usr "" "" "")
105 FW_UTIL(uimage_padhdr "" "" "${ZLIB_LIBRARIES}")
106 FW_UTIL(uimage_sgehdr "" "" "${ZLIB_LIBRARIES}")
107 FW_UTIL(wrt400n src/cyg_crc32.c "" "")
108 FW_UTIL(xiaomifw "" "" "")
109 FW_UTIL(xorimage "" "" "")
110 FW_UTIL(zyimage "" "" "")
111 FW_UTIL(zytrx "" "" "")
112 FW_UTIL(zyxbcm "" "" "")

This page was automatically generated by LXR 0.3.1.  •  OpenWrt