Ack: [PATCH Precise LBM 1/2] UBUNTU: Add version specific firmware delivery mechanism

Leann Ogasawara leann.ogasawara at canonical.com
Fri Apr 19 21:05:33 UTC 2013


Acked-by: Leann Ogasawara <leann.ogasawara at canonical.com>

On 04/19/2013 08:56 AM, Tim Gardner wrote:
> BugLink: http://bugs.launchpad.net/bugs/1170739
>
> The udev rules for finding firmware are already uniquely
> tied to an ABI number. Now we provide a way to deliver firmware
> that is consumed by the compat wireless drivers.
>
> Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
> ---
>  debian/rules.d/2-binary-arch.mk |    8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
> index 2a09134..185bc9f 100644
> --- a/debian/rules.d/2-binary-arch.mk
> +++ b/debian/rules.d/2-binary-arch.mk
> @@ -121,7 +121,8 @@ ifneq ($(CWDIRS),)
>  		cwpkgdir=$(CURDIR)/debian/linux-backports-modules-$${cw}-$(release)-$(abinum)-$(target_flavour); \
>  		cwblddir=$(builddir)/build-$(target_flavour)/$${cw}; \
>  		cwmoddir=$${cwpkgdir}/lib/modules/$(release)-$(abinum)-$(target_flavour)/updates; \
> -		firmdir=$${cwpkgdir}/lib/firmware/updates/$(release)-$(abinum)-$(target_flavour); \
> +		dstfirmdir=$${cwpkgdir}/lib/firmware/updates/$(release)-$(abinum)-$(target_flavour); \
> +		srcfirmdir=$(CURDIR)/updates/$${cw}-firmware; \
>  \
>  		dh_clean -k -plinux-backports-modules-$${cw}-$(release)-$(abinum)-$(target_flavour); \
>  \
> @@ -144,8 +145,9 @@ ifneq ($(CWDIRS),)
>  		install -d $${cwpkgdir}/lib/udev/rules.d; \
>  		install --mode=0644 $${cwblddir}/udev/ubuntu/50-compat_firmware_$(abinum)_$(target_flavour).rules $${cwpkgdir}/lib/udev/rules.d; \
>  \
> -		install -d $${firmdir}; \
> -		if [ -d firmware/iwlwifi ] ; then cp firmware/iwlwifi/*/*.ucode $${firmdir}/; fi; \
> +		install -d $${dstfirmdir}; \
> +		echo $${srcfirmdir} $${dstfirmdir}; \
> +		if [ -d $${srcfirmdir} ] ; then cp -rv $${srcfirmdir}/* $${dstfirmdir}; fi; \
>  	done
>  endif
>  





More information about the kernel-team mailing list