mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-02 01:40:13 -05:00
- generate tascam_fw and tascam_fpga via configure script.
This commit is contained in:
parent
42a5cda363
commit
97c544fe65
4 changed files with 14 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ bin_PROGRAMS = usx2yloader
|
||||||
|
|
||||||
usx2yloader_SOURCES = usx2yloader.c
|
usx2yloader_SOURCES = usx2yloader.c
|
||||||
|
|
||||||
EXTRA_DIST = depcomp tascam_fw.usermap tascam_fw tascam_fpga
|
EXTRA_DIST = depcomp tascam_fw.usermap tascam_fw.in tascam_fpga.in
|
||||||
|
|
||||||
hotplug_files = tascam_fw.usermap tascam_fw tascam_fpga
|
hotplug_files = tascam_fw.usermap tascam_fw tascam_fpga
|
||||||
hotplugdir = /etc/hotplug/usb
|
hotplugdir = /etc/hotplug/usb
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ AM_PATH_ALSA(1.0.0)
|
||||||
CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
||||||
LDFLAGS="$LDFLAGS $ALSA_LIBS"
|
LDFLAGS="$LDFLAGS $ALSA_LIBS"
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile tascam_fpga tascam_fw)
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# load the firmware into Tascam USB devices (FPGA design)
|
# load the firmware into Tascam USB devices (FPGA design)
|
||||||
|
|
||||||
LOADER=/usr/local/bin/usx2yloader
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
|
||||||
|
LOADER=@bindir@/usx2yloader
|
||||||
|
|
||||||
if [ -x /usr/bin/logger ]; then
|
if [ -x /usr/bin/logger ]; then
|
||||||
/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
|
/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
|
||||||
fi
|
fi
|
||||||
$LOADER
|
$LOADER
|
||||||
/usr/local/bin/us428control&
|
@bin@/us428control &
|
||||||
if [ -x /usr/bin/logger ]; then
|
if [ -x /usr/bin/logger ]; then
|
||||||
/usr/bin/logger -t $0 "leaving"
|
/usr/bin/logger -t $0 "leaving"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -2,8 +2,11 @@
|
||||||
|
|
||||||
# load the firmware into Tascam USB devices
|
# load the firmware into Tascam USB devices
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
|
||||||
FIRMWARE=
|
FIRMWARE=
|
||||||
FIRMWAREDIR=/usr/local/share/alsa/firmware
|
FIRMWAREDIR=@datadir@/alsa/firmware/usx2yloader
|
||||||
FLAGS=
|
FLAGS=
|
||||||
LOADER=/sbin/fxload
|
LOADER=/sbin/fxload
|
||||||
LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
|
LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
|
||||||
|
|
@ -53,3 +56,5 @@ if [ -x /usr/bin/logger ]; then
|
||||||
/usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE"
|
/usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE"
|
||||||
fi
|
fi
|
||||||
$LOADER $FLAGS -s $LOADERFIRMWARE -I $FIRMWARE
|
$LOADER $FLAGS -s $LOADERFIRMWARE -I $FIRMWARE
|
||||||
|
|
||||||
|
exit 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue