X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=712d177d86d4ed1d3dbbbd569f614cc9117ee27a;hb=e59a70a92242d4c0d53ea0b065f61b43c2c43b03;hp=de51b1b671c81543c0980ea47c4bda2d79855389;hpb=bb9fd89f1c2668855475a441e1a5f2092a10fa3a;p=sigrok-firmware-fx2lafw.git diff --git a/Makefile.am b/Makefile.am index de51b1b6..712d177d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,7 @@ SUFFIXES = .a51 .c .fw .ihx .rel # Flags for firmware hex file generation SDCC_LINK_FLAGS = --code-size 0x1c00 --xram-size 0x0200 --xram-loc 0x1c00 -Wl"-b DSCR_AREA=0x1e00" -Wl"-b INT2JT=0x1f00" SDCC_LINK_FLAGS_HANTEK_6022BE = --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00" -SDCC_LINK_FLAGS_SAINSMART_DDS120 = --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00" +SDCC_LINK_FLAGS_SAINSMART_DDS120 = $(SDCC_LINK_FLAGS_HANTEK_6022BE) # Include paths as_includes = -I$(srcdir)/include @@ -63,12 +63,13 @@ firmware_binaries = \ hw/saleae-logic/fx2lafw-saleae-logic.fw \ hw/sigrok-fx2-8ch/fx2lafw-sigrok-fx2-8ch.fw \ hw/sigrok-fx2-16ch/fx2lafw-sigrok-fx2-16ch.fw \ - hw/hantek-6022be/hantek-6022be.fw \ - hw/sainsmart-dds120/sainsmart-dds120.fw + hw/hantek-6022be/fx2lafw-hantek-6022be.fw \ + hw/sainsmart-dds120/fx2lafw-sainsmart-dds120.fw fx2lafw_headers = \ include/command.h \ include/dscr.inc \ + include/common.inc \ include/fx2lafw.h \ include/gpif-acquisition.h @@ -80,12 +81,20 @@ fx2lafw_objects = \ fx2lafw.rel \ gpif-acquisition.rel +hantek_6022be_headers = \ + include/dscr_hantek_6022be.inc \ + include/common.inc + hantek_6022be_sources = \ hantek_6022be.c hantek_6022be_objects = \ hantek_6022be.rel +sainsmart_dds120_headers = \ + include/dscr_hantek_6022be.inc \ + include/common.inc + sainsmart_dds120_sources = \ sainsmart_dds120.c @@ -345,10 +354,10 @@ hw/sigrok-fx2-8ch/fx2lafw-sigrok-fx2-8ch.ihx: hw/sigrok-fx2-8ch/dscr.rel $(fx2la hw/sigrok-fx2-16ch/fx2lafw-sigrok-fx2-16ch.ihx: hw/sigrok-fx2-16ch/dscr.rel $(fx2lafw_objects) $(fx2lib_libs) $(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS) -o $@ hw/sigrok-fx2-16ch/dscr.rel $(fx2lafw_objects) $(fx2lib_libs) -hw/hantek-6022be/hantek-6022be.ihx: hw/hantek-6022be/dscr.rel $(hantek_6022be_objects) $(fx2lib_libs) +hw/hantek-6022be/fx2lafw-hantek-6022be.ihx: hw/hantek-6022be/dscr.rel $(hantek_6022be_objects) $(fx2lib_libs) $(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS_HANTEK_6022BE) -o $@ hw/hantek-6022be/dscr.rel $(hantek_6022be_objects) $(fx2lib_libs) -hw/sainsmart-dds120/sainsmart-dds120.ihx: hw/sainsmart-dds120/dscr.rel $(sainsmart_dds120_objects) $(fx2lib_libs) +hw/sainsmart-dds120/fx2lafw-sainsmart-dds120.ihx: hw/sainsmart-dds120/dscr.rel $(sainsmart_dds120_objects) $(fx2lib_libs) $(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS_SAINSMART_DDS120) -o $@ hw/sainsmart-dds120/dscr.rel $(sainsmart_dds120_objects) $(fx2lib_libs) .a51.rel: