Add Metalshark's patches:

*) Add -march=pentium-m if compiling finit or finit-mod (as the target will
   be an eeepc).
*) Add a -DNO_HCTOSYS make option that omits the first /sbin/hwclock if the
   user has enabled CONFIG_RTC_HCTOSYS in the kernel.
*) Add a -DDIRECTISA make option to append –directisa to /sbin/hwclock lines
   if the user has disabled CONFIG_GENRTC and enabled CONFIG_RTC but not
   enabled CONFIG_HPET_TIMER and CONFIG_HPET_RTC_IRQ.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-02-14 21:55:09 -02:00
1 parent 5d74d27500
commit 37144d58b2
4 files changed
+47 -5

No files matched your search

+10 -2
View File
@@ -70,6 +70,12 @@ THE SOFTWARE.
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
#endif
#ifdef DIRECTISA
#define HWCLOCK_DIRECTISA " --directisa"
#else
#define HWCLOCK_DIRECTISA
#endif
/* From sysvinit */
/* Set a signal handler. */
@@ -212,7 +218,9 @@ int main()
write(fd, "0.0 0 0.0\n", 10);
close(fd);
}
system("/sbin/hwclock --hctosys --localtime");
#ifndef NO_HCTOSYS
system("/sbin/hwclock --hctosys --localtime" HWCLOCK_DIRECTISA);
#endif
/*
* Network stuff
@@ -353,7 +361,7 @@ void shutdown(int sig)
sleep(1);
system("/usr/sbin/alsactl store > /dev/null 2>&1");
system("/sbin/hwclock --systohc --localtime");
system("/sbin/hwclock --systohc --localtime" HWCLOCK_DIRECTISA);
system("/sbin/unionctl.static / --remove / > /dev/null 2>&1");
kill(-1, SIGKILL);