[Buildroot] [PATCH v5 0/4] Fix for top-level parallel make part 1
Fabio Porcedda
fabio.porcedda at gmail.com
Wed Sep 25 08:34:07 UTC 2013
On Wed, Sep 25, 2013 at 10:05 AM, Fabio Porcedda
<fabio.porcedda at gmail.com> wrote:
> Hi all,
> this is the first patch set for fixing top-level parallel make in buildroot,
> the common problem scattered in buildroot's top-level makefile is that in the
> rules it relies on the order of evaluation of the prerequisites,
> to be able to use top-level parallel make instead of reling on the left to
> right ordering of evaluation of the prerequisites we must add an explicit
> rule to describe the dependencies.
>
> With this patch set the package building seems to work fine with top-level
> parallel make, example:
>
> make clean toolchain
> make BR2_JLEVEL= -j<n> <package name list>
>
> Before to try that you have to remove the ".NOTPARALLEL" line in the top-level
> Makefile.
>
> The part that remain to fix for top-level parallel make is the toolchain
> building and targets after building all the packages.
>
> Best regards
> Fabio Porcedda
>
> v5:
> - added the fourth patch
> - fixed some typos
> - rewrited the second patch to use only $$($(2)_TARGET_*) in the rules
> - add support for top-level parallel make for the glibc package
> v4:
> - rebased over master
> - add Acked-by: Thomas Petazzoni on the third patch
> - changed the orderd of the patches
> v3:
> - add back the patch "package: add toolchain dependency to
> inner-generic-package" because now is working fine.
> - add Acked-by: Arnout Vandecappelle to the third patch.
> - reworked the second patch following Arnout suggestions.
> v2:
> - remove patch "package: add toolchain dependency to inner-generic-package"
> because was not working fine against recent toolchain changes.
>
> Fabio Porcedda (4):
> package: add toolchain dependency to inner-generic-package
> pkg-generic: fix rules for top-level parallel make
> package/Makefile.in: don't force jobs when BR2_JLEVEL is empty
> pkg-generic: enable recursive make for $($(PKG)_BUILD_CMDS)
>
> Makefile | 2 +-
> package/Makefile.in | 2 +-
> package/glibc/glibc.mk | 3 ++-
> package/pkg-autotools.mk | 3 ++-
> package/pkg-generic.mk | 46 +++++++++++++++++++++++++++-------------------
> package/uclibc/uclibc.mk | 3 ++-
> 6 files changed, 35 insertions(+), 24 deletions(-)
>
> --
> 1.8.4
>
Well just after sending the patch set a discovered some build
problems, i will try to fix them.
Best regards
--
Fabio Porcedda
More information about the buildroot
mailing list