]> git.baikalelectronics.ru Git - uboot.git/commit
Makefile: consolidate hardcoded lists of files to clean
authorThomas Hebb <tommyhebb@gmail.com>
Sun, 10 Nov 2019 16:25:09 +0000 (08:25 -0800)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:43:23 +0000 (08:43 -0500)
commitf5ef5c0119acb2c942ca14e1de13fb51156581c4
tree2cadddaeb0496daeb691f29344af944e96e86673
parenta099f0d2f6eebc5da07e901f233547b358a1c808
Makefile: consolidate hardcoded lists of files to clean

Currently, we have two places where we list files that should always be
cleaned if they exist. One, the CLEAN_FILES variable, is from the Linux
build system and is the proper place to list files.

The other, a set of extra arguments passed in the xargs template used to
remove files with certain extensions, was introduced by 360bef0c6160
("Makefile: clean image.map") and is clearly wrong: by extending the
xargs template, we attempt to remove the files once for each batch of
arguments that xargs produces and we reduce the number of files from
stdin that xargs can include in each of its rm commands.

To fix this, put all hardcoded files into CLEAN_FILES.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Makefile