From patchwork Tue Apr 27 12:56:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1470677 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=pOhdxanH; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FV1y524tcz9sWH for ; Tue, 27 Apr 2021 22:57:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2771F605A1; Tue, 27 Apr 2021 12:57:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pNuuDowBvPKk; Tue, 27 Apr 2021 12:57:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 6D88E606AA; Tue, 27 Apr 2021 12:57:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 4C81C1BF5F6 for ; Tue, 27 Apr 2021 12:57:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3997440553 for ; Tue, 27 Apr 2021 12:57:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=microchip.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07t0iQ27tOOD for ; Tue, 27 Apr 2021 12:57:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by smtp4.osuosl.org (Postfix) with ESMTPS id C98B14054A for ; Tue, 27 Apr 2021 12:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1619528243; x=1651064243; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rnzu3N1BYidi+RtQ01zXnC8SQVO///328Ywa8cSwyYY=; b=pOhdxanHTlkahz77V1zqvZWEV7Mbarumm6GwTtMv5leLTpO6htLRWOY1 US76c9cNX9nRSO7NM24QEdmmhkvvcrnls0hkYofgtUguno4Y35kaQMDqd qEFezwYMX7Mv1NSSwMIxc066R5dsrjRtcj66pSr5JFd1vCmZzVEnsHoaB kbcPrAQ/CrV4dZ57kli0vk3bAJjU9A5DAPW2T65LA7wu8snqAIYIDuGyT i3hbwBnDs2VZ4v1zKYxhDO3KpVYAuT6WQ674cimWdn/lHLxYNX2VbIXAc aPC581tG19lXiSe12Byox1DR+QF7rXXvy0mT8Cb3O77kO6LaEMj88an4C Q==; IronPort-SDR: TMKiSXYUQt7UlBo414X+5m7z58d325MfRk2Ak+aOfdtaAIe60d21zyAyPN8K1Ut9ZMTqJ2EvNu 4uISaqgNWz5rKJfYj+CQbIr1VY5srknnGi0K9CqVbQxrzhyP0ET/q1nj/ug23f6PAo5WIfRwTs Z5I1xRO4GBMaR+Mj9t8GtS71SCU2Hk9uFdvQ59yJcKm+Jps7XkJ1g78FO6JfguLh7GsXv6iFvU 5T45gY8u5yUF5CnuvZ3HtnsYwmmoWyaCyswjWaNUgFdaUxmIxj915yntvr7tga2Co+zbPbYyBq XJ4= X-IronPort-AV: E=Sophos;i="5.82,254,1613458800"; d="scan'208";a="117975919" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Apr 2021 05:57:07 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 27 Apr 2021 05:57:06 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 27 Apr 2021 05:57:00 -0700 To: , Date: Tue, 27 Apr 2021 15:56:56 +0300 Message-ID: <20210427125657.1449953-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 1/2] boot/at91bootstrap3: add support for at91bootstrap 4.x series X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eugen Hristev via buildroot Reply-To: Eugen Hristev Cc: Eugen Hristev Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Introduce support for the next generation of at91bootstrap, at91bootstrap 4.x series. AT91Bootstrap 4.x only supports devices: sam9x60, sama5d2, sama5d3, sama5d4, sama7g5. User can select 4.x series as a bool, and if so, the latest 4.x version is automatically selected. If the user deselects this option, only 3.x latest version can be picked. Signed-off-by: Eugen Hristev --- Changes in v3: - s/BR2_TARGET_AT91BOOTSTRAP4_NEEDS_PYTHON3/BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 missed that. Changes in v2: - adapt both 3.x and 4.x series in the same package boot/at91bootstrap3/Config.in | 20 ++++++++++++++++++-- boot/at91bootstrap3/at91bootstrap3.mk | 12 +++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in index 25ab30489f..18f027639c 100644 --- a/boot/at91bootstrap3/Config.in +++ b/boot/at91bootstrap3/Config.in @@ -14,13 +14,23 @@ config BR2_TARGET_AT91BOOTSTRAP3 if BR2_TARGET_AT91BOOTSTRAP3 +config BR2_TARGET_AT91BOOTSTRAP3_4SERIES + bool "AT91Bootstrap3 4.x series" + help + AT91Bootstrap3 4.x series version + choice prompt "AT91 Bootstrap 3 version" -config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION +config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X + depends on !BR2_TARGET_AT91BOOTSTRAP3_4SERIES bool "3.9.3" +config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_4X + depends on BR2_TARGET_AT91BOOTSTRAP3_4SERIES + bool "4.0.0-rc1" + config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT bool "Custom Git repository" help @@ -51,7 +61,8 @@ endif config BR2_TARGET_AT91BOOTSTRAP3_VERSION string - default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION + default "v3.9.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X + default "v4.0.0-rc1" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_4X default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \ if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT default "custom" if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL @@ -96,4 +107,9 @@ config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE help Path to the at91bootstrap3 configuration file +config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3 + bool "AT91Bootstrap3 requires host Python 3.x for NAND/PMECC scripts" + help + Host Python 3.x needs to be installed to use the NAND/PMECC python scripts + endif # BR2_TARGET_AT91BOOTSTRAP3 diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk index a942afcdc9..7f11eb1dbb 100644 --- a/boot/at91bootstrap3/at91bootstrap3.mk +++ b/boot/at91bootstrap3/at91bootstrap3.mk @@ -6,6 +6,10 @@ AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION)) +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3),y) +AT91BOOTSTRAP3_DEPENDENCIES += host-python3 +endif + ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL),y) AT91BOOTSTRAP3_TARBALL = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION)) AT91BOOTSTRAP3_SITE = $(patsubst %/,%,$(dir $(AT91BOOTSTRAP3_TARBALL))) @@ -19,7 +23,7 @@ else AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION)) endif -AT91BOOTSTRAP3_LICENSE = Atmel License +AT91BOOTSTRAP3_LICENSE = Microchip License ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION),y) AT91BOOTSTRAP3_LICENSE_FILES = main.c endif @@ -47,9 +51,15 @@ define AT91BOOTSTRAP3_BUILD_CMDS $(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D) endef +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_4SERIES),y) +define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS + cp $(@D)/build/binaries/*.bin $(BINARIES_DIR) +endef +else define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS cp $(@D)/binaries/*.bin $(BINARIES_DIR) endef +endif ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y) AT91BOOTSTRAP3_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG))_defconfig