Change cross-compiler to i386-myos

This commit is contained in:
pjht 2019-08-27 20:10:28 -05:00
parent df55e66736
commit 1727e2c44b
6 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
C_SOURCES = $(wildcard *.c)
OBJ = $(C_SOURCES:.c=.o )
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
CC = i386-elf-gcc
CC = i386-myos-gcc
fsdrv: $(OBJ) ../libc/*
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc

View File

@ -1,10 +1,10 @@
C_SOURCES = $(wildcard *.c)
OBJ = $(C_SOURCES:.c=.o )
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
CC = i386-elf-gcc
CFLAGS = -Wall -g
CC = i386-myos-gcc
init: $(OBJ) ../libc/*
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
@$(CC) -o $@ $(CFLAGS) $(OBJ)
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@

View File

@ -1 +1 @@
i386-elf-ar
i386-myos-ar

View File

@ -1 +1 @@
i386-elf-as
i386-myos-as

View File

@ -1 +1 @@
i386-elf-gcc
i386-myos-gcc

View File

@ -1,7 +1,7 @@
C_SOURCES = $(wildcard *.c)
OBJ = $(C_SOURCES:.c=.o)
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
CC = i386-elf-gcc
CC = i386-myos-gcc
vfs: $(OBJ) ../libc/*
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc