Regarding the OSFAQ2, in "Bare Bones" section:
http://www.osdev.org/osfaq2/index.php/BareBones
, I ended up with the error:
"Error: junk at end of line, first unrecognized character is ','"
So, I went to Step 1 of "Cross-Compiler":
http://www.osdev.org/osfaq2/index.php/GCC%20Cross-Compiler
and I did exactly (or at least I think I did) everything that was in there.
Problem is, I double-checked everything I did, but I still end up with the same error as above ???
I did this with binutils-2.15, gcc-3.4.0 and Cygwin 1.5.13-1 on Windows XP Home.
Can someone help me?
NOTE:
Code: Select all
$ echo $PATH
/usr/lib/subversion/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/
fndtn/bin/nt:/cygdrive/c/Programas/Perl/bin/:/cygdrive/c/WINDOWS/system32:/cygdr
ive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programas/ATI Techno
logies/ATI Control Panel:/cygdrive/c/Programas/Ficheiros comuns/GTK/2.0/bin:.:/c
ygdrive/c/Programas/PacketVideo/Toolkits/PVAuthor/tools/command line encoder:/cy
gdrive/c/PROGRA~1/Tcl/bin:/cygdrive/c/Programas/Intuwave/Shared/mRouterRuntime:/
cygdrive/c/Programas/Microsoft Visual Studio/Common/Tools/WinNT:/cygdrive/c/Prog
ramas/Microsoft Visual Studio/Common/MSDev98/Bin:/cygdrive/c/Programas/Microsoft
Visual Studio/Common/Tools:/cygdrive/c/Programas/Microsoft Visual Studio/VC98/b
in:/cygdrive/c/Programas/SSH Secure Shell:/usr/cross/bin
$ echo $PREFIX
/usr/cross
$ echo $TARGET
i586-elfCode: Select all
# -----------------------------
# Variables
# -----------------------------
CFLAGS = -Wall -Werror -nostdlib -nostartfiles -nodefaultlibs
LDFLAGS = -T linker.ld
OBJS = loader.o kernel.o
CC = /usr/cross/bin/$TARGET-gcc
# -----------------------------
# Rules
# -----------------------------
default: clean all
all: kernel.bin
loader.o: loader.s
as -o loader.o loader.s
kernel.o: kernel.c
${CC} -o kernel.o -c kernel.c ${CFLAGS}
kernel.bin: ${OBJS}
ld ${LDFLAGS} -o kernel.bin ${OBJS}
clean:
rm -f -v *.o *.bin
