Discussion:
OSS4 build system : linux install script
S***@be.thalesgroup.com
2011-02-10 14:32:37 UTC
Permalink
Hello,

I have a few questions about setup/Linux/install.sh :

- ossdetect is used to create device nodes and write to a file which drivers
are installed. Can I install drivers manually or is calling soundon (once)
enough ?


-the old (pre V4 ? ) nodes are deleted near the end. Could this be moved
upwards to where the old pre V4 modules are removed ?

- in a text output V4.1 is still mentioned. Could a generic version
parameter be useful ?

- why is flashsupport recompiled ? AFAICT it is delivered with OSS4 itself
and is not kernel version dependend and 32 or 64 bit can be known when the
configure script is called.

- in several places /etc/issue is checked to find which distribution is used
to be able to provide more detailed help. This could be abstracted in a few
shell functions that are implemented per distribution and only the functions
for the detetced distribution are include.

Example (pseudo code):

Function detect_distro()
{
DISTRO=other
if test grep Fedora /etc/issue
DISTRO= Fedora
fi

if test grep Ubuntu /etc/issue
DISTRO= Ubuntu
fi

..
}

Include help.$DISTRO

The help.Fedora, help.Ubuntu and help.other would contain the functions
help_on_missing_buildenv and help_on_missing_kernelsrc.

This way the install script would become both smaller and other
distributions could be added more easily if anyone familiar with a missing
distro feels like it and has five minutes to spare.

Thank you for any advice or comments,

Sven

Sven Biebaut
+32 2 391 2362
***@be.thalesgroup.com
----------------------------------------------------------------------------
-
T COMMUNICATIONS BELGIUM
Rue des Frères Taymans 28, B-1480 Tubize, Belgium
Phone: +32 (0)2 3912211, fax: +32 (0)2
3912300
Hannu Savolainen
2011-02-14 20:22:54 UTC
Permalink
Post by S***@be.thalesgroup.com
Hello,
- ossdetect is used to create device nodes and write to a file which drivers
are installed. Can I install drivers manually or is calling soundon (once)
enough ?
You can load the required drivers manually by running modprobe or insmod.

However device nodes are allocated dynamically so running ossdetect -d
is necessary to create them.
Post by S***@be.thalesgroup.com
-the old (pre V4 ? ) nodes are deleted near the end. Could this be moved
upwards to where the old pre V4 modules are removed ?
It could be moved.
Post by S***@be.thalesgroup.com
- in a text output V4.1 is still mentioned. Could a generic version
parameter be useful ?
Fixed.
Post by S***@be.thalesgroup.com
- why is flashsupport recompiled ? AFAICT it is delivered with OSS4 itself
and is not kernel version dependend and 32 or 64 bit can be known when the
configure script is called.
There are some historic reasons for doing this and unfortunately I can't
remember what they were.
Post by S***@be.thalesgroup.com
- in several places /etc/issue is checked to find which distribution is used
to be able to provide more detailed help. This could be abstracted in a few
shell functions that are implemented per distribution and only the functions
for the detetced distribution are include.
Maybe I can take a look at this.

Regards,

Hannu

Loading...