At Wed, 14 Jun 2006 10:06:40 +1200, Eliot Blennerhassett wrote: > > Having recently added firmware to alsa-firmware, I noticed that the default > installation location is /usr/lib/hotplug/firmware. > > I think current recommended location is in /lib/firmware? Currently, yes. The above directory was the old default. > We have something like this in our configure.in to try to do the right thing > on different systems. Heres a patch for alsa-firmware/configure.in > > Signed-off-by: Eliot Blennerhassett <eblennerhassett@xxxxxxxxxxxxxxxx> The patch seems broken but the change suggested looks OK. Could you also change README together? thanks, Takashi > diff -r 8a1538f88e76 configure.in > --- a/configure.in Tue Jun 13 12:07:11 2006 +0200 > +++ b/configure.in Wed Jun 14 10:04:04 2006 +1200 > @@ -29,13 +29,26 @@ AM_CONDITIONAL(USE_HOTPLUG, test "$hotpl > AM_CONDITIONAL(USE_HOTPLUG, test "$hotplug" = "yes") > AM_CONDITIONAL(BUILD_FW, test "$buildfw" = "yes") > > +AC_MSG_CHECKING(firmware installation directory) > +# where to put the firmware. If none of these is right, can specify where > +# --with-hotplug-dir > +if test -d /lib/firmware ; then > + detected_fwdir="/lib/firmware/" > +elif test -d /lib/hotplug/firmware ; then > + detected_fwdir="/lib/hotplug/firmware/" > +elif test -d /usr/lib/hotplug/firmware ; then > + detected_fwdir="/usr/lib/hotplug/firmware/" > +else > + detected_fwdir="/lib/firmware/" > +fi > + > AC_ARG_WITH(hotplug-dir, > [ --with-hotplug-dir Specify the hotplug firmware directory], > [hotplugfwdir="$withval"], > - [hotplugfwdir="/usr/lib/hotplug/firmware"]) > + [hotplugfwdir="$detected_fwdir"]) > HOTPLUGFWDIR="$hotplugfwdir" > AC_SUBST(HOTPLUGFWDIR) > - > +AC_MSG_RESULT($HOTPLUGFWDIR) > > AC_OUTPUT(Makefile \ > hdsploader/Makefile \ > > # where to put the firmware. If none of these is right, can specify where > # --with-hotplug-dir > if test -d /lib/firmware ; then > detected_fwdir="/lib/firmware/" > elif test -d /lib/hotplug/firmware ; then > detected_fwdir="/lib/hotplug/firmware/" > elif test -d /usr/lib/hotplug/firmware ; then > detected_fwdir="/usr/lib/hotplug/firmware/" > else > detected_fwdir="/lib/firmware/" > fi > > AC_ARG_WITH(hotplug-dir, > [ --with-hotplug-dir Specify the hotplug firmware directory], > [hotplugfwdir="$withval"], > [hotplugfwdir="$detected_fwdir]) > HOTPLUGFWDIR="$hotplugfwdir" > AC_SUBST(HOTPLUGFWDIR) > > -- > Eliot > > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/alsa-devel > _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel