Rev 4345 | Rev 4347 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4345 | Rev 4346 | ||
---|---|---|---|
Line 157... | Line 157... | ||
157 | generic/src/console/console.c \ |
157 | generic/src/console/console.c \ |
158 | generic/src/cpu/cpu.c \ |
158 | generic/src/cpu/cpu.c \ |
159 | generic/src/ddi/ddi.c \ |
159 | generic/src/ddi/ddi.c \ |
160 | generic/src/ddi/irq.c \ |
160 | generic/src/ddi/irq.c \ |
161 | generic/src/ddi/device.c \ |
161 | generic/src/ddi/device.c \ |
- | 162 | generic/src/debug/symtab.c \ |
|
162 | generic/src/interrupt/interrupt.c \ |
163 | generic/src/interrupt/interrupt.c \ |
163 | generic/src/main/main.c \ |
164 | generic/src/main/main.c \ |
164 | generic/src/main/kinit.c \ |
165 | generic/src/main/kinit.c \ |
165 | generic/src/main/uinit.c \ |
166 | generic/src/main/uinit.c \ |
166 | generic/src/main/version.c \ |
167 | generic/src/main/version.c \ |
Line 193... | Line 194... | ||
193 | generic/src/printf/sprintf.c \ |
194 | generic/src/printf/sprintf.c \ |
194 | generic/src/printf/snprintf.c \ |
195 | generic/src/printf/snprintf.c \ |
195 | generic/src/printf/vprintf.c \ |
196 | generic/src/printf/vprintf.c \ |
196 | generic/src/printf/vsprintf.c \ |
197 | generic/src/printf/vsprintf.c \ |
197 | generic/src/printf/vsnprintf.c \ |
198 | generic/src/printf/vsnprintf.c \ |
198 | generic/src/debug/symtab.c \ |
- | |
199 | generic/src/time/clock.c \ |
199 | generic/src/time/clock.c \ |
200 | generic/src/time/timeout.c \ |
200 | generic/src/time/timeout.c \ |
201 | generic/src/time/delay.c \ |
201 | generic/src/time/delay.c \ |
202 | generic/src/preempt/preemption.c \ |
202 | generic/src/preempt/preemption.c \ |
203 | generic/src/synch/spinlock.c \ |
203 | generic/src/synch/spinlock.c \ |
Line 319... | Line 319... | ||
319 | 319 | ||
320 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
320 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
321 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
321 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
322 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
322 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
323 | 323 | ||
- | 324 | ifeq ($(CONFIG_SYMTAB),y) |
|
- | 325 | SYMTAB_OBJECTS := generic/src/debug/real_map.o |
|
- | 326 | else |
|
- | 327 | SYMTAB_OBJECTS := |
|
- | 328 | endif |
|
- | 329 | ||
324 | .PHONY: all build clean archlinks depend disasm |
330 | .PHONY: all build clean archlinks depend disasm |
325 | 331 | ||
326 | all: ../Makefile.config ../config.h ../config.defs |
332 | all: ../Makefile.config ../config.h ../config.defs |
327 | -rm Makefile.depend |
333 | -rm Makefile.depend |
328 | $(MAKE) -C . build |
334 | $(MAKE) -C . build |
Line 361... | Line 367... | ||
361 | tools/genmap.py kernel.map.pre kernel.objdump generic/src/debug/real_map.bin |
367 | tools/genmap.py kernel.map.pre kernel.objdump generic/src/debug/real_map.bin |
362 | 368 | ||
363 | generic/src/debug/real_map.o: generic/src/debug/real_map.bin |
369 | generic/src/debug/real_map.o: generic/src/debug/real_map.bin |
364 | echo $(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@ |
370 | echo $(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@ |
365 | 371 | ||
366 | kernel.raw: depend arch/$(KARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) generic/src/debug/real_map.o |
372 | kernel.raw: depend arch/$(KARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(SYMTAB_OBJECTS) |
367 | $(LD) -T arch/$(KARCH)/_link.ld $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) generic/src/debug/real_map.o -o $@ -Map kernel.map |
373 | $(LD) -T arch/$(KARCH)/_link.ld $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) -o $@ -Map kernel.map |
368 | 374 | ||
369 | kernel.bin: kernel.raw |
375 | kernel.bin: kernel.raw |
370 | $(OBJCOPY) -O $(BFD) kernel.raw kernel.bin |
376 | $(OBJCOPY) -O $(BFD) kernel.raw kernel.bin |
371 | 377 | ||
372 | disasm: kernel.raw |
378 | disasm: kernel.raw |