<p dir="ltr">8 янв. 2015 г. 0:57 пользователь "Paul Bolle" <<a href="mailto:pebolle@tiscali.nl">pebolle@tiscali.nl</a>> написал:<br>
><br>
> On Wed, 2015-01-07 at 23:59 +0600, Alexander Kuleshov wrote:<br>
> > Yes i saw video-*.c files, but i can't understand how compilation of<br>
> > these video-*.c files depends on _WAKEUP macro...<br>
> ><br>
> > For example if'd remove -D_WAKEUP, i get errors during realmode.elf linking:<br>
> ><br>
> > arch/x86/realmode/rm/video-vga.o: In function `vga_probe':<br>
> > /home/alex/dev/linux/arch/x86/realmode/rm/../../boot/video-vga.c:259:<br>
> > undefined reference to `boot_params'<br>
> ><br>
> > As you wrote there are many #ifndef/#endif directives, but why there<br>
> > _WAKEUP is undefined everytime, but we pass it from command line with<br>
> > -D_WAKEUP?<br>
><br>
> Because these file also get compiled via arch/x86/boot/Makefile? Ie, I<br>
> _guess_ _WAKEUP is needed to ensure the compile started from<br>
> arch/x86/realmode/rm/Makefile differs from the compile started from<br>
> arch/x86/boot/Makefile. But [...]/boot/Makefile is sufficiently<br>
> complicated for me to stop me from looking at it too long!<br>
><br>
> You do realize that the Linux kernel is a treasure trove for people<br>
> wanting to know just how far make, gcc, etc can be pushed, don't you?<br>
><br>
><br>
> Paul Bolle<br>
></p>
<p dir="ltr">That's true<br>
</p>