Rev 4011 | Rev 4137 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4011 | Rev 4132 | ||
---|---|---|---|
Line 193... | Line 193... | ||
193 | generic/src/printf/sprintf.c \ |
193 | generic/src/printf/sprintf.c \ |
194 | generic/src/printf/snprintf.c \ |
194 | generic/src/printf/snprintf.c \ |
195 | generic/src/printf/vprintf.c \ |
195 | generic/src/printf/vprintf.c \ |
196 | generic/src/printf/vsprintf.c \ |
196 | generic/src/printf/vsprintf.c \ |
197 | generic/src/printf/vsnprintf.c \ |
197 | generic/src/printf/vsnprintf.c \ |
198 | generic/src/debug/symtab.c \ |
- | |
199 | generic/src/time/clock.c \ |
198 | generic/src/time/clock.c \ |
200 | generic/src/time/timeout.c \ |
199 | generic/src/time/timeout.c \ |
201 | generic/src/time/delay.c \ |
200 | generic/src/time/delay.c \ |
202 | generic/src/preempt/preemption.c \ |
201 | generic/src/preempt/preemption.c \ |
203 | generic/src/synch/spinlock.c \ |
202 | generic/src/synch/spinlock.c \ |
Line 224... | Line 223... | ||
224 | GENERIC_SOURCES += \ |
223 | GENERIC_SOURCES += \ |
225 | generic/src/console/kconsole.c \ |
224 | generic/src/console/kconsole.c \ |
226 | generic/src/console/cmd.c |
225 | generic/src/console/cmd.c |
227 | endif |
226 | endif |
228 | 227 | ||
- | 228 | ## Kernel symbol information |
|
- | 229 | # |
|
- | 230 | ||
- | 231 | ifeq ($(CONFIG_SYMTAB),y) |
|
- | 232 | GENERIC_SOURCES += \ |
|
- | 233 | generic/src/debug/symtab.c |
|
- | 234 | endif |
|
- | 235 | ||
229 | ## Udebug interface sources |
236 | ## Udebug interface sources |
230 | # |
237 | # |
231 | 238 | ||
232 | ifeq ($(CONFIG_UDEBUG),y) |
239 | ifeq ($(CONFIG_UDEBUG),y) |
233 | GENERIC_SOURCES += \ |
240 | GENERIC_SOURCES += \ |
Line 319... | Line 326... | ||
319 | 326 | ||
320 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
327 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
321 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
328 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
322 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
329 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
323 | 330 | ||
- | 331 | ifeq ($(CONFIG_SYMTAB),y) |
|
- | 332 | SYMTAB_OBJECTS := generic/src/debug/real_map.o |
|
- | 333 | else |
|
- | 334 | SYMTAB_OBJECTS := |
|
- | 335 | endif |
|
- | 336 | ||
324 | .PHONY: all build clean archlinks depend disasm |
337 | .PHONY: all build clean archlinks depend disasm |
325 | 338 | ||
326 | all: ../Makefile.config ../config.h ../config.defs |
339 | all: ../Makefile.config ../config.h ../config.defs |
327 | -rm Makefile.depend |
340 | -rm Makefile.depend |
328 | $(MAKE) -C . build |
341 | $(MAKE) -C . build |
Line 361... | Line 374... | ||
361 | tools/genmap.py kernel.map.pre kernel.objdump generic/src/debug/real_map.bin |
374 | tools/genmap.py kernel.map.pre kernel.objdump generic/src/debug/real_map.bin |
362 | 375 | ||
363 | generic/src/debug/real_map.o: generic/src/debug/real_map.bin |
376 | generic/src/debug/real_map.o: generic/src/debug/real_map.bin |
364 | echo $(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@ |
377 | echo $(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@ |
365 | 378 | ||
366 | kernel.raw: depend arch/$(KARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) generic/src/debug/real_map.o |
379 | 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 |
380 | $(LD) -T arch/$(KARCH)/_link.ld $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) -o $@ -Map kernel.map |
368 | 381 | ||
369 | kernel.bin: kernel.raw |
382 | kernel.bin: kernel.raw |
370 | $(OBJCOPY) -O $(BFD) kernel.raw kernel.bin |
383 | $(OBJCOPY) -O $(BFD) kernel.raw kernel.bin |
371 | 384 | ||
372 | disasm: kernel.raw |
385 | disasm: kernel.raw |