You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. # Flashrom configuration
  2. define DefineConfig
  3. ifeq ($(CONFIG_FLASHROM_$(1)),)
  4. MAKE_FLAGS += NEED_$(1)=0
  5. endif
  6. endef
  7. define DefineProgrammer
  8. ifeq ($(CONFIG_FRPROG_$(1)),)
  9. MAKE_FLAGS += CONFIG_$(1)=0
  10. endif
  11. ifneq ($(CONFIG_DEFPROG_$(1)),)
  12. MAKE_FLAGS += CONFIG_DEFAULT_PROGRAMMER=CONFIG_$(1)
  13. endif
  14. endef
  15. # Misc
  16. $(eval $(call DefineProgrammer,LINUX_SPI))
  17. #$(eval $(call DefineProgrammer,MSTARDDC_SPI))
  18. $(eval $(call DefineProgrammer,DUMMY))
  19. # FTDI
  20. $(eval $(call DefineConfig,FTDI))
  21. $(eval $(call DefineProgrammer,FT2232_SPI))
  22. $(eval $(call DefineProgrammer,USBBLASTER_SPI))
  23. # PCI
  24. $(eval $(call DefineConfig,PCI))
  25. $(eval $(call DefineProgrammer,INTERNAL))
  26. $(eval $(call DefineProgrammer,RAYER_SPI))
  27. $(eval $(call DefineProgrammer,NIC3COM))
  28. $(eval $(call DefineProgrammer,GFXNVIDIA))
  29. $(eval $(call DefineProgrammer,SATASII))
  30. #$(eval $(call DefineProgrammer,ATAHPT))
  31. $(eval $(call DefineProgrammer,ATAVIA))
  32. $(eval $(call DefineProgrammer,IT8212))
  33. $(eval $(call DefineProgrammer,DRKAISER))
  34. $(eval $(call DefineProgrammer,NICREALTEK))
  35. #$(eval $(call DefineProgrammer,NICNATSEMI))
  36. $(eval $(call DefineProgrammer,NICINTEL))
  37. $(eval $(call DefineProgrammer,NICINTEL_SPI))
  38. $(eval $(call DefineProgrammer,NICINTEL_EEPROM))
  39. $(eval $(call DefineProgrammer,OGP_SPI))
  40. $(eval $(call DefineProgrammer,SATAMV))
  41. # Serial
  42. $(eval $(call DefineConfig,SERIAL))
  43. $(eval $(call DefineProgrammer,SERPROG))
  44. $(eval $(call DefineProgrammer,PONY_SPI))
  45. $(eval $(call DefineProgrammer,BUSPIRATE_SPI))
  46. # USB
  47. $(eval $(call DefineConfig,USB))
  48. $(eval $(call DefineProgrammer,PICKIT2_SPI))
  49. #$(eval $(call DefineProgrammer,DEDIPROG))