From patchwork Tue Apr 27 12:51:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1470672 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.138; helo=smtp1.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=HkLfOFcC; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 4FV1qR6v2Sz9t14 for ; Tue, 27 Apr 2021 22:51:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 240FE8271D; Tue, 27 Apr 2021 12:51:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RSFdkDrI9Cf6; Tue, 27 Apr 2021 12:51:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 76AFF82C18; Tue, 27 Apr 2021 12:51:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 34BDC1BF5F6 for ; Tue, 27 Apr 2021 12:51:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 23F3240148 for ; Tue, 27 Apr 2021 12:51:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=microchip.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VL-eCuw-agEK for ; Tue, 27 Apr 2021 12:51:41 +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 smtp2.osuosl.org (Postfix) with ESMTPS id D4E3240122 for ; Tue, 27 Apr 2021 12:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1619527901; x=1651063901; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XJuflQdKthrJy4yCeNds26hf/XXCmu8qWQDn/n7thJ8=; b=HkLfOFcCsfNFPyCW/xhG7dcENedzPN+luthtm7aP9UP4H06zbhK3zbU1 +/3HTK5gGJGnX6+SmqD1/DTtoPQd61Z2XwflskrOeJADaDJwJYereE9EM iCZFk6JJ1QZsAcfcw4PUa/6x3Npxxd6gfMpFPA3SxNTwpr24w5yMkaJvy Bn4hQfWcLw4ZjyHR9Nsd7qKEcEbTkstwfaoKNvv65tOw/pjaVhecDN8jM GHVVgzUQB1HeK71tVGFbSaZCeCMhoA2v7RNSJs1pbC/+Eum2Lv0FdTB6b FTYy3pgYMbzkJy+EUt12WnaDbH8h/qTRxHPwOaOx9C7QTuaC0+AdieJxl w==; IronPort-SDR: x/nAL5miqbZKLUW1B4/+3atQdvFo/I1ue4mmAFgIjLOC3PM5KBtHrRzl6Ot1IlZ7h43WaW+Q+A u68w8fjadfRE6GliSbe75PTcACB+zAY9/QKihCMS0zPPJvdKKAgsVl8MRGdH4DYrDa2hbMHCFe x5dVpFr5RDv2ZYDmis3eWp4ignqdTB5THoDuXRuKhWxKthURYDo87IiLxVXB1dzXo/SJdNI3NW Bxp8+Q4an6EpfrTai5Tnd/e7ZVzEAUxSTyM8k3IX8EAuLcgA+uvavJQYCy2GqB+poLYntMZ9Ih dAw= X-IronPort-AV: E=Sophos;i="5.82,254,1613458800"; d="scan'208";a="118528741" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Apr 2021 05:51:40 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) 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:51:40 -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:51:31 -0700 To: , Date: Tue, 27 Apr 2021 15:51:24 +0300 Message-ID: <20210427125125.1449450-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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 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..e16bd0eee7 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_AT91BOOTSTRAP4_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