bios: Declare dependency on linked in .a files.
authorTim 'mithro' Ansell <mithro@mithis.com>
Mon, 25 Sep 2017 09:32:55 +0000 (19:32 +1000)
committerTim 'mithro' Ansell <mithro@mithis.com>
Fri, 6 Oct 2017 09:38:44 +0000 (20:38 +1100)
litex/soc/software/bios/Makefile

index e00e4a70660b40b7cf551deb7115a47f21271c34..6fd21dd276e5436e58d2bb1d28082b5772a94b72 100644 (file)
@@ -12,8 +12,8 @@ all: bios.bin
 
 bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS)
 
-%.elf:
-       $(LD) $(LDFLAGS) -T $< -N -o $@ \
+%.elf: ../libbase/crt0-$(CPU).o ../libnet/libnet.a ../libbase/libbase-nofloat.a ../libcompiler_rt/libcompiler_rt.a
+       $(LD) $(LDFLAGS) -T $(BIOS_DIRECTORY)/linker.ld -N -o $@ \
                ../libbase/crt0-$(CPU).o \
                $(OBJECTS) \
                -L../libnet \