Patchwork linux-firmware: fix permissions of installed files

login
register
mail settings
Submitter Andreas Oberritter
Date March 10, 2012, 2:31 a.m.
Message ID <1331346686-14454-1-git-send-email-obi@opendreambox.org>
Download mbox | patch
Permalink /patch/22997/
State Accepted
Commit 710e565beadcf4ea965af688fd08b9b1f274ad57
Headers show

Comments

Andreas Oberritter - March 10, 2012, 2:31 a.m.
* The previous copy command preserved the original
  owner and permission bits.
* The new command uses root:root and applies OE's
  umask.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 .../linux-firmware/linux-firmware_git.bb           |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Saul Wold - March 13, 2012, 4:40 p.m.
On 03/09/2012 06:31 PM, Andreas Oberritter wrote:
> * The previous copy command preserved the original
>    owner and permission bits.
> * The new command uses root:root and applies OE's
>    umask.
>
> Signed-off-by: Andreas Oberritter<obi@opendreambox.org>
> ---
>   .../linux-firmware/linux-firmware_git.bb           |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
> index a99dc7e..52929fa 100644
> --- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
> +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
> @@ -21,7 +21,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.radeon_rlc;md5=4c243f7854d2884b483abda991adef
>
>   SRCREV = "15888a2eab052ac3d3f49334e4f6f05f347a516e"
>   PV = "0.0+git${SRCPV}"
> -PR = "r0"
> +PR = "r1"
>
>   SRC_URI = "git://git.infradead.org/users/dwmw2/linux-firmware.git;protocol=git"
>
> @@ -35,7 +35,7 @@ do_compile() {
>
>   do_install() {
>   	install -d  ${D}/lib/firmware/
> -	cp -RpP * ${D}/lib/firmware/
> +	cp -r * ${D}/lib/firmware/
>
>   	# Libertas sd8686
>   	install -m 0644 libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index a99dc7e..52929fa 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -21,7 +21,7 @@  LIC_FILES_CHKSUM = "file://LICENSE.radeon_rlc;md5=4c243f7854d2884b483abda991adef
 
 SRCREV = "15888a2eab052ac3d3f49334e4f6f05f347a516e"
 PV = "0.0+git${SRCPV}"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "git://git.infradead.org/users/dwmw2/linux-firmware.git;protocol=git"
 
@@ -35,7 +35,7 @@  do_compile() {
 
 do_install() {
 	install -d  ${D}/lib/firmware/
-	cp -RpP * ${D}/lib/firmware/
+	cp -r * ${D}/lib/firmware/
 
 	# Libertas sd8686
 	install -m 0644 libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin