[Prev][Next][Index][Thread]

Re: [Q] How can we make Kaffe-oskit image?



> From: Cheolgi Kim <cgkim@camars.kaist.ac.kr>
> Subject: [Q] How can we make Kaffe-oskit image?
> 
> "-stdin" option doesn't work. "ld: there's no option "-stdin"" error
> occurs.
> 
> And also we cannot make linux image. we've changed obove script line
> like below:

As Godmar stated, you need to apply the patches in the oskit config
directory. However, the -stdin option was not added to mklinuximage
until just recently, That fix will be in the next oskit (minor)
release, which should be out in the next couple of days. You can also
apply this patch if you like. Apply it in the oskit root directory,
and then reconfigure and reinstall.

Index: boot/linux/mklinuximage.in
===================================================================
RCS file: /usr/lsrc/flux/CVS/oskit/boot/linux/mklinuximage.in,v
retrieving revision 1.17
diff -c -r1.17 mklinuximage.in
*** mklinuximage.in	1998/06/06 21:10:31	1.17
--- mklinuximage.in	1999/01/11 12:53:54
***************
*** 1,12 ****
  #!/bin/sh
  #
! # Copyright (c) 1994-1998 The University of Utah and the Flux Group.
  # @OSKIT-LINUXBOOT-FLUX-GPL@
  #
  
  # This little script uses GNU ld to build a Linux 16-bit compressed boot image
  # from a set of boot modules.
  
  bootdir=${BOOTDIR-@prefix@/lib/oskit}
  cc=${CC-@CC@}
  ld=${LD-@LD@}
--- 1,33 ----
  #!/bin/sh
  #
! # Copyright (c) 1994-1999 The University of Utah and the Flux Group.
  # @OSKIT-LINUXBOOT-FLUX-GPL@
  #
  
  # This little script uses GNU ld to build a Linux 16-bit compressed boot image
  # from a set of boot modules.
  
+ #
+ # Usage: mklinuximage [options] [files ...]
+ #
+ # Options:
+ #   -o filename
+ #      Specify the output <filename> of the resulting Linux image. The
+ #      default is "zImage" in the current directory.
+ #   -stdin
+ #      Take file specifications from stdin, in addition to those on the
+ #      command line. This is useful when using another script to build
+ #      a list of file specifications which can then be piped into this
+ #      script.
+ #   -save-temps
+ #      Debugging option to save temporary files instead of deleting them
+ #      after the image is built.
+ #   [files ...]
+ #      A list of files to add to the boot image.
+ #
+ #   The first file specification is typically the name of the Oskit kernel.
+ #
+ 
  bootdir=${BOOTDIR-@prefix@/lib/oskit}
  cc=${CC-@CC@}
  ld=${LD-@LD@}
***************
*** 20,29 ****
--- 41,63 ----
  do
  	case "$1" in
  		-o ) outfile="$2"; shift; shift;;
+ 		-stdin) fromstdin="yes"; shift;;
  		-save-temps) savetemps="$1"; shift;;
  		* ) files="$files $1"; shift;;
  	esac
  done
+ 
+ #
+ # Read the rest of the modules from stdin.
+ #
+ if [ "X${fromstdin}" != "X" ]; then
+ 	read mod
+ 	while [ "X${mod}" != "X" ];
+ 	do
+ 		files="$files $mod"
+ 		read mod
+ 	done
+ fi
  
  # Wrap each of the input files in a .o file.
  # At the same time, build an assembly language module