mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-07 15:25:04 +00:00
add arch.o, and -DTARGET_PPC or -DTARGET_M68K
This commit is contained in:
@@ -16,12 +16,21 @@ ZIPPED_KERNEL = ../vmlinuz
|
|||||||
|
|
||||||
KERNEL_SIZE=$(shell $(LS) -l $(KERNEL_BIN) | $(AWK) '{print $$5}')
|
KERNEL_SIZE=$(shell $(LS) -l $(KERNEL_BIN) | $(AWK) '{print $$5}')
|
||||||
|
|
||||||
|
ifeq ($(KERNEL_ARCH),PowerPC)
|
||||||
|
CPPFLAGS += -DTARGET_PPC
|
||||||
|
else
|
||||||
|
ifeq ($(KERNEL_ARCH),Motorola)
|
||||||
|
CPPFLAGS += -DTARGET_M68K
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
second: second.o
|
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 \
|
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
|
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 \
|
||||||
|
Reference in New Issue
Block a user