]> git.ipfire.org Git - people/arne_f/kernel.git/commit
lib/raid6: Let $(UNROLL) rules work with macOS userland
authorJohn Millikin <john@john-millikin.com>
Wed, 23 Dec 2020 06:23:25 +0000 (15:23 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:15 +0000 (18:26 +0100)
commit2abc54579d1b986801b321901a9f8658e6252199
tree952c7d40370005339675e303e9e45499baebafeb
parent1d05b91ab72eb31289f877f9932380ad251f06e4
lib/raid6: Let $(UNROLL) rules work with macOS userland

[ Upstream commit 0c36d88cff4d72149f94809303c5180b6f716d39 ]

Older versions of BSD awk are fussy about the order of '-v' and '-f'
flags, and require a space after the flag name. This causes build
failures on platforms with an old awk, such as macOS and NetBSD.

Since GNU awk and modern versions of BSD awk (distributed with
FreeBSD/OpenBSD) are fine with either form, the definition of
'cmd_unroll' can be trivially tweaked to let the lib/raid6 Makefile
work with both old and new awk flag dialects.

Signed-off-by: John Millikin <john@john-millikin.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/raid6/Makefile