Changeset 849ba5cb in mainline
- Timestamp:
- 2005-11-07T20:44:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6bc4dbd
- Parents:
- c4e8ed9d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rc4e8ed9d r849ba5cb 122 122 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 123 123 124 .PHONY: all clean config depend 124 .PHONY: all clean config depend boot 125 125 126 all: kernel.bin 126 all: kernel.bin boot 127 127 128 128 -include Makefile.depend … … 130 130 clean: 131 131 find generic/src/ arch/$(ARCH)/src/ genarch/src/ -name '*.o' -exec rm \{\} \; 132 -rm -f kernel.bin kernel.map kernel.map.pre kernel.objdump src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch 132 -rm -f kernel.bin kernel.map kernel.map.pre kernel.objdump generic/src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld 133 $(MAKE) -C arch/$(ARCH)/boot clean 133 134 134 135 config: … … 154 155 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) generic/src/debug/real_map.o -o $@ -Map kernel.map 155 156 157 boot: kernel.bin 158 $(MAKE) -C arch/$(ARCH)/boot build KERNEL_SIZE="`cat kernel.bin | wc -c`" 159 156 160 %.o: %.S 157 161 $(CC) $(ASFLAGS) $(CFLAGS) -c $< -o $@ -
arch/ia32/boot/Makefile
rc4e8ed9d r849ba5cb 1 .PHONY: nothing build clean 2 3 nothing: 1 .PHONY: build clean 4 2 5 3 build: boot.bin 6 4 dd if=boot.bin of=../../../image.bin bs=512 conv=sync 7 -cat ../../../kernel.bin >> ../../../image.bin5 -cat ../../../kernel.bin >> ../../../image.bin 8 6 dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1 9 7 … … 12 10 13 11 boot.o: boot.S 14 gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s12 gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s 15 13 as boot.s -o $@ 16 14 rm boot.s 17 15 18 16 clean: 19 -rm *.o *.bin17 -rm -f boot.o boot.bin ../../../image.bin
Note:
See TracChangeset
for help on using the changeset viewer.