Message ID | 20200709111709.68904-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBS72TP4AKGQEW2G5HAI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 543443F06D for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 9 Jul 2020 13:19:40 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id q5sf1286097pjd.3 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 09 Jul 2020 04:19:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594293579; cv=pass; d=google.com; s=arc-20160816; b=dSEjDoiv0pO3GHtsNu9Ixwg5P16OGv5Cuguh/oxWXXCrpKKeoowlVRuNomADqaQWTd 1p/GsB7npOcS3UjOw9VAG0IOjrxkW7tZ9oEdq//wdTSOps99j62mJtwJOXgpuvOX/6Qk QC2mdhIkECMySftLDn74suHj/9H2ITwb+xj+bibQhEcK39d9kyV6QmXtOU07Xxujurp9 QT78GXT3Wri4tLr9ZXr2/QpUvEidQWfF5GJL6wY2b0euOds9HgRiSFLuNORu+EJBLCmR qPjMmsoXugH3GhoVZW0DLvq/aTruJD1SxfMTo4zngrULZB4dyvwk2UgSYLHViG+TafQF 67EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=N5Vh0fUKnd6B5gH1mpTJOdJs+vOFtm5RvXUQkY6j5yU=; b=utHuzwFkz+m9Kznikx60NVXCn2Hz7+LcwUA0Wmwo0Mu0Ym7n9jzmNZt1BuDZMhQwEq SZ9Rx1vobde5t/wOwyEURw0wMzMZ+8lMRRb/XWSH6TQu6Eq+0EMAs2BikYmWagtAw+hf Q1eVuVnAisfrjbyeuWiSMScPWCCCC7irxtoa8CAHAnAP8Wu6eD7fFuJWC29oBKUMVER7 PpLQMUYuum4G19XoQXvQrNCst+RoPEXTriMLOQIHTeZO9ni3EHxUas1zfIrQn5YYddRx AkZOyejH6uxo81Ygvimk0Cf2RI/ENZ8482kYFo0KnMMWjaxkS2Njko+5Ropqi15vADIZ U93w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="R/XKFyXv"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=N5Vh0fUKnd6B5gH1mpTJOdJs+vOFtm5RvXUQkY6j5yU=; b=As7b3OISIjtPF1hqy0DmbADzQE3dRCCT47IkaB/ROlDw5XNPRpK5oCeaVTiJQx1Suf +8vb0YZ1U1SLVuXxQCwXt0oF+ZxfzR4ZfNYYL9LkIDt2JGdk312S9vg0jIzroXned4jo ZOBnl9wFBH0BEe5k4sa6+87ts7RAv+BYb4rhY= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=N5Vh0fUKnd6B5gH1mpTJOdJs+vOFtm5RvXUQkY6j5yU=; b=QSk7xFHsWTm0SnC0Dp4fRJOCtrgIz1f14SYYgTv/pKipFF1SAfRk8HGBQpQ7Ytze6p Jon/aqOnrpoRVEeiIKi7DjYrdY66sd5NWkboSdggpWcoZ42e7se0XRBeIaRXQN4G8Fjl flsGHTlTtNhA/a7zxgD9Ewg7WLmjpHA2VLb6534pkpQRNOSYBRC2bD0IHIkuHS+1fmbK 8jgvh+1anCq/o+KHT9cKoz6fkmpdA+56xxUg+ANP5JkuS/suRujGiWVEud9iemorbB2u Q2F4lrZOIzDPdBuq1D7fdToXmEhPOgAc42XqjxLuHVNh3s0zzCvophTu1U2g4Kv38N+j TtYw== X-Gm-Message-State: AOAM533iJzL1RH0xFslbj2Ou79ZZz3yimG2JMQLXGjj4FWC7BszC39r6 cP97ZzbWyixg7tmPt7c7l8M/aHUa X-Google-Smtp-Source: ABdhPJyqL8QYEjV7bpAKIbCRF+mF6C1HqMHQzcZoohwv/h+Xz7cBlDBvrnD3+h8mBmjbJAA4gafdvg== X-Received: by 2002:a63:5004:: with SMTP id e4mr31503240pgb.208.1594293579136; Thu, 09 Jul 2020 04:19:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:565:: with SMTP id 92ls2245669plf.2.gmail; Thu, 09 Jul 2020 04:19:38 -0700 (PDT) X-Received: by 2002:a17:902:7:: with SMTP id 7mr49219156pla.209.1594293578669; Thu, 09 Jul 2020 04:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594293578; cv=none; d=google.com; s=arc-20160816; b=EglZPGF5TXe/pQj+qM8qTNlF6hmzDGPCorQEArIrsCTGvuhETlqvOgPInELVIzbThb ElM8NQtLi8Z9duzg5q7NoODOTSsX9Kl5wOI/tHK0Tat5spAaYNZ6YK/25oATB99MKrch AlADUniiZah7xgYl2sEQcbxRJ7PG2tHdpZNVqGFjWzIfI5n104db4ohNGf/pTS54BB+F EaaMCGCNHpvIypEss9g6KlNj9pJ0jZIOXDDBjvmsXo5gEOgMWqO+a29ocEWZYd6Uf2R3 Qv+B9r56KdQ3q+EWPrxz/RxR1XTjBW43NPOo3ywWh8LNM/f+SvIlJTxkPhYvWOAEPk8k jIgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sUcsFKI2tm1KjE+Yk+MUTXdT4e6qPu2mWFjL/eRKg0E=; b=OK6gDuiw3FKWOikwXspgtzIhTIzrgtO2qFHBQwLRMPpVB2E14u76n/8+o39TgMWAL5 D2C+el+2zNL2Q17L60wlwk3Wr/1x5SDf2/UmaMbFJHI1QDSCZi2QQNy5X1TrLlqGxPp9 0LJHkgbaQdRdnKLbUSDQfs9xOR9wvK8+IwAFu1d2wz2o1b3g3HbWJeN8s/0i/sBApS+1 mgthQJJUGljkUM66y3qqMrq/nTzdqVsR8pTKzOj0GLBX8hLqi0GS2yI8GERIh3XzZVkw W0JrYWFmSOIZfGeAC3SiyYKPFwy23Fc35J+9XS8a2oqjP68CZ+lyrt/FK4z7EjpZ3/4a taxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="R/XKFyXv"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d4sor3404986plo.37.2020.07.09.04.19.38 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 09 Jul 2020 04:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8d86:: with SMTP id v6mr29938571plo.200.1594293578404; Thu, 09 Jul 2020 04:19:38 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id o23sm2608130pfd.126.2020.07.09.04.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 04:19:37 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Vignesh R <vigneshr@ti.com>, Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 4/5] mtd: Build mtd-uclass as obj Date: Thu, 9 Jul 2020 16:47:08 +0530 Message-Id: <20200709111709.68904-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709111709.68904-1-jagan@amarulasolutions.com> References: <20200709111709.68904-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="R/XKFyXv"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related | show |
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index f6b0719746..baab7b8657 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -4,7 +4,6 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o -mtd-$(CONFIG_$(SPL_)DM_MTD) += mtd-uclass.o mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o @@ -18,6 +17,9 @@ mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o +# dm-mtd +obj-$(CONFIG_$(SPL_)DM_MTD) += mtd-uclass.o + # U-Boot build ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Technically dm and nodm codebases have to build separately since the SPL and U-Boot proper will enable based on the requirements and foot-print sizes. Till now there is no usage of SPL DM_MTD, but if we enable it can't build since the mtd-uclass is linked with nodm MTD code. So move the build link from mtd to obj so-that it can make compatible with all build types. Cc: Simon Glass <sjg@chromium.org> Cc: Vignesh R <vigneshr@ti.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/mtd/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)