Re: Multiple kernel boot in linuxboot.cfg

"DaveXXX" <[email protected]>
Newsgroups gmane.linux.ports.xbox.devel
Message-ID <002d01c4a0e8$c765a240$1400a8c0@wxp>
David,

the CVS version I got from CVS does not have a "dynamic" icon menu. At least
not that I can tell.

Here's a snip from the IconMenu.c file:

void IconMenuDraw(int nXOffset, int nYOffset) {
        ICON *iconPtr = firstVisibleIcon;
        int iconcount;
        //There are max four 'bays' for displaying icons in - we only draw
the four.
        for (iconcount=0; iconcount<4; iconcount++) {
                if (iconPtr==0l) {
                        //No more icons to draw
                        return;

Also, the BootIconMenu function goes like this:

        //Add the icons we want.
        if (nFATXPresent) {
                //Need to check linuxboot.cfg presence, not just fatx.

                //FATX icon
                ICON *icon1 = (ICON *)malloc(sizeof(ICON));
                icon1->iconSlot = ICON_SOURCE_SLOT4;
                icon1->szCaption = "FatX (E:)";
                icon1->functionPtr = BootFromFATX;
                AddIcon(icon1);
        }

        if (nActivePartition) {
                //Again, need to check linuxboot.cfg is present in one of
                //the 'acceptable' places.

                //Native icon
                ICON *icon2 = (ICON *)malloc(sizeof(ICON));
                icon2->iconSlot = ICON_SOURCE_SLOT1;
                icon2->szCaption = "HDD";
                icon2->functionPtr = BootFromNative;
                AddIcon(icon2);
        }

......

Am I looking at the correct source ? This is Cromwell from the sourceforge
CVS

DaveXXX



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.