All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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.