Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp162058imu; Tue, 15 Jan 2019 18:56:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dzxSv76ksD2aYcwADaQ7BVxS/tEZisSyvcXUtk7/NYFipBEBff5OMkv91bNbeXm38eBTZ X-Received: by 2002:a62:36c1:: with SMTP id d184mr7410552pfa.242.1547607364100; Tue, 15 Jan 2019 18:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547607364; cv=none; d=google.com; s=arc-20160816; b=lEP+zwTo5jWdeZYaq44gbOk2ewYlXJRdFfDd8zcx6wSCQztxsX1pA5T7NCIRe10X/q z4NdeN37q9nCgmFRpxgp1Kw7rl3xZTWwSeBhAopxC8bgqc009sAYuh626RhHryHm3fhN x9ICwa6cg8JHR8fyzLiksGSdIAFCFtTM/BuyeYcEFb3f/4ATs44XR52EKDnTfppvYpHp q7zobbCwolfqBY5rV+B9AC3WHCTCMIdz7VolCxVWsA+1G4Y7xZMB6SC0QO5Su9hf2fGQ kJLYYip7JMC/6BxH+Bu31EJZnZp8rEXcy8n4SAw3WCLyk9Ql03hox0XEiiRIY9l/aFvr sBOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cE6SBKobVtbIIAKZUR3KFTJue1PHcl6hPHX1OcIbqBM=; b=p3Zws9Gw3tRgZIXmEn0KP3oQmWp+OCRF5RhqS3GRC3PAq1T1THsSCJyPbq/3wBWZrW 7vlJdmyvyMoPEapbK4GfjZm5rKdt78BB18dAALNyhwpT987hn5z5hCJAW6suhT+d63SR Qw/u11AfpsP1ooax0VA9nKhnoRgTLLr/MRh4J0570iV1kbMC1PmbTWAmiRleyxMCyrEf /1ysom0I9J/5Wa5mcQd3thyHQpJsictwC7+1FjA8UY6JJcAux7JgW2tZlrZP+kCqzBpW 6RFetem1bFbOZpfRZ7GKGHWeX7xsS/b3DmHrmLV/M3BM4XDudPV8s/AsxpYWxVNX8xpT YjNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zyevd2Gm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17si4766034pgl.586.2019.01.15.18.55.46; Tue, 15 Jan 2019 18:56:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zyevd2Gm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388346AbfAORbn (ORCPT + 99 others); Tue, 15 Jan 2019 12:31:43 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:39813 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388023AbfAORbl (ORCPT ); Tue, 15 Jan 2019 12:31:41 -0500 Received: by mail-it1-f194.google.com with SMTP id a6so5479529itl.4 for ; Tue, 15 Jan 2019 09:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cE6SBKobVtbIIAKZUR3KFTJue1PHcl6hPHX1OcIbqBM=; b=Zyevd2GmLvfx6hNjCzqPZ2f+E3gt9KUh5krupbUeREFCq0Uy4Zg/otLPfLjBDYTnA+ t46kmkwsVUfcULdjOsBDsuS2PgRw2lNfKrlMY8vc6NTkwt99HMuo32FPzS7eK8TtUfRG 3uLgPm6SYn+GqaTqfDMsmllSxG20MWl63zj8BIB5qOVLiq0QmWkOrpkl5dCfE+jruNHv hTNrl3i/9MgxMKQDh30Y8YvemwRPmsYrFiIay3UxNNVz3xklWBKiQkEZ70l1kq7ATWy+ Dg4yVqQaFBK1FqFaqS/GIJt61Gf23LgVFXM6rRzvQLQylvbSUOTuAzeCfpMhtRH3MvEo /P/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cE6SBKobVtbIIAKZUR3KFTJue1PHcl6hPHX1OcIbqBM=; b=Y1kYaQWTCTB8B7FcDoJbzD9TV6Au05y6jbc/V14lDdQrqhU/aSN8B8pSdeXy5C9OoY /rOYF6nsAayCABRY1oc9jKStbyG0SWcEww4WEWltb5f6gHQkLXUHANJ/5hCUwWGXJ0bl CouEUfNVsCVJpEMMoJg9/vFZNgXQRhmz9WFWox/BQYDF1YovuEb4f4SySUPldUbYg+UZ EdwEAIPR8vaWJDEH3BP126tDGQLh92WrXuTtwm3GZzKks3PBz2ec1uS92Bp0QhI/j3wc /sOtf5ZbAnf2bUaTVM0sFJfm6cWslJFXrjmoiuOcsVT2NjsZDM5aB//32PSUCmBw7LBf ebcA== X-Gm-Message-State: AJcUukcYM52WcA+BXYmVMBzMqNRwL/5L+lodKZXMMfmMNDbvm97bdF8T njvQ4uvkCauWV1b4g7dTeok= X-Received: by 2002:a24:5a8f:: with SMTP id v137mr3105070ita.65.1547573499747; Tue, 15 Jan 2019 09:31:39 -0800 (PST) Received: from localhost.localdomain (c-73-242-244-99.hsd1.nm.comcast.net. [73.242.244.99]) by smtp.gmail.com with ESMTPSA id h14sm1431501ior.41.2019.01.15.09.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 09:31:39 -0800 (PST) From: George Hilliard To: Greg Kroah-Hartman Cc: George Hilliard , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, NeilBrown , sergio.paracuellos@gmail.com Subject: [PATCH v4] staging: Mediatek: Use individual config flags in Makefile Date: Tue, 15 Jan 2019 10:29:18 -0700 Message-Id: <20190115172916.26937-1-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115172009.GB30853@kroah.com> References: <20190115172009.GB30853@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These drivers can be useful on other MT76xx SoCs, which have compatible peripherals. The drivers were selectable in Kconfig, but they were quietly excluded from the build because the SOC_MT7621 chip was not selected. So, make the Makefiles use the same flags as Kconfig for these drivers. mt7621-dma and mt7621-dts are left alone because they truly do require that SoC. I have personally confirmed that the mt7621-spi driver works on the MT7688, which was what prompted this change. Cc: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org Cc: NeilBrown Cc: sergio.paracuellos@gmail.com Signed-off-by: George Hilliard --- Changes in v2..v4: - Also use individual flags for mt7621-pci and the new mt7621-pci-phy - Slightly revise commit message drivers/staging/Makefile | 14 +++++++------- drivers/staging/mt7621-pci-phy/Makefile | 2 +- drivers/staging/mt7621-pci/Makefile | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 4d563ed0bc79..cc5530cc996b 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -41,14 +41,14 @@ obj-$(CONFIG_GREYBUS) += greybus/ obj-$(CONFIG_BCM2835_VCHIQ) += vc04_services/ obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/ obj-$(CONFIG_PI433) += pi433/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pci/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pci-phy/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pinctrl/ -obj-$(CONFIG_SOC_MT7621) += mt7621-spi/ +obj-$(CONFIG_PCI_MT7621) += mt7621-pci/ +obj-$(CONFIG_PCI_MT7621_PHY) += mt7621-pci-phy/ +obj-$(CONFIG_PINCTRL_RT2880) += mt7621-pinctrl/ +obj-$(CONFIG_SPI_MT7621) += mt7621-spi/ obj-$(CONFIG_SOC_MT7621) += mt7621-dma/ -obj-$(CONFIG_SOC_MT7621) += ralink-gdma/ -obj-$(CONFIG_SOC_MT7621) += mt7621-mmc/ -obj-$(CONFIG_SOC_MT7621) += mt7621-eth/ +obj-$(CONFIG_DMA_RALINK) += ralink-gdma/ +obj-$(CONFIG_MTK_MMC) += mt7621-mmc/ +obj-$(CONFIG_NET_MEDIATEK_SOC_STAGING) += mt7621-eth/ obj-$(CONFIG_SOC_MT7621) += mt7621-dts/ obj-$(CONFIG_STAGING_GASKET_FRAMEWORK) += gasket/ obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/ diff --git a/drivers/staging/mt7621-pci-phy/Makefile b/drivers/staging/mt7621-pci-phy/Makefile index 2b82ccfc28c6..a970056f05c1 100644 --- a/drivers/staging/mt7621-pci-phy/Makefile +++ b/drivers/staging/mt7621-pci-phy/Makefile @@ -1 +1 @@ -obj-$(CONFIG_SOC_MT7621) += pci-mt7621-phy.o +obj-$(CONFIG_PCI_MT7621_PHY) += pci-mt7621-phy.o diff --git a/drivers/staging/mt7621-pci/Makefile b/drivers/staging/mt7621-pci/Makefile index 607b84bedcc3..d4655a726b61 100644 --- a/drivers/staging/mt7621-pci/Makefile +++ b/drivers/staging/mt7621-pci/Makefile @@ -1 +1 @@ -obj-$(CONFIG_SOC_MT7621) += pci-mt7621.o +obj-$(CONFIG_PCI_MT7621) += pci-mt7621.o -- 2.20.1