Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make clean: split file list into manageable chunks #1897

Merged
merged 1 commit into from
Oct 26, 2017

Commits on Oct 26, 2017

  1. make clean: split file list into manageable chunks

    "make clean" might fail with the following error:
    
      make[2]: execvp: /bin/bash: Argument list too long
    
    This error was observed on a platform that has lots of additional
    source files compared to upstream (drivers, etc.), and that sets a long
    output path on the command line (make ... O=/some/long/path).
    
    Fix the error by splitting the file list into more manageable chunks.
    Note that removing one file at a time is not reasonable, because
    spawning too may shells takes quite a long time (up to 7-10 seconds to
    "make clean").
    
    Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reported-by: Lijianhui <airbak.li@hisilicon.com>
    Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
    jforissier committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    4b358a1 View commit details
    Browse the repository at this point in the history