Skip to content

Commit 5c1df62

Browse files
Newbyteemasahir0y
authored andcommitted
kbuild: use POSIX-compatible grep option
--file is a GNU extension to grep which is not available in all implementations (such as BusyBox). Use the -f option instead which is eqvuialent according to the GNU grep manpage[1] and is present in POSIX[2]. [1] https://www.gnu.org/software/grep/manual/grep.html [2] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html Signed-off-by: Stefan Hansson <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 247f34f commit 5c1df62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ quiet_cmd_ar_vmlinux.a = AR $@
12181218
cmd_ar_vmlinux.a = \
12191219
rm -f $@; \
12201220
$(AR) cDPrST $@ $(KBUILD_VMLINUX_OBJS); \
1221-
$(AR) mPiT $$($(AR) t $@ | head -n1) $@ $$($(AR) t $@ | grep -F --file=$(srctree)/scripts/head-object-list.txt)
1221+
$(AR) mPiT $$($(AR) t $@ | head -n1) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt)
12221222

12231223
targets += vmlinux.a
12241224
vmlinux.a: $(KBUILD_VMLINUX_OBJS) scripts/head-object-list.txt autoksyms_recursive FORCE

0 commit comments

Comments
 (0)