From patchwork Tue Sep 4 08:05:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145877 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3376258ljw; Tue, 4 Sep 2018 01:06:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbgQ5sNtQO+npuGOpdhbLvkG+1tTMYL8e133vJh60sMbR0Je/vlPFHgWzyJCNwks/HEH89/ X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr33033047plh.152.1536048416192; Tue, 04 Sep 2018 01:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536048416; cv=none; d=google.com; s=arc-20160816; b=DJH8YnkBz4gCfCK4lBykBqMYZl0+l/8rl2z2KTm1PptxAXyu+tsK+VE7UzFxl8oyJG MEAacYRP9caUljRKHfKpeFJSUTpOJOmM89B5KqjbDOoVWfvjvRbVxVr61fkWGS96Nhns LnpflusM0Q67LxL7jmk0OxzMhXlh6AG6eDSqjix1hoM7aNXfL+8VRzMVD69o+JOBlJLJ n0UMzBoTy6laNK9Iy5pabIIkdbeO4fhOz8j4R/EdZJ/7Io+8OgOKgqllezlZ5iDIPuXS UoUF5D6gwYbKuYCyVqVT+/3B2Hd5d9J7tmt4ScURGjpG32CuiiWcTizCu2hVyGC9qxaK 9e1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=b5cIOUYN+kBjWItlErFAy4TPNKjh2hyJ0WeeIipWpuc=; b=EuGn76UgR6ahlSt2Y8J9p4xKvzeo6FgvYQDN7wvtf1cbJQ06e/Rf7nOq3IXPZwqH71 v6LNs+nGa0uxyDAPEQFdvkyoCcZkfuVjq/fMWlPTxqObQBFsnB0SllcJ60u6oL5ElRf2 i/qxz8BsfNk2Fsn7UIgcO0dZmReQk8Jhhmhc93mGLDGWoOkPat0a9Y6jk+hgl4RT4MGw CXbG6kY4SS/R6LahYJZINfmfD7FxvKa/LYQzvFUua/a6d/s1ZhGn3bNTSpVoz/o46yui vngDm+4FsG+JwMufa2X5Sh1YPZHITRLJmzJazaaYq8cuZYHAGQS9bn7QD6qUXs3gEcpA W/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oHv9L102; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si22338248pfd.319.2018.09.04.01.06.55; Tue, 04 Sep 2018 01:06:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=oHv9L102; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725990AbeIDMay (ORCPT + 6 others); Tue, 4 Sep 2018 08:30:54 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45550 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeIDMay (ORCPT ); Tue, 4 Sep 2018 08:30:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8486MrW107056; Tue, 4 Sep 2018 03:06:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536048382; bh=b5cIOUYN+kBjWItlErFAy4TPNKjh2hyJ0WeeIipWpuc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oHv9L102e/lJ16QKLPWqRgOBjz15eQ69GBoTOeZitNG8Zg7ItUmM/7NkhkqzaSMCF R3AJG1UL1dqsxlJ7ipM0RVLpX92g3CgMoLlYRkNyaEVbACk9fzIyQLCbrm54LQYBU3 +E9iDn3wRgYsLCQHZLFfzw1ELSgYAINd3KUhZP+w= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486MPa017157; Tue, 4 Sep 2018 03:06:22 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 4 Sep 2018 03:06:21 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 4 Sep 2018 03:06:21 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486FWx005423; Tue, 4 Sep 2018 03:06:19 -0500 From: Tero Kristo To: , , , , CC: , , , Subject: [RESEND PATCHv2 1/4] ARM: dts: add support for building DT overlays Date: Tue, 4 Sep 2018 11:05:41 +0300 Message-ID: <1536048344-9995-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536048344-9995-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-1-git-send-email-t-kristo@ti.com> <1536048344-9995-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add simple support for building DT overlays. This just compiles any given .dtso file under the base arch/arm/boot/dts directory into a .dtbo. Signed-off-by: Tero Kristo --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/Makefile b/arch/arm/Makefile index d1516f8..ab555a0 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -339,7 +339,7 @@ $(BOOT_TARGETS): vmlinux $(INSTALL_TARGETS): $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ -%.dtb: | scripts +%.dtb %.dtbo: | scripts $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ PHONY += dtbs dtbs_install From patchwork Tue Sep 4 08:05:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145879 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3376278ljw; Tue, 4 Sep 2018 01:06:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+gqI1VTM+hoZ14nil20jjuM5RMk1DfLYMLlxHv8jcAYScGctl8TnzBUPJHHoo3fppl9f/ X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr32660692pls.233.1536048417699; Tue, 04 Sep 2018 01:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536048417; cv=none; d=google.com; s=arc-20160816; b=H2h8PwmwnMbf7w05qFqbu9FoYbngQk9VhjzWLY4jaDeezyQIM7yc4D0Jp5zNc0utl8 BoypPfUQlKIGV3P75JXQRr1G77OLIXLOU38RsU0uGMPiKOq+QTES9SXomeBKwRJ2dqbd 1z0zNhbzAVkjZS7bM4W1gQsXI+vyCpjtH4GSPq7J9fnVmXWEf+LvrU0LPHvQ5vFNuM4j BgmCdSn5b9rOOw6Hcor2kBSv+aBtacRkY4OIGbX97NDPu1tUIXDPsd+KC7X7AYlIGnsv I0CGH+7xMTOgOZhqQp962TR/Uwmg38iQVkAH30m/+AZ2U68CXtNYzBG0Mr2Jma/l9ixT D0Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=vLXnr8l/BDKBJnxItklTJCoQ7PJGWAoA21dhsacLKVU=; b=B3yJj2TtKC5i1gBT6RQEFFQMduNfH6Xay6nHXh602E7Ff/uHogbI6v6y4wEH+ujwqa jJ/m+3XMOVgbJv/kQJBcw1YVe5SdP0YQHo1tczUPvGKv0vJeEtdy6WHiofN8z/uqRYYQ hzAOO3l57F4TW8xsZAlyEKTkyAq+prVgz8p1v/ijQ1XSgImx5HoiB9fbGyU6/0U9xCxK VjZc+TOjL1sh7JQfJkQ/VU8SyU6WMokkSi2yGhJRZE4A+EBztvIpKl8VBLcvct7gB8jQ L0qO1h3ZH8UU173KUF9EL7gbvt3in5+P8SvUNOMlhMEcR92twf9vdW7iVhDkzQin1hDA NVNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kwNNa0GW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si22338248pfd.319.2018.09.04.01.06.57; Tue, 04 Sep 2018 01:06:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=kwNNa0GW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726061AbeIDMaz (ORCPT + 6 others); Tue, 4 Sep 2018 08:30:55 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45554 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726288AbeIDMaz (ORCPT ); Tue, 4 Sep 2018 08:30:55 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8486Pfa107074; Tue, 4 Sep 2018 03:06:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536048385; bh=vLXnr8l/BDKBJnxItklTJCoQ7PJGWAoA21dhsacLKVU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kwNNa0GWUmBTZ55ipaBd6mHpEIg10gWBc5GO9YD3EPJovXk7+2A+aQ3mSXLMgAVDd fdRJogRF69HVYJstr8+zsqP4nNmChjUcIQY6y+t1+20Eacn8mgywnpJI5/+MtvH+O0 0TLp9EdsJLMcM6b6XhNwzClaoxBzETH+PjPCQCns= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486P1Q003652; Tue, 4 Sep 2018 03:06:25 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 4 Sep 2018 03:06:24 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 4 Sep 2018 03:06:24 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486FX0005423; Tue, 4 Sep 2018 03:06:22 -0500 From: Tero Kristo To: , , , , CC: , , , Subject: [RESEND PATCHv2 2/4] ARM: dts: add support for individual build flags for DT subdirs Date: Tue, 4 Sep 2018 11:05:42 +0300 Message-ID: <1536048344-9995-3-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536048344-9995-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-1-git-send-email-t-kristo@ti.com> <1536048344-9995-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the makefile is setup in such manner that even if we build a DT file in a subdirectory under arch/arm/boot/dts, it gets built based on the base boot/dts/Makefile rules. This patch modifies the base makefile in such manner, that it detects which makefile to use based on build target path. This allows setting for example per-directory DTC_FLAGS and using those for the subdir build. The dtbdir local variable is setup to target to the build path. Signed-off-by: Tero Kristo --- arch/arm/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/Makefile b/arch/arm/Makefile index ab555a0..b7c21e8 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -339,8 +339,10 @@ $(BOOT_TARGETS): vmlinux $(INSTALL_TARGETS): $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ +%.dtb %.dtbo: dtbdir = $(patsubst %/,%,$(patsubst %./,%,$(boot)/dts/$(dir $@))) + %.dtb %.dtbo: | scripts - $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ + $(Q)$(MAKE) $(build)=$(dtbdir) MACHINE=$(MACHINE) $(boot)/dts/$@ PHONY += dtbs dtbs_install From patchwork Tue Sep 4 08:05:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145878 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3376272ljw; Tue, 4 Sep 2018 01:06:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdavekDfx03MUUziO3SlE8UDvy8dF8KxuMPN2CzKT6W6cjsgcBFWJ+0KuCH1lVzHMrb9l8nY X-Received: by 2002:a63:6b86:: with SMTP id g128-v6mr29854624pgc.344.1536048417418; Tue, 04 Sep 2018 01:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536048417; cv=none; d=google.com; s=arc-20160816; b=E3q6WsuM+Y0EBHSRr/Xt4KkuzSIR/4m4byn56xekW+N05Gv9nzd05yLDGtahdvQAS+ tT5XyOftiy7FRn23WNZC296ysaQbTfLog+57kjpyLUn7GKbMiftJoX6rvOXKcQLZ6fME jvxv1yOE2zTm//+XYmUfJLApxPyVCsfAnXkSybJrUh/466/9fCsQIvXOVLBFP1pHiy0X bH4dJP9Ox0pjGiBt/oH7gOkugydzYYqa5C5FRxjkigyazNt73HFif7pPHps/KWq2Lddi ZIhYg7kWH5kpg9hNKrPwl0Ro2bDlYwP7V5cxCBUCQ3PNKZ76obl/5c7bIpL7OVyJVJPy K5Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=/o489amQhfMPAZorotsIOjJTKzHH9qqbJWzIRwlFfGk=; b=em9W/BraN9U+OhxoUqrdvQp1LIrE24i/KHouw7rxvewOvkoyi2xCj0nkW3rptpnA3s KNcrlbBqpzLQHv30j8wzn4LXMjruFLrUm3NQvaQnjaHb2z540G0yPDAM8PlthYd5iIuF fck4mz8FRc5yi+zFAHM79hX3qSg/esQjIDOUl6O0hUuB2c9ofNg2K0n2QqhgrjXhLrbi V8Om2JWXGsRLML6W63Simr8kc0dNOqCZg0h6WJK+F+NBvJDSbH+oMC0T/W4Hk+kg41Q6 Nj0xNKFTOv5C2NL48b2MTRxubdv7LBNJwuJ2k8eOIEq4PbkgRvUHx6331P4Gg+6kSUzF Gtpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Usca2jAX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si22338248pfd.319.2018.09.04.01.06.57; Tue, 04 Sep 2018 01:06:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=Usca2jAX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbeIDMaz (ORCPT + 6 others); Tue, 4 Sep 2018 08:30:55 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45552 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeIDMaz (ORCPT ); Tue, 4 Sep 2018 08:30:55 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8486SDV107099; Tue, 4 Sep 2018 03:06:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536048388; bh=/o489amQhfMPAZorotsIOjJTKzHH9qqbJWzIRwlFfGk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Usca2jAXOEA/WZnQLdsUo6SGSL06M4kbTJBPtZ0PxQ7l4O1chsN3U5nYT1Fc4jTs5 LCeP/+h/OWU27vytK20z/30e3vYI6hUx8NjHdclsp1xGcqRPrqV+YZ+xZowFjycZj7 3PY0ktVPqtXu3w5h9Gw3gp7JLdykzJYvLcEG3b3E= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486SId017280; Tue, 4 Sep 2018 03:06:28 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 4 Sep 2018 03:06:27 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 4 Sep 2018 03:06:27 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486FX1005423; Tue, 4 Sep 2018 03:06:25 -0500 From: Tero Kristo To: , , , , CC: , , , Subject: [RESEND PATCHv2 3/4] arm64: dts: add support for building DT overlays Date: Tue, 4 Sep 2018 11:05:43 +0300 Message-ID: <1536048344-9995-4-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536048344-9995-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-1-git-send-email-t-kristo@ti.com> <1536048344-9995-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add simple support for building DT overlays. This just compiles any given .dtso file under the base arch/arm64/boot/dts/*/ directory into a .dtbo. Signed-off-by: Tero Kristo --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 106039d..f04c814 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -127,7 +127,7 @@ Image.%: Image zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ -%.dtb: scripts +%.dtb %.dtbo: scripts $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ PHONY += dtbs dtbs_install From patchwork Tue Sep 4 08:05:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145876 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3376250ljw; Tue, 4 Sep 2018 01:06:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHCWeKVdBcUecKL7hd4ja8b2ogkuv2aJf1dW56o+wPGtqiFeQkl/H1nXnspfW3pnoy8uQc X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr30201295pgh.269.1536048415561; Tue, 04 Sep 2018 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536048415; cv=none; d=google.com; s=arc-20160816; b=ECVJSk6FeKjonbQR4pPxThmaaa9vnWoFhARHxjXrUBsibiRvTmzL/KWOE+xSjYYhBc z2xfylBMqBKYedpij3j6nMNF62qRqbLE+cdH17CuHuPmRK3coNfPx795Vu1Qy3byvzQ8 q14nUWL6rVJP8oR6rYUSHMpSlNAm12zDUkwMTwHHoyMiFie7FZfeDE8skHxj+0mVa1Qh K6qnkyNAkvgu8Va9hw7VZ4ntWs79IPhGJV9/dPceWYql3C84/zUDD3zaBPHo34+djs91 RBI7ALC4OJR0jQFgBQ4UDpE8AuuGV6MKS/X5xr7YchyCobEsMFjK0mJGlwlolndHfqz1 reYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; b=vt7YXB8O5BIzimATd3sHxO7yuJazgJTrEbTeBDYe+gkqrpRHP6QfLx+vdnG0koUQLQ 9qRtwOKLLM50mhZPdSiWSo13ORc6JXYCPwfVXAUlNEQHCvAptkDTeObWs4di4vs0I8GE L+Y+FXi8mXaxg8kgwJwxmf0tr2sGs9sxngTLZpIy+MM5901IADp0cJHXQwhjdR78iFfy kb0lLNP96vkgsWApBTbZf6sDpCMXTk+cuawKJitGOdsGGykt3ob8WPwp1+pj4BsIIrv6 bKqITwAGQFsfkPH8DU8IMdBNqyLr6vtO8D1m7gKfXd1soqYWZ13hLNucmCms5MB/kvLW ATDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JSJGacDV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si22338248pfd.319.2018.09.04.01.06.55; Tue, 04 Sep 2018 01:06:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=JSJGacDV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726284AbeIDMax (ORCPT + 6 others); Tue, 4 Sep 2018 08:30:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45548 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbeIDMax (ORCPT ); Tue, 4 Sep 2018 08:30:53 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8486V82107134; Tue, 4 Sep 2018 03:06:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536048391; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JSJGacDVtkyvNwL24oNANkSUJ46lxc4GqDe3Qu+sHHZNgOpSW9yw2eXjpixqXCjCN dsg4aQsR5yx43Ud12jlurafuRABoOh+cdiI+zrnJbPmYN1z95dhoh3zkKEEaOlWTc9 LPkeayjTSrsx+0qkHsxJc3n5EmnfDfbL6qjfge88= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486VYH003802; Tue, 4 Sep 2018 03:06:31 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 4 Sep 2018 03:06:30 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 4 Sep 2018 03:06:30 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486FX2005423; Tue, 4 Sep 2018 03:06:28 -0500 From: Tero Kristo To: , , , , CC: , , , Subject: [RESEND PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Tue, 4 Sep 2018 11:05:44 +0300 Message-ID: <1536048344-9995-5-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536048344-9995-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-1-git-send-email-t-kristo@ti.com> <1536048344-9995-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the makefile for arm64 builds all the DT files based on rules in the arch/arm64/boot/dts/Makefile, as this is statically passed via the $(build)= parameter. Change the $(build) parameter to actually point to the subdir itself, so the makefile from that subdir can be used to set-up build flags etc., for example setting up DTC_FLAGS. The patsubst magic is used to strip the trailing "/" from the path, as that confuses the kbuild system. Signed-off-by: Tero Kristo --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f04c814..2ac4358 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -128,7 +128,7 @@ zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ %.dtb %.dtbo: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ + $(Q)$(MAKE) $(build)=$(patsubst %/,%,$(boot)/dts/$(dir $@)) $(boot)/dts/$@ PHONY += dtbs dtbs_install