Linking
Suppose I am adding a new command,so should I create a new file for that command and modify only the command,rmk accordingly? All the other files get autogenerated by autogen.sh ?
Is this sufficient ?
Viswesh
----- Original Message ----
From: Colin D Bennett <[email protected]>
To: [email protected]
Sent: Friday, 25 July, 2008 7:31:28 PM
Subject: Re: Linking
Quoted 2 lines · On Fri, 25 Jul 2008 03:22:57 -0700 (PDT) Viswesh S <[email protected]>…
The reason for hello to be put in a directory because it is a module and not a simple command.Understood myself
Actually, no. Every C source file in the 'commands' directory is currently a module itself.
I think the reason that 'hello.mod' is separated out is to make it easier to see that there is only one source file as part of 'hello.mod'.
Regards,
Colin
Quoted 28 lines
----- Original Message ----
From: Viswesh S <[email protected]>
To: The development of GRUB 2 <[email protected]>
Sent: Friday, 25 July, 2008 3:44:48 PM
Subject: Re: LinkingHi,
So if I add a module or add a new command,which are the files which I should modify in general and which all gets generated automatically. Is this somewhere documented ?
Why is it that hello command is put in a separate directory, while lspci is put inside the commands directory.
Is there a specific reason for this.
Viswesh----- Original Message ----
From: Pavel Roskin <[email protected]>
To: [email protected]
Sent: Friday, 25 July, 2008 11:59:21 AM
Subject: Re: Linking
Quoted 8 lines
Quoting Viswesh S <[email protected]>:
Quoted 3 lines
Hi Pavel,
Could you please attach the modified file ?
VisweshNo, I'm just giving you an idea what you may be doing wrong.
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/
Quoted 4 lines · On Fri, 25 Jul 2008 07:33:41 -0700 (PDT) Viswesh S <[email protected]>…
Suppose I am adding a new command,so should I create a new file for that command and modify only the command,rmk accordingly? All the other files get autogenerated by
autogen.sh? Is this sufficient ? Viswesh
Yes. Actually when you run 'make', the conf/*.mk files are regenerated from the conf/*.rmk files if necessary, so you don't need to re-run autogen.sh after changing .rmk files.
I was puzzled with the conf/* files at first too, and though I had to change both, and after looking at the .mk files, I was saddened. However, now that I know to change only the .rmk files, life is happy and the build system is actually easy to work with.
Regards,
Colin
Quoted 70 lines
----- Original Message ----
From: Colin D Bennett <[email protected]>
To: [email protected]
Sent: Friday, 25 July, 2008 7:31:28 PM
Subject: Re: LinkingQuoted 2 lines · On Fri, 25 Jul 2008 03:22:57 -0700 (PDT) Viswesh S <[email protected]>…
The reason for hello to be put in a directory because it is a module and not a simple command.Understood myself
Actually, no. Every C source file in the 'commands' directory is currently a module itself.
I think the reason that 'hello.mod' is separated out is to make it easier to see that there is only one source file as part of 'hello.mod'.
Regards,
ColinQuoted 28 lines
----- Original Message ----
From: Viswesh S <[email protected]>
To: The development of GRUB 2 <[email protected]>
Sent: Friday, 25 July, 2008 3:44:48 PM
Subject: Re: LinkingHi,
So if I add a module or add a new command,which are the files which I should modify in general and which all gets generated automatically. Is this somewhere documented ?
Why is it that hello command is put in a separate directory, while lspci is put inside the commands directory.
Is there a specific reason for this.
Viswesh----- Original Message ----
From: Pavel Roskin <[email protected]>
To: [email protected]
Sent: Friday, 25 July, 2008 11:59:21 AM
Subject: Re: LinkingQuoted 8 lines
Quoting Viswesh S <[email protected]>:
Quoted 3 lines
Hi Pavel,
Could you please attach the modified file ?
VisweshNo, I'm just giving you an idea what you may be doing wrong.
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-develShare files, take polls, and make new friends - all under one
roof. Go to http://in.promos.yahoo.com/groups/