Commit 1ee75828 authored by John Millikin's avatar John Millikin Committed by Zheng Zengkai
Browse files

lib/raid6: Let $(UNROLL) rules work with macOS userland



stable inclusion
from stable-5.10.9
commit 2aa134d9abca5f31f09e3ad7610dd08b28c42b0a
bugzilla: 47457

--------------------------------

[ Upstream commit 0c36d88c ]

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: default avatarJohn Millikin <john@john-millikin.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 207b2eae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment