home *** CD-ROM | disk | FTP | other *** search
- > 6. To compile the kernel, you need the libc stuff from a site that
- > has the source for the NetBSD-current distribution (libc has bcmp.s,
- > bzero.s, and a whole mess of other little files that are insisted
- > upon (I got the libc stuff from agate.berkeley.edu)). A question
- > here: When making the kernel, "cpp -E -Iwhatever foo.s | as -o foo.o"
- > grumbles about "_ somelabel" being invalid. The problem is this space
- > here ------------^. From what I can tell, "ENTRY(foo)" is being
- > converted to "_ foo:" by cpp instead of "_foo:". Does anyone know why
- > this space is being (incorrectly?) generated by cpp, and/or how to
- > solve the problem. I ended up compiling all those little .s files
- > myself using "cpp -traditional foo.s | as -o foo.o" (and
- > "cpp -traditional -DPROF foo.s | as -o foo.po" when it came time for
- > the profiling stuff), but it would be kind of nice to get this
- > somewhat automated...
-
- Replace the /**/ in DEFS.h and SYS.h with ##.
-
- The difference is in traditional and ANSI preprocessors. The "default"
- version of GCC used in the NetBSD distribution is not set up the same way
- as the GNU version is. Many files are in a different place, and some things
- are done a different way.
-
- Markus has elected to use the GNU file placement (IMHO a good choice).
-
- Although a source tree would be nice. Even with the stuff from sun-lamp I
- had to write my own strcat.s :-)
-
- --
- David Jones, M.A.Sc student, Electronics Group (VLSI), University of Toronto
- email: dej@eecg.utoronto.ca, finger for more info
-
-