diff --git a/second/Makefile b/second/Makefile index 46f8080..cac489a 100644 --- a/second/Makefile +++ b/second/Makefile @@ -16,12 +16,21 @@ ZIPPED_KERNEL = ../vmlinuz 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 $(OBJCOPY) -j .text -j .data -j .rodata -j .got -j .got.plt \ -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 + uncompress.o MMU.o bootinfo.o misc.o glue.o enter_kernel.o bank.o \ + arch.o second.o: $(OBJS) ld.script $(LD) -T ld.script -Ttext 0x00200000 \