remove some files for second level for powerPC, move to third level

This commit is contained in:
Laurent Vivier 2004-02-26 23:43:42 +00:00
parent fbfde9d37e
commit 015236a085

View File

@ -18,9 +18,14 @@ KERNEL_SIZE=$(shell $(LS) -l $(KERNEL_BIN) | $(AWK) '{print $$5}')
ifeq ($(KERNEL_ARCH),PowerPC) ifeq ($(KERNEL_ARCH),PowerPC)
CPPFLAGS += -DTARGET_PPC CPPFLAGS += -DTARGET_PPC
OBJS = head.o MMU_asm.o image.o console.o printf.o font_8x16.o memory.o \
MMU.o bootinfo.o misc.o glue.o bank.o arch.o
else else
ifeq ($(KERNEL_ARCH),Motorola) ifeq ($(KERNEL_ARCH),Motorola)
CPPFLAGS += -DTARGET_M68K CPPFLAGS += -DTARGET_M68K
OBJS = head.o MMU_asm.o image.o console.o printf.o font_8x16.o memory.o \
uncompress.o MMU.o bootinfo.o misc.o glue.o enter_kernel.o bank.o \
arch.o
endif endif
endif endif
@ -28,10 +33,6 @@ second: second.o
$(OBJCOPY) -j .text -j .data -j .rodata -j .got -j .got.plt \ $(OBJCOPY) -j .text -j .data -j .rodata -j .got -j .got.plt \
-O binary second.o second -O binary second.o second
OBJS = head.o MMU_asm.o image.o console.o printf.o font_8x16.o memory.o \
uncompress.o MMU.o bootinfo.o misc.o glue.o enter_kernel.o bank.o \
arch.o
second.o: $(OBJS) ld.script second.o: $(OBJS) ld.script
$(LD) -T ld.script -Ttext 0x00200000 \ $(LD) -T ld.script -Ttext 0x00200000 \
--defsym _KERNEL_SIZE=$(KERNEL_SIZE) -o second.o $(OBJS) --defsym _KERNEL_SIZE=$(KERNEL_SIZE) -o second.o $(OBJS)