[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RESEND v3 0/2] Makefile: libfdt: build only the strict necess
From: |
David Gibson |
Subject: |
Re: [PATCH RESEND v3 0/2] Makefile: libfdt: build only the strict necessary |
Date: |
Mon, 11 May 2020 16:33:52 +1000 |
On Wed, Apr 15, 2020 at 10:16:52AM +0200, Claudio Fontana wrote:
> On 4/14/20 4:03 AM, David Gibson wrote:
> > On Sat, Apr 11, 2020 at 11:31:48AM +0200, Claudio Fontana wrote:
> >> v2 -> v3:
> >>
> >> * changed into a 2 patch series; in the second patch we remove the old
> >> compatibility gunks that were meant for removal some time after 4.1.
> >>
> >> * renamed the libfdt PHONY rule to dtc/all, with the intent to make
> >> existing working trees forward and backward compatible across the change.
> >>
> >> v1 -> v2:
> >>
> >> * fix error generated when running UNCHECKED_GOALS without prior configure,
> >> for example during make docker-image-fedora. Without configure, DSOSUF is
> >> empty, and the module pattern rule in rules.mak that uses this variable
> >> can match too much; provide a default in the Makefile to avoid it.
> >>
> >> * only attempt to build the archive when there is a non-empty list of
> >> objects.
> >> This could be done in general for the %.a: pattern in rules.mak, but
> >> maybe
> >> there are valid reasons to build an empty .a?
> >>
> >> * removed some intermediate variables that did not add much value
> >> (LIBFDT_srcdir, LIBFDT_archive)
> >>
> >> Tested locally with 3 VPATH configurations (no-, VPATH, VPATH in src
> >> subdir),
> >> and with docker-image-fedora, docker-test-debug@fedora that failed
> >> before.
> >
> > Seems reasonable to me. It's a bit of a shame that we can't use the
> > dtc makefiles more simply for this. But I don't quickly know how to
> > fix them upstream to allow that.
>
>
> Hi David,
Sorry it's taken so long to reply.
> I tried to look at dtc upstream makefiles, I don't see a perfect
> solution at the moment.
>
> I came up with this idea though (not fully tested..) that _could_
> work, ie special casing the libfdt target when it is the only goal
> in MAKECMDGOALS.
>
> Any thoughts?
Bit of a hack, but still better than what we have now. If you post
that for dtc upstream <address@hidden>, I'd apply
it.
Another improvement would be to not include these files on a "make
clean" - it's kind of annoying how a make clean will regenerate all
these before removing them.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- Re: [PATCH RESEND v3 0/2] Makefile: libfdt: build only the strict necessary,
David Gibson <=