* add "make runiso" support for x86

* quick hack to fix a bug in cmdline.c that prevents some capital
  letters to be used 
* switch default architecture from cross-ppc to x86 for now.


git-svn-id: svn://coreboot.org/openbios/openbios-devel@17 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-14 11:22:41 +00:00
parent db8e7fe92a
commit ebbc76b022
8 changed files with 34 additions and 10 deletions

View File

@@ -63,3 +63,14 @@ build-verbose:
run:
@echo "Running..."
@$(ODIR)/openbios-unix $(ODIR)/openbios-unix.dict
# The following two targets will only work on x86 so far.
#
$(ODIR)/openbios.iso: $(ODIR)/openbios.multiboot $(ODIR)/openbios-x86.dict
@mkisofs -input-charset UTF-8 -r -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -o $@ utils/iso $^
runiso: $(ODIR)/openbios.iso
qemu -cdrom $^

View File

@@ -1 +1 @@
config/examples/cross-ppc_config.xml
config/examples/x86_config.xml

View File

@@ -268,8 +268,8 @@ cmdline_prompt( cmdline_info_t *ci )
pos += emit_str( &buf[pos] );
break;
case 68: /* left */
drop = 1;
//case 68: /* left */
// drop = 1;
case 2: /* ^b */
if( pos ) {
move_cursor( -1 );
@@ -277,8 +277,8 @@ cmdline_prompt( cmdline_info_t *ci )
}
break;
case 67: /* right */
drop = 1;
//case 67: /* right */
// drop = 1;
case 6: /* ^f */
if( pos < n )
emit( buf[pos++] );
@@ -313,8 +313,8 @@ cmdline_prompt( cmdline_info_t *ci )
move_cursor( pos-emit_str(buf) );
break;
case 66: /* down */
drop = 1;
//case 66: /* down */
// drop = 1;
case 14: /* ^n */
if( !histind )
break;
@@ -328,8 +328,8 @@ cmdline_prompt( cmdline_info_t *ci )
}
break;
case 65: /* up */
drop = 1;
//case 65: /* up */
// drop = 1;
case 16: /* ^p */
if( !histind && add_to_history(ci, ci->buf) ) {
cur_added = 1;

View File

@@ -1 +1 @@
config/examples/cross-ppc_rules.xml
config/examples/x86_rules.xml

5
utils/iso/README Normal file
View File

@@ -0,0 +1,5 @@
The files in this directory are packed into the ISO image created with
$ make runiso

View File

@@ -0,0 +1 @@
stage2_eltorito is part of grub and therefore (C) by the FSF.

View File

@@ -0,0 +1,7 @@
timeout 0
default 0
hiddenmenu
title openbios
kernel (cd)/openbios.multiboot
module (cd)/openbios-x86.dict
boot

Binary file not shown.