All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Millikin <jmillikin@gmail.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Michal Marek <michal.lkml@markovi.net>,
	Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Subject: Re: [PATCH] lib/raid6: Let $(UNROLL) rules work with BSD userland.
Date: Wed, 23 Dec 2020 13:24:45 +0900	[thread overview]
Message-ID: <CAL1ky9orK39qmvPPk05SoUHWByTwL-kSkgTsbZEvh1vUR4+hXw@mail.gmail.com> (raw)
In-Reply-To: <CAK7LNAQRa18QWQep=Tj9Due_TvAotD4_v0GX83yP0SKX=jUQSQ@mail.gmail.com>

On Wed, Dec 16, 2020 at 2:46 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> Does it depend on the awk version?
>
> I tried this in FreeBSD 12.
>
> masahiro@:~ $ cat test.awk
> BEGIN {  print N }
> masahiro@:~ $ awk --version
> awk version 20121220 (FreeBSD)
> masahiro@:~ $ awk -ftest.awk -vN=1
> 1
>
> It worked for me.
>

Yes, it appears to be version dependent. Apologies for the confusion
-- I didn't realize there were multiple dialects of BSD awk.

On FreeBSD and OpenBSD awk works with the existing command. On NetBSD
and macOS awk fails with the following error:

$ touch unroll.awk input.c
$ awk -f./unroll.awk -vN=0 < input.c
awk: can't open file -vN=0
 source line number 1 source file -vN=0
 context is
>>>  <<<
$

My patch lets the $(UNROLL) command support the NetBSD/macOS variant
-- this is needed to support building the Linux kernel on a macOS host
machine.

  reply	other threads:[~2020-12-23  4:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14  8:21 [PATCH] lib/raid6: Let $(UNROLL) rules work with BSD userland John Millikin
2020-12-16  5:45 ` Masahiro Yamada
2020-12-23  4:24   ` John Millikin [this message]
2020-12-23  6:08     ` Masahiro Yamada
2020-12-23  6:23       ` [PATCH v2] lib/raid6: Let $(UNROLL) rules work with macOS userland John Millikin
2020-12-23  8:11         ` Masahiro Yamada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL1ky9orK39qmvPPk05SoUHWByTwL-kSkgTsbZEvh1vUR4+hXw@mail.gmail.com \
    --to=jmillikin@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=michal.lkml@markovi.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.