mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
lib/raid6: Let $(UNROLL) rules work with macOS userland
[ Upstream commit 0c36d88cff ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3163d7c1fb
commit
2aa134d9ab
@@ -48,7 +48,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
quiet_cmd_unroll = UNROLL $@
|
quiet_cmd_unroll = UNROLL $@
|
||||||
cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$* < $< > $@
|
cmd_unroll = $(AWK) -v N=$* -f $(srctree)/$(src)/unroll.awk < $< > $@
|
||||||
|
|
||||||
targets += int1.c int2.c int4.c int8.c int16.c int32.c
|
targets += int1.c int2.c int4.c int8.c int16.c int32.c
|
||||||
$(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE
|
$(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE
|
||||||
|
|||||||
Reference in New Issue
Block a user