Merge branch 'master' of ssh://git.libre-riscv.org:922/ls2
[ls2.git] / coldboot / Makefile
index 6b5d26f83ac9295117b8f98408ee1241aa9ad25e..da80dc807e9ba8e8b58da9bfecf435bb867fd388 100644 (file)
@@ -59,8 +59,10 @@ calibration.o: ../libgram/src/calibration.c
 powerpc.lds: powerpc.lds.S
        $(CC) $(CFLAGS) -P -E powerpc.lds.S -o powerpc.lds
 
-coldboot.elf: coldboot.o head.o ../lib/console.o $(GRAMOBJS) powerpc.lds
-       $(LD) $(LDFLAGS) -o $@ coldboot.o head.o ../lib/console.o $(GRAMOBJS)
+OBJS := coldboot.o tercel.o head.o ../lib/console.o $(GRAMOBJS)
+
+coldboot.elf: $(OBJS) powerpc.lds
+       $(LD) $(LDFLAGS) -o $@ $(OBJS)
 
 coldboot.bin: coldboot.elf
        $(OBJCOPY) -O binary $^ $@