From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] package/murata-cyw-fw: new package
Date: Mon, 20 May 2019 22:20:41 +0200 [thread overview]
Message-ID: <20190520222041.2777147e@windsurf.home> (raw)
In-Reply-To: <20190510083505.1341-2-m.niestroj@grinn-global.com>
Hello Marcin,
On Fri, 10 May 2019 10:35:04 +0200
Marcin Niestroj <m.niestroj@grinn-global.com> wrote:
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
I have applied your patch to next, with a few changes, see below.
> +define MURATA_CYW_FW_EXTRACT_NVRAM_PATCH
> + $(foreach tar, $(notdir $(MURATA_CYW_FW_EXTRA_DOWNLOADS)), \
> + $(call suitable-extractor,$(tar)) $(MURATA_CYW_FW_DL_DIR)/$(tar) | \
> + $(TAR) --strip-components=1 -C $(@D) $(TAR_OPTIONS) -$(sep) \
I dropped the $(sep) and final backslash, as this is how we typically
write foreach loops.
> + )
> +ifneq ($(MURATA_CYW_FW_FILES_y),)
This condition was not really needed: if this variable is empty, the
foreach loop will iterate on an empty list, and do nothing.
> +define MURATA_CYW_FW_INSTALL_TARGET_CMDS
> + mkdir -p $(TARGET_DIR)/lib/firmware/brcm
I dropped this, and instead added the -D flag to $(INSTALL), which
takes care of creating all intermediate directories.
> + $(foreach f,$(MURATA_CYW_FW_FILES_y), \
> + $(INSTALL) -m 0644 $(@D)/$(f) \
> + $(TARGET_DIR)/lib/firmware/brcm/$(call murata-cyw-fw-file-rename,$(f))$(sep))
I have dropped the $(sep) and moved the final closing parenthesis to
the next line, which does the same thing, but is a bit more common in
Buildroot.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-05-20 20:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-10 8:35 [Buildroot] [PATCH v3 0/2] package/murata-cyw-fw: new package Marcin Niestroj
2019-05-10 8:35 ` [Buildroot] [PATCH v3 1/2] " Marcin Niestroj
2019-05-20 20:20 ` Thomas Petazzoni [this message]
2019-05-10 8:35 ` [Buildroot] [PATCH v3 2/2] package/murata-cyw-fw: download NVRAM and BT_PATCH only when needed Marcin Niestroj
2019-05-20 20:21 ` Thomas Petazzoni
2019-05-20 20:25 ` Yann E. MORIN
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=20190520222041.2777147e@windsurf.home \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox