Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] kernel.bbclass: handle .dsp firmware
@ 2014-09-08 11:04 Carlos Rafael Giani
  2014-09-08 11:18 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Carlos Rafael Giani @ 2014-09-08 11:04 UTC (permalink / raw)
  To: openembedded-core

A few firmware files use this filename extension, like korg/k1212.dsp .
Create respective packages.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index b02036f..4710719 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -387,6 +387,7 @@ python split_kernel_packages () {
     do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.bin$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
     do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.fw$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
     do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
+    do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.dsp$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
 }
 
 do_strip() {
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] kernel.bbclass: handle .dsp firmware
  2014-09-08 11:04 [PATCH] kernel.bbclass: handle .dsp firmware Carlos Rafael Giani
@ 2014-09-08 11:18 ` Richard Purdie
  2014-09-08 12:08   ` Carlos Rafael Giani
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-09-08 11:18 UTC (permalink / raw)
  To: Carlos Rafael Giani; +Cc: openembedded-core

On Mon, 2014-09-08 at 13:04 +0200, Carlos Rafael Giani wrote:
> A few firmware files use this filename extension, like korg/k1212.dsp .
> Create respective packages.
> 
> Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
> ---
>  meta/classes/kernel.bbclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b02036f..4710719 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -387,6 +387,7 @@ python split_kernel_packages () {
>      do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.bin$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>      do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.fw$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>      do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
> +    do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.dsp$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>  }

Perhaps its time to improve the regex slightly here and use something
like file_regex='^(.*)\.(bin|fw|cis|dsp)$ rather than multiple calls to
do_split_packages?

Cheers,

Richard





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kernel.bbclass: handle .dsp firmware
  2014-09-08 11:18 ` Richard Purdie
@ 2014-09-08 12:08   ` Carlos Rafael Giani
  2014-09-08 12:54     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Carlos Rafael Giani @ 2014-09-08 12:08 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On 09/08/14 13:18, Richard Purdie wrote:
> On Mon, 2014-09-08 at 13:04 +0200, Carlos Rafael Giani wrote:
>> A few firmware files use this filename extension, like korg/k1212.dsp .
>> Create respective packages.
>>
>> Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
>> ---
>>   meta/classes/kernel.bbclass | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index b02036f..4710719 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -387,6 +387,7 @@ python split_kernel_packages () {
>>       do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.bin$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>>       do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.fw$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>>       do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>> +    do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.dsp$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>>   }
> Perhaps its time to improve the regex slightly here and use something
> like file_regex='^(.*)\.(bin|fw|cis|dsp)$ rather than multiple calls to
> do_split_packages?
>
> Cheers,
>
> Richard
>
>
>

I had the same thought. However, I figured that perhaps it would be 
better to do this in a followup patch, to keep the two distinct changes 
separate (add .dsp support + modify regex to the new and improved version).


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kernel.bbclass: handle .dsp firmware
  2014-09-08 12:08   ` Carlos Rafael Giani
@ 2014-09-08 12:54     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2014-09-08 12:54 UTC (permalink / raw)
  To: Carlos Rafael Giani; +Cc: Patches and discussions about the oe-core layer

On Mon, Sep 8, 2014 at 9:08 AM, Carlos Rafael Giani
<dv@pseudoterminal.org> wrote:
> On 09/08/14 13:18, Richard Purdie wrote:
>>
>> On Mon, 2014-09-08 at 13:04 +0200, Carlos Rafael Giani wrote:
>>>
>>> A few firmware files use this filename extension, like korg/k1212.dsp .
>>> Create respective packages.
>>>
>>> Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
...
>> Perhaps its time to improve the regex slightly here and use something
>> like file_regex='^(.*)\.(bin|fw|cis|dsp)$ rather than multiple calls to
>> do_split_packages?
>
> I had the same thought. However, I figured that perhaps it would be better
> to do this in a followup patch, to keep the two distinct changes separate
> (add .dsp support + modify regex to the new and improved version).

Agreed.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-08 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08 11:04 [PATCH] kernel.bbclass: handle .dsp firmware Carlos Rafael Giani
2014-09-08 11:18 ` Richard Purdie
2014-09-08 12:08   ` Carlos Rafael Giani
2014-09-08 12:54     ` Otavio Salvador

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox