* [ptxdist] [PATCH] at91bootstrap2: Add license information
@ 2026-06-23 13:19 Alexander Dahl via ptxdist
2026-06-25 19:23 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl via ptxdist @ 2026-06-23 13:19 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
Up to the last v3 release v3.10.4 from 2021 there is no global licensing
statement in the source tree, but almost all files have a header
matching the 'BSD-Source-Code' license (as with v1 and probably v2
already).
For v4.0.0-rc4 Microchip (after buying Atmel) re-licensed the whole
source tree to 'MIT' license.
Link: https://github.com/linux4sam/at91bootstrap/commit/4a57b93f1e494ca984f0178516dec1b14d1e28fa
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
Notes:
FatFs license was considered, but left out for the following reasons:
If CONFIG_SDCARD is set, an older copy of FatFs is part of the build.
That source has a custom license which only requires mentioning if
redistributed as source, thus it's not added to the list of licenses
here. (Otherwise to my understanding it would have to be always
included regardless if it's actually built e.g. also for systems without
SD/eMMC. Or some complicated mechanism needs to be added to the make
rule parsing that actual configuration, and adding the license
conditionally.)
/ FatFs module is a generic FAT file system module for small embedded systems.
/ This is a free software that opened for education, research and commercial
/ developments under license policy of following terms.
/
/ Copyright (C) 2011, ChaN, all right reserved.
/
/ * The FatFs module is a free software and there is NO WARRANTY.
/ * No restriction on use. You can use, modify and redistribute it for
/ personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY.
/ * Redistributions of source code must retain the above copyright notice.
The authors website has some more explanation: "In order to extend the
usability for commercial products, the redistributions of FatFs in
binary form, such as embedded code, binary library and any forms without
source code, does not need to include about FatFs in the
documentations."
Link: https://elm-chan.org/fsw/ff/doc/appnote.html#license
platforms/at91bootstrap2.in | 2 +-
rules/at91bootstrap2.make | 14 +++++++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/platforms/at91bootstrap2.in b/platforms/at91bootstrap2.in
index 0821f70a8..33d87ea89 100644
--- a/platforms/at91bootstrap2.in
+++ b/platforms/at91bootstrap2.in
@@ -4,7 +4,7 @@ menuconfig AT91BOOTSTRAP2
select BOOTLOADER
select HOST_SYSTEM_PYTHON3
tristate
- prompt "AT91 bootstrap 3.x "
+ prompt "AT91 bootstrap 3.x / 4.x "
help
Note: this is for AT91 bootstrap version 3.4 or later.
diff --git a/rules/at91bootstrap2.make b/rules/at91bootstrap2.make
index 47eabce29..3cac2e59e 100644
--- a/rules/at91bootstrap2.make
+++ b/rules/at91bootstrap2.make
@@ -23,7 +23,19 @@ AT91BOOTSTRAP2_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX)
AT91BOOTSTRAP2_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP2)
AT91BOOTSTRAP2_CONFIG := $(call ptx/in-platformconfigdir, \
$(call remove_quotes, $(PTXCONF_AT91BOOTSTRAP2_CONFIG)))
-AT91BOOTSTRAP2_LICENSE := unknown
+
+AT91BOOTSTRAP2_VERSION_MAJOR := $(word 1,$(subst ., ,$(AT91BOOTSTRAP2_VERSION)))
+ifeq ($(AT91BOOTSTRAP2_VERSION_MAJOR),4)
+AT91BOOTSTRAP2_LICENSE := MIT
+AT91BOOTSTRAP2_LICENSE_FILES := \
+ file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d
+else ifeq ($(AT91BOOTSTRAP2_VERSION_MAJOR),3)
+AT91BOOTSTRAP2_LICENSE := BSD-Source-Code
+AT91BOOTSTRAP2_LICENSE_FILES := \
+ file://main.c;startline=1;endline=27;md5=a2a70db58191379e2550cbed95449fbd
+else
+AT91BOOTSTRAP2_LICENSE := unknown
+endif
# ----------------------------------------------------------------------------
# Prepare
base-commit: 3d185e7c01807e7a2f58a89fe811ed572d267099
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [ptxdist] [APPLIED] at91bootstrap2: Add license information
2026-06-23 13:19 [ptxdist] [PATCH] at91bootstrap2: Add license information Alexander Dahl via ptxdist
@ 2026-06-25 19:23 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-06-25 19:23 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
Thanks, applied as b95fbd5be974eb2e23d56595e83f940025795d42.
Michael
[sent from post-receive hook]
On Thu, 25 Jun 2026 21:23:44 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> Up to the last v3 release v3.10.4 from 2021 there is no global licensing
> statement in the source tree, but almost all files have a header
> matching the 'BSD-Source-Code' license (as with v1 and probably v2
> already).
>
> For v4.0.0-rc4 Microchip (after buying Atmel) re-licensed the whole
> source tree to 'MIT' license.
>
> Link: https://github.com/linux4sam/at91bootstrap/commit/4a57b93f1e494ca984f0178516dec1b14d1e28fa
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20260623131955.1037928-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/platforms/at91bootstrap2.in b/platforms/at91bootstrap2.in
> index 0821f70a842f..33d87ea89408 100644
> --- a/platforms/at91bootstrap2.in
> +++ b/platforms/at91bootstrap2.in
> @@ -4,7 +4,7 @@ menuconfig AT91BOOTSTRAP2
> select BOOTLOADER
> select HOST_SYSTEM_PYTHON3
> tristate
> - prompt "AT91 bootstrap 3.x "
> + prompt "AT91 bootstrap 3.x / 4.x "
> help
> Note: this is for AT91 bootstrap version 3.4 or later.
>
> diff --git a/rules/at91bootstrap2.make b/rules/at91bootstrap2.make
> index 47eabce29183..3cac2e59e405 100644
> --- a/rules/at91bootstrap2.make
> +++ b/rules/at91bootstrap2.make
> @@ -23,7 +23,19 @@ AT91BOOTSTRAP2_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX)
> AT91BOOTSTRAP2_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP2)
> AT91BOOTSTRAP2_CONFIG := $(call ptx/in-platformconfigdir, \
> $(call remove_quotes, $(PTXCONF_AT91BOOTSTRAP2_CONFIG)))
> -AT91BOOTSTRAP2_LICENSE := unknown
> +
> +AT91BOOTSTRAP2_VERSION_MAJOR := $(word 1,$(subst ., ,$(AT91BOOTSTRAP2_VERSION)))
> +ifeq ($(AT91BOOTSTRAP2_VERSION_MAJOR),4)
> +AT91BOOTSTRAP2_LICENSE := MIT
> +AT91BOOTSTRAP2_LICENSE_FILES := \
> + file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d
> +else ifeq ($(AT91BOOTSTRAP2_VERSION_MAJOR),3)
> +AT91BOOTSTRAP2_LICENSE := BSD-Source-Code
> +AT91BOOTSTRAP2_LICENSE_FILES := \
> + file://main.c;startline=1;endline=27;md5=a2a70db58191379e2550cbed95449fbd
> +else
> +AT91BOOTSTRAP2_LICENSE := unknown
> +endif
>
> # ----------------------------------------------------------------------------
> # Prepare
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-25 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 13:19 [ptxdist] [PATCH] at91bootstrap2: Add license information Alexander Dahl via ptxdist
2026-06-25 19:23 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox