asihpi emu korg1212 maestro3 multisound sb16 wavefront \
ymfpci aica ca0132 cs46xx
-EXTRA_DIST = depcomp
+EXTRA_DIST = depcomp Makefile.fw_writer
dist-hook:
-chmod -R a+r $(distdir)
--- /dev/null
+#
+# Common parts for the firmware generation
+#
+
+if USE_HOTPLUG
+hotplugfwdir = @HOTPLUGFWDIR@/$(firmware_dir)
+hotplugfw_DATA = $(firmware_files)
+else
+hotplugfwdir =
+hotplugfw_DATA =
+endif
+
+LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
+
+$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
+$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
+$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+
+fw_writer: $(fw_writer_OBJECTS)
+ $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
# # Process this file with automake to produce Makefile.in.
+firmware_dir = ea
firmware_files = \
loader_dsp.fw \
darla20_dsp.fw \
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/ea
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer DSP/LoaderDSP.c loader_dsp.fw
# # Process this file with automake to produce Makefile.in.
-firmware_files = hana.fw audio_dock.fw emu0404.fw micro_dock.fw emu1010_notebook.fw emu1010b.fw
+firmware_dir = emu
+firmware_files = hana.fw audio_dock.fw emu0404.fw micro_dock.fw emu1010_notebook.fw emu1010b.fw
noinst_PROGRAMS = fw_writer
fw_writer_SOURCES = fw_writer.c
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/emu
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer
multiface_firmware.bin \
multiface_firmware_rev11.bin
dsp_bin_files = rpm_firmware.bin
-dsp_files = $(dsp_hex_files) $(dsp_bin_files)
+
+firmware_dir =
+firmware_files = $(dsp_hex_files) $(dsp_bin_files)
if USE_LOADER
firmwaredir = $(datadir)/alsa/firmware/$(MYNAME)
-firmware_DATA = $(dsp_files)
+firmware_DATA = $(firmware_files)
else
firmwaredir =
firmware_DATA =
endif
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@
-hotplugfw_DATA = $(dsp_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-noinst_PROGRAMS = tobin
-tobin_SOURCES = tobin.c
+noinst_PROGRAMS = fw_writer
+fw_writer_SOURCES = tobin.c
EXTRA_DIST = $(dsp_hex_files:%.bin=%.dat) \
$(dsp_bin_files) \
tobin.c
CLEANFILES = $(dsp_hex_files)
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-$(tobin_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(tobin_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(tobin_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-tobin: $(tobin_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
-$(dsp_hex_files): tobin
- ./tobin
+$(firmware_files): fw_writer
+ ./fw_writer
# # Process this file with automake to produce Makefile.in.
+firmware_dir = ess
firmware_files = maestro3_assp_kernel.fw maestro3_assp_minisrc.fw
noinst_PROGRAMS = fw_writer
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/ess
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer
# # Process this file with automake to produce Makefile.in.
+firmware_dir = sb16
firmware_files = mulaw_main.csp alaw_main.csp \
ima_adpcm_init.csp ima_adpcm_playback.csp ima_adpcm_capture.csp
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/sb16
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer
# # Process this file with automake to produce Makefile.in.
+firmware_dir = yamaha
firmware_files = yss225_registers.bin
noinst_PROGRAMS = fw_writer
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/yamaha
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer
# # Process this file with automake to produce Makefile.in.
+firmware_dir = yamaha
firmware_files = ds1_dsp.fw ds1_ctrl.fw ds1e_ctrl.fw
noinst_PROGRAMS = fw_writer
CLEANFILES = $(firmware_files) fw_writer
-if USE_HOTPLUG
-hotplugfwdir = @HOTPLUGFWDIR@/yamaha
-hotplugfw_DATA = $(firmware_files)
-else
-hotplugfwdir =
-hotplugfw_DATA =
-endif
-
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
-
-$(fw_writer_OBJECTS) : CC=$(CC_FOR_BUILD)
-$(fw_writer_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
-$(fw_writer_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-
-fw_writer: $(fw_writer_OBJECTS)
- $(LINK_FOR_BUILD) $^ $(LDLIBS_FOR_BUILD) -o $@
+include ../Makefile.fw_writer
$(firmware_files): fw_writer
./fw_writer