2 include $(TOP)/config/make.cfg
5 exec_init disable enable switch preparecontext rawputchar \
6 newaddtask cause dispatch debug supervisor reschedule permit \
7 wait remtask settaskpri signal setexcept superstate userstate \
8 core traps screen serialrawio execfunctions prepareexecbase \
9 cachecleare cachepredma cachepostdma shutdowna
11 AFILES := coldreboot corelow stackswap
13 #MM kernel-exec-pc-i386 : kernel-exec-includes includes-asm_h-i386
15 USER_CFLAGS := -I$(SRCDIR)/rom/exec
16 USER_AFLAGS := -I$(SRCDIR)/rom/exec -I$(GENINCDIR)
18 mainmmake=kernel-exec maindir=rom/exec arch=pc-i386 \
19 files=$(CFILES) asmfiles=$(AFILES) modulename=exec
21 TARGETDIR = $(BD_OBJDIR$(BDID))
23 kernel-exec-pc-i386 :: $(TARGETDIR)/vesa.bin.o
25 $(TARGETDIR)/vesa.bin.o: vesa.c
26 $(TARGET_CC) $(CFLAGS) -c -I$(GENINCDIR) $< -o $(TARGETDIR)/vesa.o
27 $(KERNEL_LD) -e 0x1000 -Ttext 0x1000 -N -d -nostdlib --oformat binary -o $(TARGETDIR)/vesa $(TARGETDIR)/vesa.o
28 rm $(TARGETDIR)/vesa.o
29 cd $(TARGETDIR) && $(TARGET_LD) -r --format binary vesa -o vesa.bin.o