Changeset 34d9ab28 in mainline
- Timestamp:
- 2005-10-26T00:07:17Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 807d2d4
- Parents:
- 81e1396
- Files:
-
- 1 added
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r81e1396 r34d9ab28 1 1 include Makefile.config 2 2 include arch/$(ARCH)/Makefile.inc 3 include genarch/Makefile.inc 3 4 4 5 sources=src/cpu/cpu.c \ … … 51 52 endif 52 53 arch_objects:=$(addsuffix .o,$(basename $(arch_sources))) 54 genarch_objects:=$(addsuffix .o,$(basename $(genarch_sources))) 53 55 objects:=$(addsuffix .o,$(basename $(sources))) 54 56 … … 61 63 config: 62 64 find src/ include/ -name arch -type l -exec rm \{\} \; 65 find src/ include/ -name genarch -type l -exec rm \{\} \; 63 66 ln -s ../arch/$(ARCH)/src/ src/arch 64 67 ln -s ../arch/$(ARCH)/include/ include/arch 68 ln -s ../genarch/src/ src/genarch 69 ln -s ../genarch/include/ include/genarch 65 70 66 71 depend: 67 $(CC) $(CFLAGS) -M $(arch_sources) $( sources) >Makefile.depend72 $(CC) $(CFLAGS) -M $(arch_sources) $(genarch_sources) $(sources) >Makefile.depend 68 73 69 74 build: kernel.bin boot 70 75 71 76 clean: 72 find src/ arch/$(ARCH)/src/ test/ -name '*.o' -exec rm \{\} \;77 find src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -exec rm \{\} \; 73 78 -rm *.bin kernel.map kernel.map.pre kernel.objdump src/debug/real_map.bin 74 79 $(MAKE) -C arch/$(ARCH)/boot/ clean … … 76 81 dist-clean: 77 82 find src/ include/ -name arch -type l -exec rm \{\} \; 83 find src/ include/ -name genarch -type l -exec rm \{\} \; 78 84 -rm Makefile.depend 79 85 -$(MAKE) clean 80 86 81 src/debug/real_map.bin: $(arch_objects) $( objects) $(test_objects) arch/$(ARCH)/_link.ld87 src/debug/real_map.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld 82 88 $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile src/debug/empty_map.o 83 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $( objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre84 $(OBJDUMP) -t $(arch_objects) $( objects) $(test_objects) > kernel.objdump89 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre 90 $(OBJDUMP) -t $(arch_objects) $(genarch_objects) $(objects) $(test_objects) > kernel.objdump 85 91 tools/genmap.py kernel.map.pre kernel.objdump src/debug/real_map.bin 86 92 … … 89 95 90 96 91 kernel.bin: $(arch_objects) $( objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o92 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $( objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map97 kernel.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o 98 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map 93 99 94 100 %.o: %.S -
arch/ppc32/Makefile.inc
r81e1396 r34d9ab28 30 30 src/arch/mm/memory_init.c \ 31 31 src/arch/mm/page.c \ 32 src/arch/drivers/ofw.c \33 32 src/arch/fmath.c -
arch/ppc32/include/arch.h
r81e1396 r34d9ab28 30 30 #define __ppc32_ARCH_H__ 31 31 32 #include < arch/drivers/ofw.h>32 #include <genarch/firmware/ofw/ofw.h> 33 33 34 34 #ifdef early_mapping -
arch/ppc32/src/mm/memory_init.c
r81e1396 r34d9ab28 28 28 29 29 #include <arch/mm/memory_init.h> 30 #include < arch/drivers/ofw.h>30 #include <genarch/firmware/ofw/ofw.h> 31 31 #include <panic.h> 32 32 -
arch/sparc64/boot/boot.S
r81e1396 r34d9ab28 1 1 # 2 # Copyright (C) 2005 Martin Decky2 # Copyright (C) 2005 Jakub Jermar 3 3 # All rights reserved. 4 4 # -
arch/sparc64/src/dummy.s
r81e1396 r34d9ab28 56 56 .global page_arch_init 57 57 .global panic_printf 58 .global putchar59 58 .global userspace 60 59 … … 88 87 page_arch_init: 89 88 panic_printf: 90 putchar:91 89 userspace: 92 90 -
genarch/include/firmware/ofw/ofw.h
r81e1396 r34d9ab28 54 54 extern void ofw_init(void); 55 55 extern void ofw_done(void); 56 extern intofw_call(const char *service, const int nargs, const int nret, ...);56 extern __address ofw_call(const char *service, const int nargs, const int nret, ...); 57 57 extern void ofw_putchar(const char ch); 58 58 extern phandle ofw_find_device(const char *name); -
genarch/src/firmware/ofw/ofw.c
r81e1396 r34d9ab28 27 27 */ 28 28 29 #include < arch/drivers/ofw.h>29 #include <genarch/firmware/ofw/ofw.h> 30 30 #include <arch/asm.h> 31 31 #include <stdarg.h> 32 32 #include <cpu.h> 33 #include <arch/types.h> 33 34 34 35 ofw_entry ofw; … … 53 54 } 54 55 55 intofw_call(const char *service, const int nargs, const int nret, ...)56 __address ofw_call(const char *service, const int nargs, const int nret, ...) 56 57 { 57 58 va_list list;
Note:
See TracChangeset
for help on using the changeset viewer.