From patchwork Tue Apr 7 06:35:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 458598 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 649A0140283 for ; Tue, 7 Apr 2015 16:35:43 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=wTv5L1GH; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 43F7F317B3; Tue, 7 Apr 2015 06:35:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUFjNaFemU5h; Tue, 7 Apr 2015 06:35:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 18FFD31617; Tue, 7 Apr 2015 06:35:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 92E121C24AC for ; Tue, 7 Apr 2015 06:35:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8BE07A1997 for ; Tue, 7 Apr 2015 06:35:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V-c4eKKJnPVQ for ; Tue, 7 Apr 2015 06:35:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by fraxinus.osuosl.org (Postfix) with ESMTPS id C1851A198D for ; Tue, 7 Apr 2015 06:35:38 +0000 (UTC) Received: by wgin8 with SMTP id n8so45489623wgi.0 for ; Mon, 06 Apr 2015 23:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ILrsivqNyFNd9/R2nga2d0Of3BmA7F95vDUMbYRsg9E=; b=wTv5L1GHWl+BxwZ3ieFN2pyv5RvbHXethqplpSsc/E4fqcFo3VvqV/krdeEwEpXAJ6 je5q3wrs7bVqCT7/O/x4OKRQkwMbyeq6vYBfUBD01KsE8Zjh49lyL5XEeh5Dz07P3i4+ 7Sgomygj8hd5m1V8aSXGz0XapW08fN0Vu9rpXpD6Vssml9AGC3ClvVhFLp/6gIZYdmOL INIY/u375U3kLCS24X19DOgrkCdr8TLPlwO5rE9wDsuaYrR0HwPPJdomrmqLOQyk4d7x XstVDqJXcnGmCiQ3ygN0NcMNwBpTsdkKaD8eDZk7x/WbajcAQSykyTlDEm+1oEYPsrwq Pw7g== X-Received: by 10.194.79.199 with SMTP id l7mr28180382wjx.158.1428388537409; Mon, 06 Apr 2015 23:35:37 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by mx.google.com with ESMTPSA id o5sm9957454wia.0.2015.04.06.23.35.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Apr 2015 23:35:36 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 7 Apr 2015 08:35:25 +0200 Message-Id: <1428388525-19186-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 2.3.5 Subject: [Buildroot] [PATCH v2] boot/at91bootstrap3: Add the option to download via git X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds an option to download at91bootstrap3 via a custom git repository. Useful for all the vendor customized versions. Signed-off-by: Angelo Compagnucci --- Changelog: v1 -> v2: - Adapted to the latest changes in at91bootstrap3 files boot/at91bootstrap3/Config.in | 35 +++++++++++++++++++++++++++++++++++ boot/at91bootstrap3/at91bootstrap3.mk | 7 +++++++ 2 files changed, 42 insertions(+) diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in index 8ac40ed..089b05d 100644 --- a/boot/at91bootstrap3/Config.in +++ b/boot/at91bootstrap3/Config.in @@ -10,6 +10,41 @@ config BR2_TARGET_AT91BOOTSTRAP3 if BR2_TARGET_AT91BOOTSTRAP3 +choice + + prompt "AT91 Bootstrap 3 version" + +config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION + bool "3.7.1" + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + bool "Custom Git repository" + help + This option allows Buildroot to get the AT91 Bootstrap 3 source + code from a Git repository. + +endchoice + +if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL + string "URL of custom repository" + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION + string "Custom repository version" + help + Revision to use in the typical format used by Git + E.G. a sha id, a tag, branch, .. + +endif + +config BR2_TARGET_AT91BOOTSTRAP3_VERSION + string + default "v3.7.1" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION + default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \ + if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + + config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR string "custom patch dir" help diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk index 3e3b78e..e8a751a 100644 --- a/boot/at91bootstrap3/at91bootstrap3.mk +++ b/boot/at91bootstrap3/at91bootstrap3.mk @@ -5,7 +5,14 @@ ################################################################################ AT91BOOTSTRAP3_VERSION = v3.7.1 +AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION)) + +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y) +AT91BOOTSTRAP3_SITE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL)) +AT91BOOTSTRAP3_SITE_METHOD = git +else AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION)) +endif AT91BOOTSTRAP3_INSTALL_IMAGES = YES AT91BOOTSTRAP3_INSTALL_TARGET = NO