Messages in this thread Patch in this message | | | From | David Cullen <> | Subject | [PATCH RFC] Fix "/usr/bin/xargs: rm: Argument list too long" during make distclean | Date | Mon, 13 Aug 2012 19:39:00 +0000 |
| |
When running "make distclean" in a cross chroot environment, the following messages are emitted:
[user@host:/home/work/linux]: make distclean /usr/bin/xargs: rm: Argument list too long make: *** [clean] Error 126
I use the following patch to get around the problem:
diff --git a/Makefile b/Makefile index b771af5..e2bca8e 100644 --- a/Makefile +++ b/Makefile @@ -1033,7 +1033,7 @@ distclean: mrproper -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ -o -name '.*.rej' \ -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \ - -type f -print | xargs rm -f + -type f -print | xargs -s 122880 rm -f
# Packaging of the kernel to various formats @@ -1242,7 +1242,7 @@ clean: $(clean-dirs) -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ - -o -name '*.gcno' \) -type f -print | xargs rm -f + -o -name '*.gcno' \) -type f -print | xargs -s 122880 rm -f
# Generate tags for editors # ---------------------------------------------------------------------------
Is there another way to solve this problem that does not require a patch to the Makefile?
| |