From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 23 Jun 2026 15:20:12 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wc12y-0090jl-1E for lore@lore.pengutronix.de; Tue, 23 Jun 2026 15:20:12 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wc12y-0000MV-8i; Tue, 23 Jun 2026 15:20:12 +0200 Received: from mail.thorsis.com ([217.92.40.78]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wc12i-0000EC-L3 for ptxdist@pengutronix.de; Tue, 23 Jun 2026 15:19:57 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 12ECA1483E63 for ; Tue, 23 Jun 2026 15:20:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1782220809; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=NgF/zLwDo2nDl+GQ4Xy+0aIkvHXb+sSosaQNLHsQcvI=; b=sm866dbQUdn1cbDdVjl3UyzFjqwdReDTuawkuj4zAJBssphMGCzcoIWLl94zt0GcznOu+l WlaDzNFHOxGQjLphFLMVFRTR7XatQuLAWgwjo8OtjEO4hwlsb5dWEBUoZetcV0P7oNZmZ5 k5DOwFDNeHlu7CE1SNKdYeBOSp8dlRfB50gkbaRYH7RGyJRDISEcO16hGZql9ee5rmF6B6 2OZacVMQHNJJz8i0uHJMSXGBz/twe0UvOEt9UoSb18cU/Wtn9j/Y2Px0pCZXFYSf5HT67V EKrnjEJb471/SYFDRTLTAohyEHozn0cufSB3mS4r9wu+sFJOmk/P/cYu9z7hhw== To: ptxdist@pengutronix.de Date: Tue, 23 Jun 2026 15:19:55 +0200 Message-ID: <20260623131955.1037928-1-ada@thorsis.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] at91bootstrap2: Add license information X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Dahl via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false 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 --- 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