j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: laurent Date: 2009-01-12 20:22:10 +0100 (Mon, 12 Jan 2009) New Revision: 394
Modified: openbios-devel/drivers/ide.c Log: Add ide0, ide1 ... ideN aliases needed by ybin (yaboot)
Modified: openbios-devel/drivers/ide.c =================================================================== --- openbios-devel/drivers/ide.c 2009-01-12 18:20:14 UTC (rev 393) +++ openbios-devel/drivers/ide.c 2009-01-12 19:22:10 UTC (rev 394) @@ -1315,6 +1315,8 @@ char nodebuff[128]; phandle_t dnode, aliases; int hd_found, cd_found; + static int ide_counter = 0; + char idestr[8];
aliases = find_dev("/aliases"); hd_found = 0; @@ -1411,6 +1413,11 @@
/* create aliases */
+ snprintf(idestr, sizeof(idestr), + "ide%d", ide_counter++); + set_property(aliases, idestr, + nodebuff, strlen(nodebuff) + 1); + if (drive->media == ide_media_cdrom && !cd_found) { cd_found = 1; set_property(aliases, "cd",