Changeset 849ba5cb in mainline


Ignore:
Timestamp:
2005-11-07T20:44:50Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6bc4dbd
Parents:
c4e8ed9d
Message:

build system: boot target

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rc4e8ed9d r849ba5cb  
    122122GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
    123123
    124 .PHONY: all clean config depend
     124.PHONY: all clean config depend boot
    125125
    126 all: kernel.bin
     126all: kernel.bin boot
    127127
    128128-include Makefile.depend
     
    130130clean:
    131131        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
    133134
    134135config:
     
    154155        $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) generic/src/debug/real_map.o -o $@ -Map kernel.map
    155156
     157boot: kernel.bin
     158        $(MAKE) -C arch/$(ARCH)/boot build KERNEL_SIZE="`cat kernel.bin | wc -c`"
     159
    156160%.o: %.S
    157161        $(CC) $(ASFLAGS) $(CFLAGS) -c $< -o $@
  • arch/ia32/boot/Makefile

    rc4e8ed9d r849ba5cb  
    1 .PHONY: nothing build clean
    2 
    3 nothing:
     1.PHONY: build clean
    42
    53build: boot.bin
    64        dd if=boot.bin of=../../../image.bin bs=512 conv=sync
    7         -cat ../../../kernel.bin >>../../../image.bin
     5        -cat ../../../kernel.bin >> ../../../image.bin
    86        dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1
    97
     
    1210
    1311boot.o: boot.S
    14         gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
     12        gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s
    1513        as boot.s -o $@
    1614        rm boot.s
    1715
    1816clean:
    19         -rm *.o *.bin
     17        -rm -f boot.o boot.bin ../../../image.bin
Note: See TracChangeset for help on using the changeset viewer.