Skip to contentSkip to conversation

minor patch to lib/raid6/Makefile

PATCH Steve Summit 1 participant 1 message May 25, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

I've been doing some cross-compilation on my Mac, and one of the little hiccups is that lib/raid6 won't build due to a small command-line incompatibility between GNU awk and the one that comes with MacOS. Patch attached. (I have nothing like commit access; I'm hoping someone else can apply this.)

Makefile renamed from Makefile.orig +1 -1
@@ -6,7 +6,7 @@
 hostprogs-y	+= mktables
 
 quiet_cmd_unroll = UNROLL  $@
-      cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
+      cmd_unroll = $(AWK) -f $(srctree)/$(src)/unroll.awk -v N=$(UNROLL) \
                    < $< > $@ || ( rm -f $@ && exit 1 )
 
 ifeq ($(CONFIG_ALTIVEC),y)