All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file
@ 2018-01-14 23:41 Ricardo Martincoski
  2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Ricardo Martincoski @ 2018-01-14 23:41 UTC (permalink / raw)
  To: buildroot

When a file is listed to be installed but is missing from the package
source currently the first tar command exits with error code but it is
ignored and the build succeeds.
This issue by itself is minor because those listed files that are
present in the package source get installed to the target.
But the code is currently error prone, e.g. to a typo in the file list.

Fix this by first creating a tarball in the build directory and then
installing it, instead of using a pipe between the two tar invocations.
Also use && between the commands, so the first command that exits with
error code fails the build.
Since the two tar invocations remain in use, the desired behavior
remains the same:
 - list of files can contain *;
 - list of files can contain file inside path, and the path is then
   replicated in the target;
 - symlinks are not followed but are installed.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Peter Seiderer <ps.report@gmx.net>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
---
Should it go to 2017.11.x and 2017.08.x too? See next patch
---
 package/linux-firmware/linux-firmware.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index cf79e56..03704d8 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -443,9 +443,9 @@ endif
 
 ifneq ($(LINUX_FIRMWARE_FILES),)
 define LINUX_FIRMWARE_INSTALL_FILES
-	cd $(@D) ; \
-	$(TAR) c $(sort $(LINUX_FIRMWARE_FILES)) | \
-		$(TAR) x -C $(TARGET_DIR)/lib/firmware
+	cd $(@D) && \
+		$(TAR) cf install.tar $(sort $(LINUX_FIRMWARE_FILES)) && \
+		$(TAR) xf install.tar -C $(TARGET_DIR)/lib/firmware
 endef
 endif
 
-- 
2.7.4

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

* [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45]
  2018-01-14 23:41 [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file Ricardo Martincoski
@ 2018-01-14 23:41 ` Ricardo Martincoski
  2018-01-15 16:57   ` Yann E. MORIN
  2018-01-15 20:08   ` Peter Korsgaard
  2018-01-14 23:41 ` [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file Ricardo Martincoski
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 13+ messages in thread
From: Ricardo Martincoski @ 2018-01-14 23:41 UTC (permalink / raw)
  To: buildroot

It's broken for the last 3 version bumps, since
1c9846ecc9 "linux-firmware: Bump to the latest version"

Fix it by updating the name of the file to install.
Do not use * since it would install also old versions that would take
1MB extra space in the target.

A comment to remember to update the file name when bumping the package
is not needed because a previous patch in the series makes the build
to fail for missing file.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Peter Seiderer <ps.report@gmx.net>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
---
I don't have hardware to run-test the firmware itself.

2017.11.x and 2017.08.x should use t[45]fw-1.16.45.0.bin instead
2017.05.x is OK
---
 package/linux-firmware/linux-firmware.mk | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index 03704d8..45483a3 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -337,14 +337,14 @@ LINUX_FIRMWARE_FILES += bnx2x/*
 endif
 
 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T4),y)
-# cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.16.26.0.bin
-LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.16.26.0.bin cxgb4/t4fw.bin
+# cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.16.63.0.bin
+LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.16.63.0.bin cxgb4/t4fw.bin
 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
 endif
 
 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T5),y)
-# cxgb4/t5fw.bin is a symlink to cxgb4/t5fw-1.16.26.0.bin
-LINUX_FIRMWARE_FILES += cxgb4/t5fw-1.16.26.0.bin cxgb4/t5fw.bin
+# cxgb4/t5fw.bin is a symlink to cxgb4/t5fw-1.16.63.0.bin
+LINUX_FIRMWARE_FILES += cxgb4/t5fw-1.16.63.0.bin cxgb4/t5fw.bin
 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
 endif
 
-- 
2.7.4

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

* [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file
  2018-01-14 23:41 [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file Ricardo Martincoski
  2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
@ 2018-01-14 23:41 ` Ricardo Martincoski
  2018-01-15 16:53   ` Yann E. MORIN
  2018-01-15 20:11   ` Peter Korsgaard
  2018-01-15 17:00 ` [Buildroot] [PATCH 1/3] linux-firmware: " Yann E. MORIN
  2018-01-15 20:05 ` Peter Korsgaard
  3 siblings, 2 replies; 13+ messages in thread
From: Ricardo Martincoski @ 2018-01-14 23:41 UTC (permalink / raw)
  To: buildroot

When a file is listed to be installed but is missing from the package
source currently the first tar command exits with error code but it is
ignored and the build succeeds.
This issue by itself is minor because those listed files that are
present in the package source get installed to the target.
But the code is currently error prone, e.g. to a typo in the file list.

Fix this by first creating a tarball in the build directory and then
installing it, instead of using a pipe between the two tar invocations.
Also use && between the commands, so the first command that exits with
error code fails the build.
Since the two tar invocations remain in use, the desired behavior
remains the same:
 - list of files can contain *;
 - list of files can contain file inside path, and the path is then
   replicated in the target;
 - symlinks are not followed but are installed.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Sergey Matyukevich <geomatsi@gmail.com>
---
This package copied the install commands from linux-firmware.
So let's copy the fix and also the commit log.
---
 package/armbian-firmware/armbian-firmware.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/armbian-firmware/armbian-firmware.mk b/package/armbian-firmware/armbian-firmware.mk
index 48b0372..77e5185 100644
--- a/package/armbian-firmware/armbian-firmware.mk
+++ b/package/armbian-firmware/armbian-firmware.mk
@@ -23,9 +23,9 @@ endif
 
 ifneq ($(ARMBIAN_FIRMWARE_FILES),)
 define ARMBIAN_FIRMWARE_INSTALL_FILES
-	cd $(@D) ; \
-	$(TAR) c $(sort $(ARMBIAN_FIRMWARE_FILES)) | \
-		$(TAR) x -C $(TARGET_DIR)/lib/firmware
+	cd $(@D) && \
+		$(TAR) cf install.tar $(sort $(ARMBIAN_FIRMWARE_FILES)) && \
+		$(TAR) xf install.tar -C $(TARGET_DIR)/lib/firmware
 endef
 endif
 
-- 
2.7.4

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

* [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file
  2018-01-14 23:41 ` [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file Ricardo Martincoski
@ 2018-01-15 16:53   ` Yann E. MORIN
  2018-01-15 17:07     ` Ricardo Martincoski
  2018-01-15 20:11   ` Peter Korsgaard
  1 sibling, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2018-01-15 16:53 UTC (permalink / raw)
  To: buildroot

Ricardo, All,

I gues you wanted to Cc me on the first patch in the series, related to
linux-firmware, not armbian-firmware, right? ;-)

On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
> When a file is listed to be installed but is missing from the package
> source currently the first tar command exits with error code but it is
> ignored and the build succeeds.
> This issue by itself is minor because those listed files that are
> present in the package source get installed to the target.
> But the code is currently error prone, e.g. to a typo in the file list.
> 
> Fix this by first creating a tarball in the build directory and then
> installing it, instead of using a pipe between the two tar invocations.
> Also use && between the commands, so the first command that exits with
> error code fails the build.
> Since the two tar invocations remain in use, the desired behavior
> remains the same:
>  - list of files can contain *;
>  - list of files can contain file inside path, and the path is then
>    replicated in the target;
>  - symlinks are not followed but are installed.
> 
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> Cc: Sergey Matyukevich <geomatsi@gmail.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
> This package copied the install commands from linux-firmware.
> So let's copy the fix and also the commit log.
> ---
>  package/armbian-firmware/armbian-firmware.mk | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/package/armbian-firmware/armbian-firmware.mk b/package/armbian-firmware/armbian-firmware.mk
> index 48b0372..77e5185 100644
> --- a/package/armbian-firmware/armbian-firmware.mk
> +++ b/package/armbian-firmware/armbian-firmware.mk
> @@ -23,9 +23,9 @@ endif
>  
>  ifneq ($(ARMBIAN_FIRMWARE_FILES),)
>  define ARMBIAN_FIRMWARE_INSTALL_FILES
> -	cd $(@D) ; \
> -	$(TAR) c $(sort $(ARMBIAN_FIRMWARE_FILES)) | \
> -		$(TAR) x -C $(TARGET_DIR)/lib/firmware
> +	cd $(@D) && \
> +		$(TAR) cf install.tar $(sort $(ARMBIAN_FIRMWARE_FILES)) && \
> +		$(TAR) xf install.tar -C $(TARGET_DIR)/lib/firmware
>  endef
>  endif
>  
> -- 
> 2.7.4
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45]
  2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
@ 2018-01-15 16:57   ` Yann E. MORIN
  2018-01-15 20:10     ` Peter Korsgaard
  2018-01-15 20:08   ` Peter Korsgaard
  1 sibling, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2018-01-15 16:57 UTC (permalink / raw)
  To: buildroot

Ricardo, All,

On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
> It's broken for the last 3 version bumps, since
> 1c9846ecc9 "linux-firmware: Bump to the latest version"
> 
> Fix it by updating the name of the file to install.
> Do not use * since it would install also old versions that would take
> 1MB extra space in the target.

I would prefer if we were to keep installing the older version, because
presumably older kernel versions (even if they request the unversionned
t4fw.bin) would probably have been working with earlier versions of the
firmware, so I'd prefer we leave to the user the option to redirect the
symlink to the correct version they want to use.

(of course, they'd have to provide a post-build script for that.)

> A comment to remember to update the file name when bumping the package
> is not needed because a previous patch in the series makes the build
> to fail for missing file.
> 
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Peter Seiderer <ps.report@gmx.net>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Yegor Yefremov <yegorslists@googlemail.com>

But still, this change is technically OK, so:

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
> I don't have hardware to run-test the firmware itself.
> 
> 2017.11.x and 2017.08.x should use t[45]fw-1.16.45.0.bin instead
> 2017.05.x is OK
> ---
>  package/linux-firmware/linux-firmware.mk | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
> index 03704d8..45483a3 100644
> --- a/package/linux-firmware/linux-firmware.mk
> +++ b/package/linux-firmware/linux-firmware.mk
> @@ -337,14 +337,14 @@ LINUX_FIRMWARE_FILES += bnx2x/*
>  endif
>  
>  ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T4),y)
> -# cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.16.26.0.bin
> -LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.16.26.0.bin cxgb4/t4fw.bin
> +# cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.16.63.0.bin
> +LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.16.63.0.bin cxgb4/t4fw.bin
>  LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
>  endif
>  
>  ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T5),y)
> -# cxgb4/t5fw.bin is a symlink to cxgb4/t5fw-1.16.26.0.bin
> -LINUX_FIRMWARE_FILES += cxgb4/t5fw-1.16.26.0.bin cxgb4/t5fw.bin
> +# cxgb4/t5fw.bin is a symlink to cxgb4/t5fw-1.16.63.0.bin
> +LINUX_FIRMWARE_FILES += cxgb4/t5fw-1.16.63.0.bin cxgb4/t5fw.bin
>  LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
>  endif
>  
> -- 
> 2.7.4
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file
  2018-01-14 23:41 [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file Ricardo Martincoski
  2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
  2018-01-14 23:41 ` [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file Ricardo Martincoski
@ 2018-01-15 17:00 ` Yann E. MORIN
  2018-01-15 20:05 ` Peter Korsgaard
  3 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2018-01-15 17:00 UTC (permalink / raw)
  To: buildroot

Ricardo, all,

On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
> When a file is listed to be installed but is missing from the package
> source currently the first tar command exits with error code but it is
> ignored and the build succeeds.
> This issue by itself is minor because those listed files that are
> present in the package source get installed to the target.
> But the code is currently error prone, e.g. to a typo in the file list.
> 
> Fix this by first creating a tarball in the build directory and then
> installing it, instead of using a pipe between the two tar invocations.
> Also use && between the commands, so the first command that exits with
> error code fails the build.
> Since the two tar invocations remain in use, the desired behavior
> remains the same:
>  - list of files can contain *;
>  - list of files can contain file inside path, and the path is then
>    replicated in the target;
>  - symlinks are not followed but are installed.
> 
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Peter Seiderer <ps.report@gmx.net>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Yegor Yefremov <yegorslists@googlemail.com>

Bizarely enough I am in Cc of this patch, but I did not receive it
directly... Anyway...

I was about to do a very similar change, so let's go with yours:

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
> Should it go to 2017.11.x and 2017.08.x too? See next patch
> ---
>  package/linux-firmware/linux-firmware.mk | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
> index cf79e56..03704d8 100644
> --- a/package/linux-firmware/linux-firmware.mk
> +++ b/package/linux-firmware/linux-firmware.mk
> @@ -443,9 +443,9 @@ endif
>  
>  ifneq ($(LINUX_FIRMWARE_FILES),)
>  define LINUX_FIRMWARE_INSTALL_FILES
> -	cd $(@D) ; \
> -	$(TAR) c $(sort $(LINUX_FIRMWARE_FILES)) | \
> -		$(TAR) x -C $(TARGET_DIR)/lib/firmware
> +	cd $(@D) && \
> +		$(TAR) cf install.tar $(sort $(LINUX_FIRMWARE_FILES)) && \
> +		$(TAR) xf install.tar -C $(TARGET_DIR)/lib/firmware
>  endef
>  endif
>  
> -- 
> 2.7.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file
  2018-01-15 16:53   ` Yann E. MORIN
@ 2018-01-15 17:07     ` Ricardo Martincoski
  2018-01-15 17:17       ` Ricardo Martincoski
  0 siblings, 1 reply; 13+ messages in thread
From: Ricardo Martincoski @ 2018-01-15 17:07 UTC (permalink / raw)
  To: buildroot



----- Original Message -----
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: "ricardo martincoski" <ricardo.martincoski@gmail.com>
Cc: "Sergey Matyukevich" <geomatsi@gmail.com>, buildroot at buildroot.org
Sent: Monday, January 15, 2018 2:53:37 PM
Subject: Re: [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file

Ricardo, All,

I gues you wanted to Cc me on the first patch in the series, related to
linux-firmware, not armbian-firmware, right? ;-)

Sure.
I first added you explicitly only for patches 1 and 2.
Then I ran get-developers again for all patches, copy&paste and send
using git.?

On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
> When a file is listed to be installed but is missing from the package
> source currently the first tar command exits with error code but it is
> ignored and the build succeeds.
> This issue by itself is minor because those listed files that are
> present in the package source get installed to the target.
> But the code is currently error prone, e.g. to a typo in the file list.
> 
> Fix this by first creating a tarball in the build directory and then
> installing it, instead of using a pipe between the two tar invocations.
> Also use && between the commands, so the first command that exits with
> error code fails the build.
> Since the two tar invocations remain in use, the desired behavior
> remains the same:
>  - list of files can contain *;
>  - list of files can contain file inside path, and the path is then
>    replicated in the target;
>  - symlinks are not followed but are installed.
> 
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> Cc: Sergey Matyukevich <geomatsi@gmail.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
> This package copied the install commands from linux-firmware.
> So let's copy the fix and also the commit log.
> ---
>  package/armbian-firmware/armbian-firmware.mk | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/package/armbian-firmware/armbian-firmware.mk b/package/armbian-firmware/armbian-firmware.mk
> index 48b0372..77e5185 100644
> --- a/package/armbian-firmware/armbian-firmware.mk
> +++ b/package/armbian-firmware/armbian-firmware.mk
> @@ -23,9 +23,9 @@ endif
>  
>  ifneq ($(ARMBIAN_FIRMWARE_FILES),)
>  define ARMBIAN_FIRMWARE_INSTALL_FILES
> -	cd $(@D) ; \
> -	$(TAR) c $(sort $(ARMBIAN_FIRMWARE_FILES)) | \
> -		$(TAR) x -C $(TARGET_DIR)/lib/firmware
> +	cd $(@D) && \
> +		$(TAR) cf install.tar $(sort $(ARMBIAN_FIRMWARE_FILES)) && \
> +		$(TAR) xf install.tar -C $(TARGET_DIR)/lib/firmware
>  endef
>  endif
>  
> -- 
> 2.7.4
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file
  2018-01-15 17:07     ` Ricardo Martincoski
@ 2018-01-15 17:17       ` Ricardo Martincoski
  0 siblings, 0 replies; 13+ messages in thread
From: Ricardo Martincoski @ 2018-01-15 17:17 UTC (permalink / raw)
  To: buildroot

Hello,

Here is the response properly formatted. I clicked a few wrong buttons.
 
> Ricardo, All,
> 
> I gues you wanted to Cc me on the first patch in the series, related to
> linux-firmware, not armbian-firmware, right? ;-)
 
Sure. I first added you explicitly only for patches 1 and 2.
Then I ran get-developers again for all patches, copy&paste and sent
using git sendmail. So I end up adding up you for all patches. Sorry.

Regards,
Ricardo

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

* [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file
  2018-01-14 23:41 [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file Ricardo Martincoski
                   ` (2 preceding siblings ...)
  2018-01-15 17:00 ` [Buildroot] [PATCH 1/3] linux-firmware: " Yann E. MORIN
@ 2018-01-15 20:05 ` Peter Korsgaard
  3 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-01-15 20:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Ricardo" == Ricardo Martincoski <ricardo.martincoski@gmail.com> writes:

 > When a file is listed to be installed but is missing from the package
 > source currently the first tar command exits with error code but it is
 > ignored and the build succeeds.
 > This issue by itself is minor because those listed files that are
 > present in the package source get installed to the target.
 > But the code is currently error prone, e.g. to a typo in the file list.

 > Fix this by first creating a tarball in the build directory and then
 > installing it, instead of using a pipe between the two tar invocations.
 > Also use && between the commands, so the first command that exits with
 > error code fails the build.
 > Since the two tar invocations remain in use, the desired behavior
 > remains the same:
 >  - list of files can contain *;
 >  - list of files can contain file inside path, and the path is then
 >    replicated in the target;
 >  - symlinks are not followed but are installed.

 > Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
 > Cc: Fabio Estevam <festevam@gmail.com>
 > Cc: Peter Korsgaard <peter@korsgaard.com>
 > Cc: Peter Seiderer <ps.report@gmx.net>
 > Cc: Yann E. MORIN <yann.morin.1998@free.fr>
 > Cc: Yegor Yefremov <yegorslists@googlemail.com>
 > ---
 > Should it go to 2017.11.x and 2017.08.x too? See next patch

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45]
  2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
  2018-01-15 16:57   ` Yann E. MORIN
@ 2018-01-15 20:08   ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-01-15 20:08 UTC (permalink / raw)
  To: buildroot

>>>>> "Ricardo" == Ricardo Martincoski <ricardo.martincoski@gmail.com> writes:

 > It's broken for the last 3 version bumps, since
 > 1c9846ecc9 "linux-firmware: Bump to the latest version"

 > Fix it by updating the name of the file to install.
 > Do not use * since it would install also old versions that would take
 > 1MB extra space in the target.

 > A comment to remember to update the file name when bumping the package
 > is not needed because a previous patch in the series makes the build
 > to fail for missing file.

 > Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
 > Cc: Fabio Estevam <festevam@gmail.com>
 > Cc: Peter Korsgaard <peter@korsgaard.com>
 > Cc: Peter Seiderer <ps.report@gmx.net>
 > Cc: Yann E. MORIN <yann.morin.1998@free.fr>
 > Cc: Yegor Yefremov <yegorslists@googlemail.com>
 > ---
 > I don't have hardware to run-test the firmware itself.

Committed, thanks.

 > 2017.11.x and 2017.08.x should use t[45]fw-1.16.45.0.bin instead
 > 2017.05.x is OK

Thanks. Will you send a patch for 2017.11.x?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45]
  2018-01-15 16:57   ` Yann E. MORIN
@ 2018-01-15 20:10     ` Peter Korsgaard
  2018-01-15 20:31       ` Yann E. MORIN
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Korsgaard @ 2018-01-15 20:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Ricardo, All,
 > On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
 >> It's broken for the last 3 version bumps, since
 >> 1c9846ecc9 "linux-firmware: Bump to the latest version"
 >> 
 >> Fix it by updating the name of the file to install.
 >> Do not use * since it would install also old versions that would take
 >> 1MB extra space in the target.

 > I would prefer if we were to keep installing the older version, because
 > presumably older kernel versions (even if they request the unversionned
 > t4fw.bin) would probably have been working with earlier versions of the
 > firmware, so I'd prefer we leave to the user the option to redirect the
 > symlink to the correct version they want to use.

That might indeed be nice, but should be done as a separate patch. A
nice thing about install t4fw*bin would be that this kind of problems
wouldn't happen again.

Will you send a patch?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file
  2018-01-14 23:41 ` [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file Ricardo Martincoski
  2018-01-15 16:53   ` Yann E. MORIN
@ 2018-01-15 20:11   ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-01-15 20:11 UTC (permalink / raw)
  To: buildroot

>>>>> "Ricardo" == Ricardo Martincoski <ricardo.martincoski@gmail.com> writes:

 > When a file is listed to be installed but is missing from the package
 > source currently the first tar command exits with error code but it is
 > ignored and the build succeeds.
 > This issue by itself is minor because those listed files that are
 > present in the package source get installed to the target.
 > But the code is currently error prone, e.g. to a typo in the file list.

 > Fix this by first creating a tarball in the build directory and then
 > installing it, instead of using a pipe between the two tar invocations.
 > Also use && between the commands, so the first command that exits with
 > error code fails the build.
 > Since the two tar invocations remain in use, the desired behavior
 > remains the same:
 >  - list of files can contain *;
 >  - list of files can contain file inside path, and the path is then
 >    replicated in the target;
 >  - symlinks are not followed but are installed.

 > Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
 > Cc: Sergey Matyukevich <geomatsi@gmail.com>
 > ---
 > This package copied the install commands from linux-firmware.
 > So let's copy the fix and also the commit log.

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45]
  2018-01-15 20:10     ` Peter Korsgaard
@ 2018-01-15 20:31       ` Yann E. MORIN
  0 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2018-01-15 20:31 UTC (permalink / raw)
  To: buildroot

Peter, All,

On 2018-01-15 21:10 +0100, Peter Korsgaard spake thusly:
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> 
>  > Ricardo, All,
>  > On 2018-01-14 21:41 -0200, Ricardo Martincoski spake thusly:
>  >> It's broken for the last 3 version bumps, since
>  >> 1c9846ecc9 "linux-firmware: Bump to the latest version"
>  >> 
>  >> Fix it by updating the name of the file to install.
>  >> Do not use * since it would install also old versions that would take
>  >> 1MB extra space in the target.
> 
>  > I would prefer if we were to keep installing the older version, because
>  > presumably older kernel versions (even if they request the unversionned
>  > t4fw.bin) would probably have been working with earlier versions of the
>  > firmware, so I'd prefer we leave to the user the option to redirect the
>  > symlink to the correct version they want to use.
> 
> That might indeed be nice, but should be done as a separate patch. A
> nice thing about install t4fw*bin would be that this kind of problems
> wouldn't happen again.

Good idea.

> Will you send a patch?

In the making now...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2018-01-15 20:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 23:41 [Buildroot] [PATCH 1/3] linux-firmware: fail build for missing file Ricardo Martincoski
2018-01-14 23:41 ` [Buildroot] [PATCH 2/3] linux-firmware: fix install for Chelsio T[45] Ricardo Martincoski
2018-01-15 16:57   ` Yann E. MORIN
2018-01-15 20:10     ` Peter Korsgaard
2018-01-15 20:31       ` Yann E. MORIN
2018-01-15 20:08   ` Peter Korsgaard
2018-01-14 23:41 ` [Buildroot] [PATCH 3/3] armbian-firmware: fail build for missing file Ricardo Martincoski
2018-01-15 16:53   ` Yann E. MORIN
2018-01-15 17:07     ` Ricardo Martincoski
2018-01-15 17:17       ` Ricardo Martincoski
2018-01-15 20:11   ` Peter Korsgaard
2018-01-15 17:00 ` [Buildroot] [PATCH 1/3] linux-firmware: " Yann E. MORIN
2018-01-15 20:05 ` Peter Korsgaard

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.