mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [PATCH] at91bootstrap2: Add license information
Date: Tue, 23 Jun 2026 15:19:55 +0200	[thread overview]
Message-ID: <20260623131955.1037928-1-ada@thorsis.com> (raw)

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




             reply	other threads:[~2026-06-23 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23 13:19 Alexander Dahl via ptxdist [this message]
2026-06-25 19:23 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260623131955.1037928-1-ada@thorsis.com \
    --to=ptxdist@pengutronix.de \
    --cc=ada@thorsis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox