[Pdbg] [PATCH] Makefile.am: Fix dependencies for specific .dtb.o files

Alistair Popple alistair at popple.id.au
Mon Dec 11 12:02:13 AEDT 2017


> Nak. The dtb is built from the dts, so the rule should be  dtb: dts.
> There's an additional dependency on the dtsi, so we make sure that is
> listed too.
> 
> Think of it like a C file:
> 
> foo.o: foo.c foo.h
> 
> Please take this patch instead:
> 
>  https://lists.ozlabs.org/pipermail/pdbg/2017-December/000000.html

dtc supports the `-d` option:

  -d, --out-dependency <arg> 
        Output dependency file

If we were going to do this properly we'd just teach make how to generate the
dependencies automatically. In the meantime I agree - removing the dependencies
doesn't seem right. Cyril does Joel's patch above fix the issue you were seeing?

Regards,

Alistair

>
> Cheers,
> 
> Joel
> 
> >
> >  %.dtb: %.dts
> >         $(DTC_V)dtc -q -i$(dir $@) -I dts $< -O dtb > $@
> > --
> > 2.15.1
> >
> > --
> > Pdbg mailing list
> > Pdbg at lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/pdbg
> 




More information about the Pdbg mailing list