]> git.baikalelectronics.ru Git - 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)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 4 Jan 2021 01:38:11 +0000 (10:38 +0900)
commit13db75650d41cea1511344725d03b761716264f6
tree8898091d18065cb3fc0b78aa222e795f983edd8d
parentce9c96bd13b7a5288aab7f2dcbb4894cae1e4062
lib/raid6: Let $(UNROLL) rules work with macOS userland

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>
lib/raid6/Makefile