From patchwork Tue Dec 6 08:13:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Kellermann X-Patchwork-Id: 703055 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tXvmc0Twdz9sdn for ; Tue, 6 Dec 2016 19:24:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=solectrix.de header.i=@solectrix.de header.b="EoUiNG1/"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A3DC9835EA; Tue, 6 Dec 2016 08:24:12 +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 nXqxVT-jiwnD; Tue, 6 Dec 2016 08:24:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6BE6B834F8; Tue, 6 Dec 2016 08:24:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C24CA1C063A for ; Tue, 6 Dec 2016 08:24:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BCBC48550A for ; Tue, 6 Dec 2016 08:24:09 +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 F3ghrg9fnFf3 for ; Tue, 6 Dec 2016 08:24:08 +0000 (UTC) X-Greylist: delayed 00:09:40 by SQLgrey-1.7.6 Received: from mailer.normanzi.de (mailer.normanzi.de [194.150.191.222]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0E77B854F6 for ; Tue, 6 Dec 2016 08:24:08 +0000 (UTC) Received: from zimbra.solectrix.de (zimbra.solectrix.de [88.217.147.211]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailer.normanzi.de (Postfix) with ESMTPS id DA1918003F for ; Tue, 6 Dec 2016 09:14:24 +0100 (CET) Received: from zimbra.solectrix.de (localhost [127.0.0.1]) by zimbra.solectrix.de (Postfix) with ESMTPS id C6FFBC40396; Tue, 6 Dec 2016 09:14:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.solectrix.de (Postfix) with ESMTP id B242BC40375; Tue, 6 Dec 2016 09:14:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.solectrix.de B242BC40375 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solectrix.de; s=4B3F345A-BFBF-11E3-99A9-21BB46A75F48; t=1481012064; bh=F+Iu47M1vsYIK46hmdUy5NSkIbGFgCTkWJJMUtNJKwY=; h=From:To:Subject:Date:Message-Id; b=EoUiNG1/wVsziv56xDSybF7DkG6tVNb9JXsE8onrh0k7yilbLgmfAlqtyOGZP7e1j tNchOE7hGwG2h3Oijbe6M2TO8Z+B9it8VnkrXxooWmgsoXeBs0qU9eCThoaYraazrI 0YHvLLTY13w1fd9zycU4wJ+lt0LuQ1dj2uPYzFDk= X-Virus-Scanned: amavisd-new at solectrix.de Received: from zimbra.solectrix.de ([127.0.0.1]) by localhost (zimbra.solectrix.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1h9CsxJ5lb_o; Tue, 6 Dec 2016 09:14:24 +0100 (CET) Received: from networker.simp.solectrix.de (unknown [192.168.2.2]) by zimbra.solectrix.de (Postfix) with ESMTPS id 9B81FC40349; Tue, 6 Dec 2016 09:14:24 +0100 (CET) Received: from sx4173-linuxdev.solectrix.de (dhcp-152.simp.solectrix.de [192.168.227.152]) by networker.simp.solectrix.de (Postfix) with ESMTP id 8C0D6264FD; Tue, 6 Dec 2016 09:14:24 +0100 (CET) Received: from localhost (sx4173-linuxdev.solectrix.de [local]) by sx4173-linuxdev.solectrix.de (OpenSMTPD) with ESMTPA id 80a27a31; Tue, 6 Dec 2016 08:13:23 +0000 (UTC) From: Christian Kellermann To: buildroot@buildroot.org Date: Tue, 6 Dec 2016 09:13:22 +0100 Message-Id: <1481012002-30425-1-git-send-email-christian.kellermann@solectrix.de> X-Mailer: git-send-email 2.1.4 Cc: Christian Kellermann Subject: [Buildroot] [PATCH 1/1] linux: Setting a repo_version is mandatory for custom repositories 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" If not set the system will use an empty string which will result in download errors for 'linux-.tar.gz' packages. This patch makes it obvious to the user that the variable needs to be set. Signed-off-by: Christian Kellermann --- linux/linux.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index 7e826cc..f8a2cd9 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -35,6 +35,14 @@ LINUX_SOURCE = linux-$(LINUX_VERSION).tar.xz ifeq ($(BR2_LINUX_KERNEL_CUSTOM_VERSION),y) BR_NO_CHECK_HASH_FOR += $(LINUX_SOURCE) endif + +# When a custom repository has been set, check for the repository version +ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN)$(BR2_LINUX_KERNEL_CUSTOM_GIT)$(BR2_LINUX_KERNEL_CUSTOM_HG),y) +ifeq ($(BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION),) +$(error No custom repository version set. Check your BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION setting) +endif +endif + # In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order # to use the $(word) function. We support versions such as 4.0, 3.1, # 2.6.32, 2.6.32-rc1, 3.0-rc6, etc.