Coder's Guild Mailing List

RE: Linux kernel

Posted by Eian on 2001-02-05

It would be done with the -D switch. e.g. -DINSTALL_MOD_PATH "/blah/blah".
Basically, all the -D switch does is to add a preprocessor define from the
command line. I apologize for the shortness of this letter, but I have class
that started 8 minutes ago. :)

Eian

> -----Original Message-----
> From: tcg@xxxx.xx.xx [mailto:tcg@xxxx.xx.xx]On Behalf Of Frank Hale
> Sent: Sunday, February 04, 2001 1:57 PM
> To: ecounts@xxxx.xxx
> Subject: Linux kernel
>
>
> Okay in the kernel makefile there is this:
>
> #
> # INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
> # relocations required by build roots.  This is not defined in the
> # makefile but the argument can be passed to make if needed.
> #
>
> This allows you to specify another directory where the modules are
> installed. How can I pass this variable to the makefile on the
> commandline? I don't want it to install in its normal place
> /lib/modules/ , I would like to tell it to install somewhere else but I
> need to tell it when doing make modules_install. I cannot simply hard
> code it in the makefile because the build is being done by an RPM I am
> making and I don't know the dir ahead of time. The dir is kept in yet
> another variable that is different for each build.
>
> --
> ICQ: 7205161
> IRC: #sapphirewm on irc.openprojects.net
> http://sapphire.sourceforge.net - A small X11 Window Manager
> http://javathingies.sourceforge.net - my java junk
> > 
>