From patchwork Tue Jan 14 20:55:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1223057 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=A4T1o78k; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47y2mK0Dd0z9sP3 for ; Wed, 15 Jan 2020 07:55:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7469787820; Tue, 14 Jan 2020 20:55:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dvp6rqd2e+HO; Tue, 14 Jan 2020 20:55:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4AF84878F7; Tue, 14 Jan 2020 20:55:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 88F9E1BF375 for ; Tue, 14 Jan 2020 20:55:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 85AAD84E0C for ; Tue, 14 Jan 2020 20:55:31 +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 21CVEgGZqCJM for ; Tue, 14 Jan 2020 20:55:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9A4898362E for ; Tue, 14 Jan 2020 20:55:27 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id d16so13611804wre.10 for ; Tue, 14 Jan 2020 12:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZgZh3fCV7T+Ql2MmahdGaTq/N99uKGOLHRcs2LN34Oo=; b=A4T1o78k+zmJbyyVFAGKqpOFxf2Qpz6teQXO417OKBMYVSfPolP8HRJPa+PCpm6i8F RfHiai6HM/SBu/ul3A3+m9YAMMR9jaYmnSKrIHRfFCLJCbnqtlA/u6BG/2lZozIzu1Yt d0hdI8EEXI2zoq5cL4lLpUmh1OtcEO3Ez48bFVdFz0nd2Vk15FWMjbe5OrVhUyLwnNXX nve6e7ACHjacAJHyz3t0HoXA820C96zAfXI9hnIFiWCk8C1pbehcMrzV3fezrMP6S+59 xpGQfIMT14owOewYU8UPKvIgRE3bxLUUkaLqZXIDUke+JeDWP1bZSUMskuxlOXmMM20c YDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ZgZh3fCV7T+Ql2MmahdGaTq/N99uKGOLHRcs2LN34Oo=; b=ike6Gg6axqs19ZHAuMmpaLhI4WNwYQwru0tON5lJspn5DKi6fMlMG5u/CSmdRS84TM Ya2P5MMEocW4ebzu80Lw4Nr4UiLVlbbWYoPbpt+24P1bA6Ak0OTlg33ir/r3lhftZXhS h7ejoKaDzV21JzyTEqBTjh3fGsmg65ea2iOVat5F2wzmautcoW7RzYaSGuLO3dG6YCA9 Gi8sOpbZDsYBDNk46QWYCJsOS4ZeGS0Tas+IG+2zpZ7olzpkPtvAriU880ZGYW4XVshA Ur5AgdaMsJSVsxm6gA7IkWbdk0j/r3BfLhc/w/JXu5ZopfYzdSbaCHPA7XcuyG8wPVME 4VSg== X-Gm-Message-State: APjAAAX3XCTuZtm0v6twNNNpfYa9n+PnQKCuc6IQQ4s0IKi3Br3c0wOF IXfBH+6U2RU29XiagSQWxeNvLSI0 X-Google-Smtp-Source: APXvYqzBmXLSpItJAMr9uo/P44I/7IFMUUL4M1UChyD9wf91d+fH27c04Q5xvdzgc9JrrtVeLodDzw== X-Received: by 2002:adf:fc08:: with SMTP id i8mr28668943wrr.82.1579035325948; Tue, 14 Jan 2020 12:55:25 -0800 (PST) Received: from scaer.home ([2a01:cb19:8b51:cb00:8c14:e795:3c56:e06]) by smtp.gmail.com with ESMTPSA id b137sm21448095wme.26.2020.01.14.12.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 12:55:25 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 14 Jan 2020 21:55:20 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/5 v4] package/xenomai: add support to download a custom tarball 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: , Cc: Thomas De Schampheleire , Jan Kiszka , Romain Naour , "Yann E. MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Reported-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN Cc: Jan Kiszka Cc: Romain Naour Cc: Thomas De Schampheleire --- package/xenomai/Config.in | 8 ++++++++ package/xenomai/xenomai.mk | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/package/xenomai/Config.in b/package/xenomai/Config.in index 39d10ae695..326e1be737 100644 --- a/package/xenomai/Config.in +++ b/package/xenomai/Config.in @@ -55,11 +55,19 @@ config BR2_PACKAGE_XENOMAI_LATEST_VERSION config BR2_PACKAGE_XENOMAI_CUSTOM_VERSION bool "Custom version" +config BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL + bool "Custom tarball" + endchoice config BR2_PACKAGE_XENOMAI_VERSION string "Custom Xenomai version" if !BR2_PACKAGE_XENOMAI_LATEST_VERSION default "3.0.10" if BR2_PACKAGE_XENOMAI_LATEST_VERSION + depends on !BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL + +config BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL_URL + string "URL of custom tarball" + depends on BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL choice prompt "Xenomai core" diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk index bab9d6997d..d169c2e315 100644 --- a/package/xenomai/xenomai.mk +++ b/package/xenomai/xenomai.mk @@ -5,8 +5,14 @@ ################################################################################ XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION)) +ifeq ($(BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL),y) +XENOMAI_TARBALL = $(call qstrip,$(BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL_URL)) +XENOMAI_SOURCE = $(notdir $(XENOMAI_TARBALL)) +XENOMAI_SITE = $(patsubst %/,%,$(dir $(XENOMAI_TARBALL))) +else XENOMAI_SOURCE = xenomai-$(XENOMAI_VERSION).tar.bz2 XENOMAI_SITE = http://xenomai.org/downloads/xenomai/stable +endif # Exclude all from the hash check, but the latest version. ifeq ($(BR2_PACKAGE_XENOMAI)$(BR2_PACKAGE_XENOMAI_LATEST_VERSION),y)