From patchwork Mon Apr 2 16:34:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Sheriker X-Patchwork-Id: 894322 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Uxx4ia6a"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::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 40FHtX5sZDz9ryr for ; Tue, 3 Apr 2018 02:36:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-ID:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xKiHSp8cBqyg8Dtr90YQywJO60axfgxqGI0rkohOO0A=; b=Uxx4ia6ax2kk9f0cLTj/+xzrCz aHTE+G9ZUZPtAp2skWMI1Dt0xplVL6cinLV9xErGLoFjVme7DKiXzwP0bg/Z7KRpUAeXmFXsfUAF6 ascgM+MXYRe3wPNhYC3LfAkSNVnlwonEfpwpcQE+V9QnAUlhVB8jsFmwbxqqWPLPb8wcQHdUKiyX4 TJSFeOLpHhEemw3kdOKS41jhtcjMJD9GmJoXkSnZU4htXnZOpQ3WXMv+Kl6Z25xyhNa+GpGnesxGa tG37p3QMZ7lld22kXiJeoyhMteXykmIJML666vSSDLIwFortY7aCfzBcvyD2BWuDx4oh1oDbSNmgl GA07+q7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f32Rj-0006i7-IB; Mon, 02 Apr 2018 16:36:39 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f32OS-0002vH-4j for lede-dev@lists.infradead.org; Mon, 02 Apr 2018 16:33:18 +0000 X-IronPort-AV: E=Sophos;i="5.48,396,1517900400"; d="scan'208";a="12811828" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Apr 2018 09:32:52 -0700 Received: from sandeep-office.microchip.com (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Mon, 2 Apr 2018 09:32:52 -0700 From: Sandeep Sheriker Mallikarjun To: Date: Mon, 2 Apr 2018 09:34:07 -0700 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: <53c9aeb4835571ac0fed72f2f43c76fcf75fccfc.1522686801.git.sandeepsheriker.mallikarjun@microchip.com> References: <53c9aeb4835571ac0fed72f2f43c76fcf75fccfc.1522686801.git.sandeepsheriker.mallikarjun@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180402_093316_241863_7CE405F5 X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [68.232.149.84 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [LEDE-DEV] [PATCH 05/12] at91: fix build error for wb50n. X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org when external kernel is selected from menuconfig, device wb50n is not avaliable and build fails. As a fix adding checks for external kernel. Signed-off-by: Sandeep Sheriker Mallikarjun --- target/linux/at91/image/sama5.mk | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index dfc1601..b875888 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -73,16 +73,20 @@ define Device/at91-sama5d4_xplained endef TARGET_DEVICES += at91-sama5d4_xplained -define Device/wb50n - $(Device/evaluation-fit) - DEVICE_TITLE := Laird WB50N - DEVICE_PACKAGES := \ +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") + define Device/wb50n + $(Device/evaluation-fit) + DEVICE_TITLE := Laird WB50N + DEVICE_PACKAGES := \ kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \ kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \ kmod-leds-gpio - BLOCKSIZE := 128k - PAGESIZE := 2048 - SUBPAGESIZE := 2048 - MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955 -endef -TARGET_DEVICES += wb50n + BLOCKSIZE := 128k + PAGESIZE := 2048 + SUBPAGESIZE := 2048 + MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955 + endef + TARGET_DEVICES += wb50n + endif +endif