Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: remove sed command from cmd_ar_builtin

Replace a pipeline of echo and sed with printf to decrease process forks.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>

+2 -3
+2 -3
scripts/Makefile.build
··· 358 358 359 359 quiet_cmd_ar_builtin = AR $@ 360 360 cmd_ar_builtin = rm -f $@; \ 361 - echo $(patsubst $(obj)/%,%,$(real-prereqs)) | \ 362 - sed -E 's:([^ ]+):$(obj)/\1:g' | \ 363 - xargs $(AR) cDPrST $@ 361 + $(if $(real-prereqs), printf "$(obj)/%s " $(patsubst $(obj)/%,%,$(real-prereqs)) | xargs) \ 362 + $(AR) cDPrST $@ 364 363 365 364 $(obj)/built-in.a: $(real-obj-y) FORCE 366 365 $(call if_changed,ar_builtin)