From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] New package: linux-firmware
Date: Thu, 26 Jan 2012 15:19:59 +0100 [thread overview]
Message-ID: <4F21610F.6070004@visionsystems.de> (raw)
In-Reply-To: <22c5d41b369800fbf0664afdc9da0f6f@zacarias.com.ar>
Am 26.01.2012 14:55, schrieb Gustavo Zacarias:
> On 2012-01-26 10:44, Yegor Yefremov wrote:
>> Am 26.01.2012 13:47, schrieb Gustavo Zacarias:
>>> On 2012-01-26 09:43, Peter Korsgaard wrote:
>>>
>>>> Agreed, except you should use a loop and install -D, so subdirs are
>>>> supported.
>>>>
>>>> E.G.
>>>>
>>>> for i in $(LINUX_FIRMWARE_FILES); do \
>>>> $i(INSTALL) -m 0644 -D $(@D)/$$i $(TARGET_DIR)/lib/firmware/$$i; \
>>>> done
>>>
>>> Also LINUX_FIRMWARE_FILES_$(CONFIG_FIRMWARE_XXXX) += file1 file2 could be used with $(LINUX_FIRMWARE_FILES_y) to make it even shorter.
>> How can I use it exactly? Can provide an example?
>>
>> Yegor
>
> Something like...
>
> LINUX_FIRMWARE_FILES_$(BR2_PACKAGE_LINUX_FIRMWARE_TI_WL127X) += ti-connectivity/TIInit_7.2.31.bts
> LINUX_FIRMWARE_FILES_$(BR2_PACKAGE_LINUX_FIRMWARE_TI_WL128X) += ti-connectivity/TIInit_7.2.31.bts
>
> define LINUX_FIRMWARE_INSTALL_TARGET_CMDS
> for i in $(LINUX_FIRMWARE_FILES_y); do \
> $(INSTALL) -m 0644 -D $(@D)/$$i $(TARGET_DIR)/lib/firmware/$$i; \
> done
> endef
>
> Since LINUX_FIRMWARE_FILES_$(CONFIG_OPTION) evals to LINUX_FIRMWARE_FILES_y if it's set and just LINUX_FIRMWARE_FILES_ if not so it get filled up pretty nicely. Look at the lm-sensors package for an example.
Thanks. I understand now.
Another question: what to do with symlinks?
rt3070.bin -> rt2870.bin
rt3090.bin -> rt2860.bin
Yegor
next prev parent reply other threads:[~2012-01-26 14:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 11:30 [Buildroot] [PATCH v3] New package: linux-firmware yegorslists at googlemail.com
2012-01-26 12:00 ` Gustavo Zacarias
2012-01-26 12:16 ` Thomas Petazzoni
2012-01-26 12:43 ` Peter Korsgaard
2012-01-26 12:47 ` Gustavo Zacarias
2012-01-26 12:57 ` Peter Korsgaard
2012-01-26 12:59 ` Gustavo Zacarias
2012-01-26 13:44 ` Yegor Yefremov
2012-01-26 13:53 ` Peter Korsgaard
2012-01-26 13:55 ` Gustavo Zacarias
2012-01-26 14:19 ` Yegor Yefremov [this message]
2012-01-26 14:45 ` Gustavo Zacarias
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=4F21610F.6070004@visionsystems.de \
--to=yegor_sub1@visionsystems.de \
--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 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.