All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story
@ 2021-05-18 21:37 Thomas Petazzoni
  2021-05-18 21:37 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series Thomas Petazzoni
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-18 21:37 UTC (permalink / raw)
  To: buildroot

Hello,

In order to hopefully make progress on the at91bootstrap 4.x story,
here is a series of patches, based on the existing work from Eugen
Hristev, which matches better what I believe we want to have in
Buildroot.

The only annoyance that I have with applying this right now is that
the "latest" version of at91bootstrap would now be 4.0.0-rc2, which is
not a "final" release.

Reviews/comments welcome.

This is also available on Github at:

  https://github.com/tpetazzoni/buildroot/commits/at91bootstrap4

Thomas

Eugen Hristev (2):
  boot/at91bootstrap3: add support for at91bootstrap 4.x series
  boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3

Thomas Petazzoni (1):
  boot/at91bootstrap3: bump 3.x series to 3.10.2

 boot/at91bootstrap3/Config.in           | 20 ++++++++++++++++----
 boot/at91bootstrap3/at91bootstrap3.hash |  3 ++-
 boot/at91bootstrap3/at91bootstrap3.mk   |  6 +++++-
 3 files changed, 23 insertions(+), 6 deletions(-)

-- 
2.31.1

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-18 21:37 [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Thomas Petazzoni
@ 2021-05-18 21:37 ` Thomas Petazzoni
  2021-05-19  9:33   ` Yann E. MORIN
  2021-05-18 21:37 ` [Buildroot] [PATCH 2/3] boot/at91bootstrap3: bump 3.x series to 3.10.2 Thomas Petazzoni
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-18 21:37 UTC (permalink / raw)
  To: buildroot

From: Eugen Hristev <eugen.hristev@microchip.com>

The project at https://github.com/linux4sam/at91bootstrap was until
now releasing 3.x versions, which were packaged using
boot/at91bootstrap3/ in Buildroot. Microchip has now started a new
branch of at91bootstrap, called 4.x, which will only support the
following devices: sam9x60, sama5d2, sama5d3, sama5d4, sama7g5. A
number of older devices from Microchip will only be supported by the
existing 3.x series.

Therefore, we cannot simply remove support for the 3.x series, and
allow using only the 4.x series.

So what this commit does is extend the boot/at91bootstrap3 package to
support building both 3.x and 4.x versions. In detail, this implies:

 * Having the BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION symbol point to
   the latest 4.x version. Indeed, we want
   BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION to really point to the
   latest upstream version, even if that means potential breakage for
   users. Users who want to use a fixed version of at91bootstrap
   should anyway not be using
   BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION.

 * Introduce BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X for users who
   would like to use the latest 3.x series.

 * Adjust the installation logic, as images to install are now in
   build/binaries/*.bin instead of binaries/*.bin. In order to not
   have to differentiate 3.x and 4.x, we simply use $(wildcard ...) to
   expand the list of files to install.

 * To make it clear that boot/at91bootstrap3 supports both 3.x and
   4.x, we also update the prompt of the package.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[Thomas: while this patch is based on previous work by Eugen, it was
reworked quite significantly.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 boot/at91bootstrap3/Config.in           | 10 +++++++---
 boot/at91bootstrap3/at91bootstrap3.hash |  1 +
 boot/at91bootstrap3/at91bootstrap3.mk   |  2 +-
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
index 25ab30489f..ebc912e46c 100644
--- a/boot/at91bootstrap3/Config.in
+++ b/boot/at91bootstrap3/Config.in
@@ -1,5 +1,5 @@
 config BR2_TARGET_AT91BOOTSTRAP3
-	bool "AT91 Bootstrap 3"
+	bool "AT91 Bootstrap 3+"
 	depends on BR2_arm926t || BR2_cortex_a5 || BR2_cortex_a7
 	help
 	  AT91Bootstrap is a first level bootloader for the Atmel AT91
@@ -16,9 +16,12 @@ if BR2_TARGET_AT91BOOTSTRAP3
 
 choice
 
-	prompt "AT91 Bootstrap 3 version"
+	prompt "AT91 Bootstrap 3+ version"
 
 config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
+	bool "4.0.0-rc2"
+
+config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
 	bool "3.9.3"
 
 config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
@@ -51,7 +54,8 @@ endif
 
 config BR2_TARGET_AT91BOOTSTRAP3_VERSION
 	string
-	default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
+	default "v4.0.0-rc2" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
+	default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
 	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
 		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
 	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
diff --git a/boot/at91bootstrap3/at91bootstrap3.hash b/boot/at91bootstrap3/at91bootstrap3.hash
index 6b6257b0ab..a63eb1d623 100644
--- a/boot/at91bootstrap3/at91bootstrap3.hash
+++ b/boot/at91bootstrap3/at91bootstrap3.hash
@@ -1,3 +1,4 @@
 # Locally calculated
 sha256  dd6a3c57c1c84fc3b18187bee3d139146a0e032dd1d8edea7b242730e0bc4fe1  at91bootstrap3-v3.9.3.tar.gz
+sha256  b5d5f042297cad0d091f7d8734e61eb9ec7b6020898e086503fb5f8bc71fb9fc  at91bootstrap3-v4.0.0-rc2.tar.gz
 sha256  fd7a1ce5719bb7abf5e289da2e0ea8c933af3ba0f6ad03dbdbd2b7f54a77498a  main.c
diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
index a942afcdc9..fdd87591bb 100644
--- a/boot/at91bootstrap3/at91bootstrap3.mk
+++ b/boot/at91bootstrap3/at91bootstrap3.mk
@@ -48,7 +48,7 @@ define AT91BOOTSTRAP3_BUILD_CMDS
 endef
 
 define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
-	cp $(@D)/binaries/*.bin $(BINARIES_DIR)
+	cp $(wildcard $(@D)/build/binaries/*.bin $(@D)/binaries/*.bin) $(BINARIES_DIR)
 endef
 
 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
-- 
2.31.1

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

* [Buildroot] [PATCH 2/3] boot/at91bootstrap3: bump 3.x series to 3.10.2
  2021-05-18 21:37 [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Thomas Petazzoni
  2021-05-18 21:37 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series Thomas Petazzoni
@ 2021-05-18 21:37 ` Thomas Petazzoni
  2021-05-18 21:37 ` [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 Thomas Petazzoni
  2021-05-19  9:34 ` [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Yann E. MORIN
  3 siblings, 0 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-18 21:37 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 boot/at91bootstrap3/Config.in           | 4 ++--
 boot/at91bootstrap3/at91bootstrap3.hash | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
index ebc912e46c..18301a0dc0 100644
--- a/boot/at91bootstrap3/Config.in
+++ b/boot/at91bootstrap3/Config.in
@@ -22,7 +22,7 @@ config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
 	bool "4.0.0-rc2"
 
 config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
-	bool "3.9.3"
+	bool "3.10.2"
 
 config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
 	bool "Custom Git repository"
@@ -55,7 +55,7 @@ endif
 config BR2_TARGET_AT91BOOTSTRAP3_VERSION
 	string
 	default "v4.0.0-rc2" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
-	default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
+	default "v3.10.2" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
 	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
 		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
 	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
diff --git a/boot/at91bootstrap3/at91bootstrap3.hash b/boot/at91bootstrap3/at91bootstrap3.hash
index a63eb1d623..6af997b8eb 100644
--- a/boot/at91bootstrap3/at91bootstrap3.hash
+++ b/boot/at91bootstrap3/at91bootstrap3.hash
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  dd6a3c57c1c84fc3b18187bee3d139146a0e032dd1d8edea7b242730e0bc4fe1  at91bootstrap3-v3.9.3.tar.gz
+sha256  33e4ba431af93a4fc2e81c1458cd31901b9f69c583ebe4c74ca78c0846479bfd  at91bootstrap3-v3.10.2.tar.gz
 sha256  b5d5f042297cad0d091f7d8734e61eb9ec7b6020898e086503fb5f8bc71fb9fc  at91bootstrap3-v4.0.0-rc2.tar.gz
 sha256  fd7a1ce5719bb7abf5e289da2e0ea8c933af3ba0f6ad03dbdbd2b7f54a77498a  main.c
-- 
2.31.1

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

* [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
  2021-05-18 21:37 [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Thomas Petazzoni
  2021-05-18 21:37 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series Thomas Petazzoni
  2021-05-18 21:37 ` [Buildroot] [PATCH 2/3] boot/at91bootstrap3: bump 3.x series to 3.10.2 Thomas Petazzoni
@ 2021-05-18 21:37 ` Thomas Petazzoni
  2021-05-19 11:29   ` Eugen.Hristev at microchip.com
  2021-05-19  9:34 ` [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Yann E. MORIN
  3 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-18 21:37 UTC (permalink / raw)
  To: buildroot

From: Eugen Hristev <eugen.hristev@microchip.com>

Some at91bootstrap3 configurations now use Python scripts on the host
for NAND/PMEC related utilities. In order to be able to use those
scripts, this commit adds a new
BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 which allows to express the
need for host-python3 as a dependency to build at91bootstrap3.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[Thomas: this was extracted from a patch from Eugen adding
at91bootstrap 4.x support.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 boot/at91bootstrap3/Config.in         | 8 ++++++++
 boot/at91bootstrap3/at91bootstrap3.mk | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
index 18301a0dc0..966e393db5 100644
--- a/boot/at91bootstrap3/Config.in
+++ b/boot/at91bootstrap3/Config.in
@@ -101,3 +101,11 @@ config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
 	  Path to the at91bootstrap3 configuration file
 
 endif # BR2_TARGET_AT91BOOTSTRAP3
+
+config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
+	bool "needs host-python3"
+	help
+	  Enable this option if the at91bootstrap build process needs
+	  Python 3.x to be available on the host. This is needed in
+	  some at91bootstrap configurations to use NAND/PMECC Python
+	  scripts.
diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
index fdd87591bb..48200b2b6e 100644
--- a/boot/at91bootstrap3/at91bootstrap3.mk
+++ b/boot/at91bootstrap3/at91bootstrap3.mk
@@ -30,6 +30,10 @@ AT91BOOTSTRAP3_CPE_ID_PRODUCT = at91bootstrap
 AT91BOOTSTRAP3_INSTALL_IMAGES = YES
 AT91BOOTSTRAP3_INSTALL_TARGET = NO
 
+ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3),y)
+AT91BOOTSTRAP3_DEPENDENCIES += host-python3
+endif
+
 AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
 	$(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
 
-- 
2.31.1

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-18 21:37 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series Thomas Petazzoni
@ 2021-05-19  9:33   ` Yann E. MORIN
  2021-05-19 10:02     ` Thomas Petazzoni
  0 siblings, 1 reply; 18+ messages in thread
From: Yann E. MORIN @ 2021-05-19  9:33 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2021-05-18 23:37 +0200, Thomas Petazzoni spake thusly:
> From: Eugen Hristev <eugen.hristev@microchip.com>
> 
> The project at https://github.com/linux4sam/at91bootstrap was until
> now releasing 3.x versions, which were packaged using
> boot/at91bootstrap3/ in Buildroot. Microchip has now started a new
> branch of at91bootstrap, called 4.x, which will only support the
> following devices: sam9x60, sama5d2, sama5d3, sama5d4, sama7g5. A
> number of older devices from Microchip will only be supported by the
> existing 3.x series.
> 
> Therefore, we cannot simply remove support for the 3.x series, and
> allow using only the 4.x series.
> 
> So what this commit does is extend the boot/at91bootstrap3 package to
> support building both 3.x and 4.x versions. In detail, this implies:
> 
>  * Having the BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION symbol point to
>    the latest 4.x version. Indeed, we want
>    BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION to really point to the
>    latest upstream version, even if that means potential breakage for
>    users. Users who want to use a fixed version of at91bootstrap
>    should anyway not be using
>    BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION.
> 
>  * Introduce BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X for users who
>    would like to use the latest 3.x series.

This introduces two issues.

First, and most important: this means that we now have two "known
versions". However, you forgot to account for the licensing stuff. We
use main.c as a substitute for a license file, but of course main.c
differs between 4.x and 3.x...

We could carry a per-version hash file, but using main.c as a license
file is really just hidding the issue. IOnstead, I've dropped it
altogether.

Eugen, Nicolas (and Simon?): would you care to add an actual license
file to your repository, please?

The second issue is less of an issue: there were two defconfigs that use
the default 3.x version. Without a tweak, they would have switched over
to using 4.x. So I pinned them with BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X.

>  * Adjust the installation logic, as images to install are now in
>    build/binaries/*.bin instead of binaries/*.bin. In order to not
>    have to differentiate 3.x and 4.x, we simply use $(wildcard ...) to
>    expand the list of files to install.
> 
>  * To make it clear that boot/at91bootstrap3 supports both 3.x and
>    4.x, we also update the prompt of the package.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> [Thomas: while this patch is based on previous work by Eugen, it was
> reworked quite significantly.]
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

With the aboce two issues adressed: applied to next, thanks.

Regards,
Yann E. MORIN.

> ---
>  boot/at91bootstrap3/Config.in           | 10 +++++++---
>  boot/at91bootstrap3/at91bootstrap3.hash |  1 +
>  boot/at91bootstrap3/at91bootstrap3.mk   |  2 +-
>  3 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
> index 25ab30489f..ebc912e46c 100644
> --- a/boot/at91bootstrap3/Config.in
> +++ b/boot/at91bootstrap3/Config.in
> @@ -1,5 +1,5 @@
>  config BR2_TARGET_AT91BOOTSTRAP3
> -	bool "AT91 Bootstrap 3"
> +	bool "AT91 Bootstrap 3+"
>  	depends on BR2_arm926t || BR2_cortex_a5 || BR2_cortex_a7
>  	help
>  	  AT91Bootstrap is a first level bootloader for the Atmel AT91
> @@ -16,9 +16,12 @@ if BR2_TARGET_AT91BOOTSTRAP3
>  
>  choice
>  
> -	prompt "AT91 Bootstrap 3 version"
> +	prompt "AT91 Bootstrap 3+ version"
>  
>  config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
> +	bool "4.0.0-rc2"
> +
> +config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
>  	bool "3.9.3"
>  
>  config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
> @@ -51,7 +54,8 @@ endif
>  
>  config BR2_TARGET_AT91BOOTSTRAP3_VERSION
>  	string
> -	default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
> +	default "v4.0.0-rc2" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
> +	default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
>  	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
>  		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
>  	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
> diff --git a/boot/at91bootstrap3/at91bootstrap3.hash b/boot/at91bootstrap3/at91bootstrap3.hash
> index 6b6257b0ab..a63eb1d623 100644
> --- a/boot/at91bootstrap3/at91bootstrap3.hash
> +++ b/boot/at91bootstrap3/at91bootstrap3.hash
> @@ -1,3 +1,4 @@
>  # Locally calculated
>  sha256  dd6a3c57c1c84fc3b18187bee3d139146a0e032dd1d8edea7b242730e0bc4fe1  at91bootstrap3-v3.9.3.tar.gz
> +sha256  b5d5f042297cad0d091f7d8734e61eb9ec7b6020898e086503fb5f8bc71fb9fc  at91bootstrap3-v4.0.0-rc2.tar.gz
>  sha256  fd7a1ce5719bb7abf5e289da2e0ea8c933af3ba0f6ad03dbdbd2b7f54a77498a  main.c
> diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
> index a942afcdc9..fdd87591bb 100644
> --- a/boot/at91bootstrap3/at91bootstrap3.mk
> +++ b/boot/at91bootstrap3/at91bootstrap3.mk
> @@ -48,7 +48,7 @@ define AT91BOOTSTRAP3_BUILD_CMDS
>  endef
>  
>  define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
> -	cp $(@D)/binaries/*.bin $(BINARIES_DIR)
> +	cp $(wildcard $(@D)/build/binaries/*.bin $(@D)/binaries/*.bin) $(BINARIES_DIR)
>  endef
>  
>  ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
> -- 
> 2.31.1
> 
> _______________________________________________
> 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 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story
  2021-05-18 21:37 [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Thomas Petazzoni
                   ` (2 preceding siblings ...)
  2021-05-18 21:37 ` [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 Thomas Petazzoni
@ 2021-05-19  9:34 ` Yann E. MORIN
  3 siblings, 0 replies; 18+ messages in thread
From: Yann E. MORIN @ 2021-05-19  9:34 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2021-05-18 23:37 +0200, Thomas Petazzoni spake thusly:
> Hello,
> 
> In order to hopefully make progress on the at91bootstrap 4.x story,
> here is a series of patches, based on the existing work from Eugen
> Hristev, which matches better what I believe we want to have in
> Buildroot.
> 
> The only annoyance that I have with applying this right now is that
> the "latest" version of at91bootstrap would now be 4.0.0-rc2, which is
> not a "final" release.
> 
> Reviews/comments welcome.

Entire series applied to next, thanks. I've however had to do some
tweaks in the first patch; see my reply to it for the details.

Regards,
Yann E. MORIN.

> This is also available on Github at:
> 
>   https://github.com/tpetazzoni/buildroot/commits/at91bootstrap4
> 
> Thomas
> 
> Eugen Hristev (2):
>   boot/at91bootstrap3: add support for at91bootstrap 4.x series
>   boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
> 
> Thomas Petazzoni (1):
>   boot/at91bootstrap3: bump 3.x series to 3.10.2
> 
>  boot/at91bootstrap3/Config.in           | 20 ++++++++++++++++----
>  boot/at91bootstrap3/at91bootstrap3.hash |  3 ++-
>  boot/at91bootstrap3/at91bootstrap3.mk   |  6 +++++-
>  3 files changed, 23 insertions(+), 6 deletions(-)
> 
> -- 
> 2.31.1
> 
> _______________________________________________
> 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 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19  9:33   ` Yann E. MORIN
@ 2021-05-19 10:02     ` Thomas Petazzoni
  2021-05-19 11:36       ` Eugen.Hristev at microchip.com
  2021-05-19 19:44       ` Edgar Bonet
  0 siblings, 2 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-19 10:02 UTC (permalink / raw)
  To: buildroot

Hello Yann,

On Wed, 19 May 2021 11:33:23 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> This introduces two issues.
> 
> First, and most important: this means that we now have two "known
> versions". However, you forgot to account for the licensing stuff. We
> use main.c as a substitute for a license file, but of course main.c
> differs between 4.x and 3.x...
> 
> We could carry a per-version hash file, but using main.c as a license
> file is really just hidding the issue. IOnstead, I've dropped it
> altogether.

Aaah, yes, indeed. Thanks for spotting/detecting that.

> Eugen, Nicolas (and Simon?): would you care to add an actual license
> file to your repository, please?

Agreed, Eugen and Nicolas: it would really be better to have a proper
LICENSE file in your repo. Please add it to both the 3.x branch and the
4.x branch :-)

> The second issue is less of an issue: there were two defconfigs that use
> the default 3.x version. Without a tweak, they would have switched over
> to using 4.x. So I pinned them with BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X.

Aah, yes, well spotted. I think we should ask the contributor of these
defconfigs to use a fixed version of AT91Bootstrap, because that's
normally what we do for bootloader/kernel versions in defconfigs.

> With the aboce two issues adressed: applied to next, thanks.

Many thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
  2021-05-18 21:37 ` [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 Thomas Petazzoni
@ 2021-05-19 11:29   ` Eugen.Hristev at microchip.com
  2021-05-19 12:19     ` Thomas Petazzoni
  0 siblings, 1 reply; 18+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-05-19 11:29 UTC (permalink / raw)
  To: buildroot

On 5/19/21 12:37 AM, Thomas Petazzoni wrote:
> From: Eugen Hristev <eugen.hristev@microchip.com>
> 
> Some at91bootstrap3 configurations now use Python scripts on the host
> for NAND/PMEC related utilities. In order to be able to use those
> scripts, this commit adds a new
> BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 which allows to express the
> need for host-python3 as a dependency to build at91bootstrap3.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> [Thomas: this was extracted from a patch from Eugen adding
> at91bootstrap 4.x support.]
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>   boot/at91bootstrap3/Config.in         | 8 ++++++++
>   boot/at91bootstrap3/at91bootstrap3.mk | 4 ++++
>   2 files changed, 12 insertions(+)
> 
> diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
> index 18301a0dc0..966e393db5 100644
> --- a/boot/at91bootstrap3/Config.in
> +++ b/boot/at91bootstrap3/Config.in
> @@ -101,3 +101,11 @@ config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
>            Path to the at91bootstrap3 configuration file
> 
>   endif # BR2_TARGET_AT91BOOTSTRAP3
> +
> +config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
> +       bool "needs host-python3"

Hi,

This prompt that appears in menuconfig is a bit unfriendly : it does not 
say who needs the host-python3, and it does not appear to be in the 
at91bootstrap3 -related options.
It is at the same indentation level as the other bootloaders, like 
Barebox, Grub, etc. So I think it's misleading and should be aligned 
with the other At91bootstrap options




> +       help
> +         Enable this option if the at91bootstrap build process needs
> +         Python 3.x to be available on the host. This is needed in
> +         some at91bootstrap configurations to use NAND/PMECC Python
> +         scripts.
> diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
> index fdd87591bb..48200b2b6e 100644
> --- a/boot/at91bootstrap3/at91bootstrap3.mk
> +++ b/boot/at91bootstrap3/at91bootstrap3.mk
> @@ -30,6 +30,10 @@ AT91BOOTSTRAP3_CPE_ID_PRODUCT = at91bootstrap
>   AT91BOOTSTRAP3_INSTALL_IMAGES = YES
>   AT91BOOTSTRAP3_INSTALL_TARGET = NO
> 
> +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3),y)
> +AT91BOOTSTRAP3_DEPENDENCIES += host-python3
> +endif
> +
>   AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
>          $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
> 
> --
> 2.31.1
> 

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19 10:02     ` Thomas Petazzoni
@ 2021-05-19 11:36       ` Eugen.Hristev at microchip.com
  2021-05-19 12:20         ` Thomas Petazzoni
  2021-05-19 19:44       ` Edgar Bonet
  1 sibling, 1 reply; 18+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-05-19 11:36 UTC (permalink / raw)
  To: buildroot

On 5/19/21 1:02 PM, Thomas Petazzoni wrote:
> Hello Yann,
> 
> On Wed, 19 May 2021 11:33:23 +0200
> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> 
>> This introduces two issues.
>>
>> First, and most important: this means that we now have two "known
>> versions". However, you forgot to account for the licensing stuff. We
>> use main.c as a substitute for a license file, but of course main.c
>> differs between 4.x and 3.x...
>>
>> We could carry a per-version hash file, but using main.c as a license
>> file is really just hidding the issue. IOnstead, I've dropped it
>> altogether.
> 
> Aaah, yes, indeed. Thanks for spotting/detecting that.
> 
>> Eugen, Nicolas (and Simon?): would you care to add an actual license
>> file to your repository, please?
> 
> Agreed, Eugen and Nicolas: it would really be better to have a proper
> LICENSE file in your repo. Please add it to both the 3.x branch and the
> 4.x branch :-)

Hi,

Thank you for taking care of this. You could have given me more feedback 
on my previous patch set so I would have changed it, if you felt like 
it, but now it's done, we can move forward, which is good.
I will add a LICENSE file in the repo soon.

Thanks,
Eugen

> 
>> The second issue is less of an issue: there were two defconfigs that use
>> the default 3.x version. Without a tweak, they would have switched over
>> to using 4.x. So I pinned them with BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X.
> 
> Aah, yes, well spotted. I think we should ask the contributor of these
> defconfigs to use a fixed version of AT91Bootstrap, because that's
> normally what we do for bootloader/kernel versions in defconfigs.
> 
>> With the aboce two issues adressed: applied to next, thanks.
> 
> Many thanks!
> 
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

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

* [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
  2021-05-19 11:29   ` Eugen.Hristev at microchip.com
@ 2021-05-19 12:19     ` Thomas Petazzoni
  2021-05-19 12:39       ` Yann E. MORIN
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-19 12:19 UTC (permalink / raw)
  To: buildroot

On Wed, 19 May 2021 11:29:23 +0000
<Eugen.Hristev@microchip.com> wrote:

> > diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
> > index 18301a0dc0..966e393db5 100644
> > --- a/boot/at91bootstrap3/Config.in
> > +++ b/boot/at91bootstrap3/Config.in
> > @@ -101,3 +101,11 @@ config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
> >            Path to the at91bootstrap3 configuration file
> > 
> >   endif # BR2_TARGET_AT91BOOTSTRAP3
> > +
> > +config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
> > +       bool "needs host-python3"  
> 
> Hi,
> 
> This prompt that appears in menuconfig is a bit unfriendly : it does not 
> say who needs the host-python3, and it does not appear to be in the 
> at91bootstrap3 -related options.
> It is at the same indentation level as the other bootloaders, like 
> Barebox, Grub, etc. So I think it's misleading and should be aligned 
> with the other At91bootstrap options

Crap, you're entirely right, it is misplaced: it should have been just
two line above, within the if BR2_TARGET_AT91BOOTSTRAP3 ... endif block.

Unless someone beats me at it, I'll send a patch fixing that.

Thanks for spotting this!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19 11:36       ` Eugen.Hristev at microchip.com
@ 2021-05-19 12:20         ` Thomas Petazzoni
  2021-05-19 12:29           ` Eugen.Hristev at microchip.com
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2021-05-19 12:20 UTC (permalink / raw)
  To: buildroot

Hello Eugen,

On Wed, 19 May 2021 11:36:56 +0000
<Eugen.Hristev@microchip.com> wrote:

> Thank you for taking care of this. You could have given me more feedback 
> on my previous patch set so I would have changed it, if you felt like 
> it, but now it's done, we can move forward, which is good.

Agreed, but sometimes the comments/ideas only come when really you
apply the patch, and you mess up with the code to figure out the most
appropriate way. Also, it was a way of avoiding another back-and-forth
with another iteration. I discussed the patch series yesterday with the
other BR maintainers, respin a series, and it got applied today.
Problem solved :-)

(To the exception of the mistake you spotted in PATCH 3/3, of course!).

> I will add a LICENSE file in the repo soon.

That would be awesome. Could you add it to both the 3.x and the 4.x
branches ? It would be nice to have another release on the 3.x branch
that includes the LICENSE file.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19 12:20         ` Thomas Petazzoni
@ 2021-05-19 12:29           ` Eugen.Hristev at microchip.com
  2021-06-14  9:01             ` Eugen.Hristev at microchip.com
  0 siblings, 1 reply; 18+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-05-19 12:29 UTC (permalink / raw)
  To: buildroot

On 5/19/21 3:20 PM, Thomas Petazzoni wrote:
> Hello Eugen,
> 
> On Wed, 19 May 2021 11:36:56 +0000
> <Eugen.Hristev@microchip.com> wrote:
> 
>> Thank you for taking care of this. You could have given me more feedback
>> on my previous patch set so I would have changed it, if you felt like
>> it, but now it's done, we can move forward, which is good.
> 
> Agreed, but sometimes the comments/ideas only come when really you
> apply the patch, and you mess up with the code to figure out the most
> appropriate way. Also, it was a way of avoiding another back-and-forth
> with another iteration. I discussed the patch series yesterday with the
> other BR maintainers, respin a series, and it got applied today.
> Problem solved :-)
> 
> (To the exception of the mistake you spotted in PATCH 3/3, of course!).
> 
>> I will add a LICENSE file in the repo soon.
> 
> That would be awesome. Could you add it to both the 3.x and the 4.x
> branches ? It would be nice to have another release on the 3.x branch
> that includes the LICENSE file.

Yes, I would do it for both branches. We have to agree on the format of 
the LICENSE first.

There will be probably a 3.10.3 at some point. There are many patches 
yet on top of 3.10.2

I am sending now a v4 for the ICP board configs.

Eugen

> 
> Thanks!
> 
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

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

* [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
  2021-05-19 12:19     ` Thomas Petazzoni
@ 2021-05-19 12:39       ` Yann E. MORIN
  0 siblings, 0 replies; 18+ messages in thread
From: Yann E. MORIN @ 2021-05-19 12:39 UTC (permalink / raw)
  To: buildroot

Thomas, Eugen, All,

On 2021-05-19 14:19 +0200, Thomas Petazzoni spake thusly:
> On Wed, 19 May 2021 11:29:23 +0000
> <Eugen.Hristev@microchip.com> wrote:
> > > diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
> > > index 18301a0dc0..966e393db5 100644
> > > --- a/boot/at91bootstrap3/Config.in
> > > +++ b/boot/at91bootstrap3/Config.in
> > > @@ -101,3 +101,11 @@ config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
> > >            Path to the at91bootstrap3 configuration file
> > > 
> > >   endif # BR2_TARGET_AT91BOOTSTRAP3
> > > +
> > > +config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
> > > +       bool "needs host-python3"  
> > This prompt that appears in menuconfig is a bit unfriendly : it does not 
> > say who needs the host-python3, and it does not appear to be in the 
> > at91bootstrap3 -related options.
> > It is at the same indentation level as the other bootloaders, like 
> > Barebox, Grub, etc. So I think it's misleading and should be aligned 
> > with the other At91bootstrap options
> 
> Crap, you're entirely right, it is misplaced: it should have been just
> two line above, within the if BR2_TARGET_AT91BOOTSTRAP3 ... endif block.
> 
> Unless someone beats me at it, I'll send a patch fixing that.

I've just pushed the fix.

> Thanks for spotting this!

Yes, thanks for spotting it! :-)

Regards,
Yann E. MORIN.

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

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19 10:02     ` Thomas Petazzoni
  2021-05-19 11:36       ` Eugen.Hristev at microchip.com
@ 2021-05-19 19:44       ` Edgar Bonet
  1 sibling, 0 replies; 18+ messages in thread
From: Edgar Bonet @ 2021-05-19 19:44 UTC (permalink / raw)
  To: buildroot

Hi!

Thomas Petazzoni wrote:
> I think we should ask the contributor of these defconfigs to use a
> fixed version of AT91Bootstrap, because that's normally what we do for
> bootloader/kernel versions in defconfigs.

Oh, right, I hadn't noticed. Sorry for the mess. I just submitted a
patch to pin these defconfifs to at91bootstrap 3.10.2, which I tested.

Best regards,

Edgar Bonet.

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-05-19 12:29           ` Eugen.Hristev at microchip.com
@ 2021-06-14  9:01             ` Eugen.Hristev at microchip.com
  2021-06-14 12:28               ` Thomas Petazzoni
  2021-06-14 19:25               ` Arnout Vandecappelle
  0 siblings, 2 replies; 18+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-06-14  9:01 UTC (permalink / raw)
  To: buildroot

On 5/19/21 3:29 PM, Eugen Hristev - M18282 wrote:
> On 5/19/21 3:20 PM, Thomas Petazzoni wrote:
>> Hello Eugen,
>>
>> On Wed, 19 May 2021 11:36:56 +0000
>> <Eugen.Hristev@microchip.com> wrote:
>>
>>> Thank you for taking care of this. You could have given me more feedback
>>> on my previous patch set so I would have changed it, if you felt like
>>> it, but now it's done, we can move forward, which is good.
>>
>> Agreed, but sometimes the comments/ideas only come when really you
>> apply the patch, and you mess up with the code to figure out the most
>> appropriate way. Also, it was a way of avoiding another back-and-forth
>> with another iteration. I discussed the patch series yesterday with the
>> other BR maintainers, respin a series, and it got applied today.
>> Problem solved :-)
>>
>> (To the exception of the mistake you spotted in PATCH 3/3, of course!).
>>
>>> I will add a LICENSE file in the repo soon.
>>
>> That would be awesome. Could you add it to both the 3.x and the 4.x
>> branches ? It would be nice to have another release on the 3.x branch
>> that includes the LICENSE file.
> 
> Yes, I would do it for both branches. We have to agree on the format of
> the LICENSE first.

Hello Thomas,

Do you know of some easy way (a script) to parse the source files and 
remove current header and add SPDX headers ?
We are considering selecting the SPDX way of licensing the files.

Thanks,
Eugen

> 
> There will be probably a 3.10.3 at some point. There are many patches
> yet on top of 3.10.2
> 
> I am sending now a v4 for the ICP board configs.
> 
> Eugen
> 
>>
>> Thanks!
>>
>> Thomas
>> --
>> Thomas Petazzoni, co-owner and CEO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>>
> 

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-06-14  9:01             ` Eugen.Hristev at microchip.com
@ 2021-06-14 12:28               ` Thomas Petazzoni
  2021-06-14 19:25               ` Arnout Vandecappelle
  1 sibling, 0 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2021-06-14 12:28 UTC (permalink / raw)
  To: buildroot

On Mon, 14 Jun 2021 09:01:06 +0000
<Eugen.Hristev@microchip.com> wrote:

> Do you know of some easy way (a script) to parse the source files and 
> remove current header and add SPDX headers ?
> We are considering selecting the SPDX way of licensing the files.

I don't know of any tool doing that, but I also never had the need or
researched something like that, so perhaps there is some tooling
available, but I'm not sure.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-06-14  9:01             ` Eugen.Hristev at microchip.com
  2021-06-14 12:28               ` Thomas Petazzoni
@ 2021-06-14 19:25               ` Arnout Vandecappelle
  2021-07-07 10:29                 ` Eugen.Hristev at microchip.com
  1 sibling, 1 reply; 18+ messages in thread
From: Arnout Vandecappelle @ 2021-06-14 19:25 UTC (permalink / raw)
  To: buildroot



On 14/06/2021 11:01, Eugen.Hristev--- via buildroot wrote:
> On 5/19/21 3:29 PM, Eugen Hristev - M18282 wrote:
>> On 5/19/21 3:20 PM, Thomas Petazzoni wrote:
>>> Hello Eugen,
>>>
>>> On Wed, 19 May 2021 11:36:56 +0000
>>> <Eugen.Hristev@microchip.com> wrote:
>>>
[snip]
>>>> I will add a LICENSE file in the repo soon.
>>>
>>> That would be awesome. Could you add it to both the 3.x and the 4.x
>>> branches ? It would be nice to have another release on the 3.x branch
>>> that includes the LICENSE file.
>>
>> Yes, I would do it for both branches. We have to agree on the format of
>> the LICENSE first.
> 
> Hello Thomas,
> 
> Do you know of some easy way (a script) to parse the source files and 
> remove current header and add SPDX headers ?
> We are considering selecting the SPDX way of licensing the files.

 I believe the REUSE tool [1] is able to add license headers to files. However,
I don't think it will remove the existing license blurb...

 You could check with the kernel developers how they did the mass replacement. E.g.:

commit d2912cb15bdda8ba4a5dd73396ad62641af2f520
Author: Thomas Gleixner <tglx@linutronix.de>
Date:   Tue Jun 4 10:11:33 2019

    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500

    Based on 2 normalized pattern(s):

      this program is free software you can redistribute it and or modify
      it under the terms of the gnu general public license version 2 as
      published by the free software foundation

      this program is free software you can redistribute it and or modify
      it under the terms of the gnu general public license version 2 as
      published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

      GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Enrico Weigelt <info@metux.net>
    Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
    Reviewed-by: Allison Randal <allison@lohutok.net>
    Cc: linux-spdx at vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790 at linutronix.de
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>



 Regards,
 Arnout

[snip]

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

* [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series
  2021-06-14 19:25               ` Arnout Vandecappelle
@ 2021-07-07 10:29                 ` Eugen.Hristev at microchip.com
  0 siblings, 0 replies; 18+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-07-07 10:29 UTC (permalink / raw)
  To: buildroot

On 6/14/21 10:25 PM, Arnout Vandecappelle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 14/06/2021 11:01, Eugen.Hristev--- via buildroot wrote:
>> On 5/19/21 3:29 PM, Eugen Hristev - M18282 wrote:
>>> On 5/19/21 3:20 PM, Thomas Petazzoni wrote:
>>>> Hello Eugen,
>>>>
>>>> On Wed, 19 May 2021 11:36:56 +0000
>>>> <Eugen.Hristev@microchip.com> wrote:
>>>>
> [snip]
>>>>> I will add a LICENSE file in the repo soon.
>>>>
>>>> That would be awesome. Could you add it to both the 3.x and the 4.x
>>>> branches ? It would be nice to have another release on the 3.x branch
>>>> that includes the LICENSE file.
>>>
>>> Yes, I would do it for both branches. We have to agree on the format of
>>> the LICENSE first.
>>
>> Hello Thomas,
>>
>> Do you know of some easy way (a script) to parse the source files and
>> remove current header and add SPDX headers ?
>> We are considering selecting the SPDX way of licensing the files.
> 
>   I believe the REUSE tool [1] is able to add license headers to files. However,
> I don't think it will remove the existing license blurb...


Hi,

Thanks for the tip !

I managed to use REUSE tool with a large extent.

Eugen

> 
>   You could check with the kernel developers how they did the mass replacement. E.g.:
> 
> commit d2912cb15bdda8ba4a5dd73396ad62641af2f520
> Author: Thomas Gleixner <tglx@linutronix.de>
> Date:   Tue Jun 4 10:11:33 2019
> 
>      treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
> 
>      Based on 2 normalized pattern(s):
> 
>        this program is free software you can redistribute it and or modify
>        it under the terms of the gnu general public license version 2 as
>        published by the free software foundation
> 
>        this program is free software you can redistribute it and or modify
>        it under the terms of the gnu general public license version 2 as
>        published by the free software foundation #
> 
>      extracted by the scancode license scanner the SPDX license identifier
> 
>        GPL-2.0-only
> 
>      has been chosen to replace the boilerplate/reference in 4122 file(s).
> 
>      Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
>      Reviewed-by: Enrico Weigelt <info@metux.net>
>      Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
>      Reviewed-by: Allison Randal <allison@lohutok.net>
>      Cc: linux-spdx at vger.kernel.org
>      Link: https://lkml.kernel.org/r/20190604081206.933168790 at linutronix.de
>      Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 
> 
> 
>   Regards,
>   Arnout
> 
> [snip]
> 

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

end of thread, other threads:[~2021-07-07 10:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 21:37 [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Thomas Petazzoni
2021-05-18 21:37 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add support for at91bootstrap 4.x series Thomas Petazzoni
2021-05-19  9:33   ` Yann E. MORIN
2021-05-19 10:02     ` Thomas Petazzoni
2021-05-19 11:36       ` Eugen.Hristev at microchip.com
2021-05-19 12:20         ` Thomas Petazzoni
2021-05-19 12:29           ` Eugen.Hristev at microchip.com
2021-06-14  9:01             ` Eugen.Hristev at microchip.com
2021-06-14 12:28               ` Thomas Petazzoni
2021-06-14 19:25               ` Arnout Vandecappelle
2021-07-07 10:29                 ` Eugen.Hristev at microchip.com
2021-05-19 19:44       ` Edgar Bonet
2021-05-18 21:37 ` [Buildroot] [PATCH 2/3] boot/at91bootstrap3: bump 3.x series to 3.10.2 Thomas Petazzoni
2021-05-18 21:37 ` [Buildroot] [PATCH 3/3] boot/at91bootstrap3: add BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 Thomas Petazzoni
2021-05-19 11:29   ` Eugen.Hristev at microchip.com
2021-05-19 12:19     ` Thomas Petazzoni
2021-05-19 12:39       ` Yann E. MORIN
2021-05-19  9:34 ` [Buildroot] [PATCH 0/3] My take on the at91bootstrap 4.x story Yann E. MORIN

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.