From patchwork Fri Jan 30 16:52:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 434956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 41BC31402A6 for ; Sat, 31 Jan 2015 03:52:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9638C90F18; Fri, 30 Jan 2015 16:52:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ipNJAMrAx7wL; Fri, 30 Jan 2015 16:52:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A3F7390F35; Fri, 30 Jan 2015 16:52:18 +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 7243F1C235E for ; Fri, 30 Jan 2015 16:52:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6DC4EA1924 for ; Fri, 30 Jan 2015 16:52:17 +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 2S73aKVEQ15h for ; Fri, 30 Jan 2015 16:52:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 9A747A190F for ; Fri, 30 Jan 2015 16:52:16 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q59so28175868wes.3 for ; Fri, 30 Jan 2015 08:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XYDb0ORx+oL6SOx4LyVL+m5Tinpoyzlxzk1mmAx3eFo=; b=MNAlAR1MCEa3X+auHhJUpWJAoNv01UJN4KxRdDRIziafZSuEyPYZC/JWjvy5QdWuPb 13yx0KqCqnGQ0tYsnH5d5jzTSaSjuxQrSQmhJK/CKhVnJnkqYI+vRFcr61bY9Mr/poEc 8icsa4aZtAPWAHGfCOBRnURyMZ2bt+Wnj0KYhQx1eIepkyqdepCn8i5gyDtFAG4medT0 Lvuu4bops3Qh2EVBlaVjRxGBV2nOK3loO0Mjn/6767eZs2ETXjRRFoRtq4pmi5fROj0f EslI7R8YqHYfrIN7QcB6SDOlf6W0aobtfV/f/YD0ApzgDbDGbZpv4bfaEWtr36jbhHHd +ejw== X-Received: by 10.180.149.197 with SMTP id uc5mr6448081wib.80.1422636735062; Fri, 30 Jan 2015 08:52:15 -0800 (PST) Received: from localhost.localdomain ([89.202.204.147]) by mx.google.com with ESMTPSA id gm10sm7654052wib.19.2015.01.30.08.52.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 08:52:14 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 30 Jan 2015 17:52:05 +0100 Message-Id: <1422636725-25148-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] 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" Adding support for git downloading of a custom repository. Signed-off-by: Angelo Compagnucci --- boot/at91bootstrap3/Config.in | 35 +++++++++++++++++++++++++++++++++++ boot/at91bootstrap3/at91bootstrap3.mk | 8 +++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in index 8ac40ed..6f2f7db 100644 --- a/boot/at91bootstrap3/Config.in +++ b/boot/at91bootstrap3/Config.in @@ -8,8 +8,43 @@ config BR2_TARGET_AT91BOOTSTRAP3 - Peripheral drivers such as PIO, PMC or SDRAMC... - Physical media algorithm such as DataFlash, NandFlash, NOR Flash... + 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 098e7bf..39f2365 100644 --- a/boot/at91bootstrap3/at91bootstrap3.mk +++ b/boot/at91bootstrap3/at91bootstrap3.mk @@ -4,8 +4,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