From patchwork Mon Dec 21 15:35:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 559581 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 4F7C614031D for ; Tue, 22 Dec 2015 02:35:37 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=B3C5J+6+; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E48F14B8B5; Mon, 21 Dec 2015 16:35:35 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D9R6qgLlBO-h; Mon, 21 Dec 2015 16:35:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 056504B8B9; Mon, 21 Dec 2015 16:35:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1EAC44B8A5 for ; Mon, 21 Dec 2015 16:35:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPuGVSZ9kvWi for ; Mon, 21 Dec 2015 16:35:27 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by theia.denx.de (Postfix) with ESMTPS id 428764B8AE for ; Mon, 21 Dec 2015 16:35:21 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id p187so73469596wmp.1 for ; Mon, 21 Dec 2015 07:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MI9p2Y4ASa0w0jfEYwhFhnE5B/ydsxf64M6v2j8uqns=; b=B3C5J+6+WM60ymHTXWiEPVgzO8IeuTTwgfvseutXIvGD9F2B0OlZH+4PUt7wy+8q9i OLV/U7UOWRlJ1w3zUfl6KGq36Smke29oGnN/Y5NBqVEKGtvETh2/+mYLmhnX403TpFP0 wk4myGpYJtJscdJSrFjgYKrxonj2ir+bCqKGa0FvRyQNpHy4/akIwYWGfVVAXT7/2Ys9 uPoCj2Lx3ta4mt5v/rVr37gb9katDC41C5TbNeEkBIxWMpz+apdTCuamHOBw8PNv7Yic 0Rs8gN3H66cb59MrZKHq6UiigEkAIUEgxD6/MB0hpTmz07kHYBv76x7KA1plZp00UAsM SGFA== X-Received: by 10.28.90.132 with SMTP id o126mr23010622wmb.1.1450712121562; Mon, 21 Dec 2015 07:35:21 -0800 (PST) Received: from workstation.sas.sys.sphairon.com (p4FCCA0E6.dip0.t-ipconnect.de. [79.204.160.230]) by smtp.gmail.com with ESMTPSA id o132sm15615948wmb.7.2015.12.21.07.35.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Dec 2015 07:35:20 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Mon, 21 Dec 2015 16:35:13 +0100 Message-Id: <1450712114-10022-2-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1450712114-10022-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1450712114-10022-1-git-send-email-daniel.schwierzeck@gmail.com> Cc: Tom Rini Subject: [U-Boot] [PATCH v1 1/2] MIPS: Kconfig: refactor machine setup X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Refactor machine setup like it is done on ARM. While on it, also support "include --- arch/mips/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 43f0f5c..6a9f798 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -7,4 +7,9 @@ head-y := arch/mips/cpu/start.o libs-y += arch/mips/cpu/ libs-y += arch/mips/lib/ -libs-$(CONFIG_SOC_AU1X00) += arch/mips/mach-au1x00/ +machine-$(CONFIG_SOC_AU1X00) += au1x00 + +machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y)) +libs-y += $(machdirs) + +PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))