Changeset 849ba5cb in mainline for Makefile


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

File:
1 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 $@
Note: See TracChangeset for help on using the changeset viewer.