* Possible improvements to build system
@ 2009-02-28 11:14 phcoder
2009-02-28 11:50 ` Robert Millan
0 siblings, 1 reply; 2+ messages in thread
From: phcoder @ 2009-02-28 11:14 UTC (permalink / raw)
To: The development of GRUB 2
Hello, I noticed that updating some pieces of code needs modification of
nearly all *.rmk. IMO it's bad thing because e.g. it easily brings
different architectures out of sync. My improvement propositions:
1. normal.mod
There is one part which is CPU-dependent - setjmp.S. t's used only in
static grub_err_t
rescue_command (struct grub_arg_list *state __attribute__ ((unused)),
int argc __attribute__ ((unused)),
char **args __attribute__ ((unused)))
{
grub_longjmp (grub_exit_env, 0);
/* Never reach here. */
return 0;
}
We could replace this longjmp by a call of grub_enter_rescue_mode and
move the call to attempt_normal_mode to grub_main.
Another possibility is to create a symlink normal/cpu during configure
time and then during build time just use normal/cpu/setjmp.S
2. ata.mod, hdparm.mod, ata_pthru.mod, usbms.mod, ohci.mod, uhci.mod,
usbtest.mod, usb.mod, memdisk.mod
I don't see why these modules are in i386-pc.rmk and not in common.rmk
3. kernel.img, grub-setup
These contain a number of files shared by all platforms. Like e.g.
filesystems. I propose to create an additional file common-pre.rmk which
could contain the variables like
FS_files=...
which platform-specific files can use later
--
Regards
Vladimir 'phcoder' Serbinenko
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible improvements to build system
2009-02-28 11:14 Possible improvements to build system phcoder
@ 2009-02-28 11:50 ` Robert Millan
0 siblings, 0 replies; 2+ messages in thread
From: Robert Millan @ 2009-02-28 11:50 UTC (permalink / raw)
To: The development of GRUB 2
On Sat, Feb 28, 2009 at 12:14:26PM +0100, phcoder wrote:
> 2. ata.mod, hdparm.mod, ata_pthru.mod, usbms.mod, ohci.mod, uhci.mod,
> usbtest.mod, usb.mod, memdisk.mod
> I don't see why these modules are in i386-pc.rmk and not in common.rmk
This is because nobody implemented grub_in* and grub_out* functions on
powerpc. But in the meantime, they could move to i386.rmk.
As for memdisk, it used to depend on the image format (thus PE had to be
excluded), but IIRC this is not so anymore. It could move to common.rmk.
> 3. kernel.img, grub-setup
> These contain a number of files shared by all platforms. Like e.g.
> filesystems. I propose to create an additional file common-pre.rmk which
> could contain the variables like
> FS_files=...
> which platform-specific files can use later
This is trickier than it seems. Many of the gen* scripts parse those files
and changing them this way would break stuff. It needs to be done carefully.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-28 11:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28 11:14 Possible improvements to build system phcoder
2009-02-28 11:50 ` Robert Millan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.