From patchwork Fri Aug 31 12:47: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: 145607 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp739464ljw; Fri, 31 Aug 2018 05:48:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbhwfTXho/omW8W/X/yUZnAEX/FbzgI7+bCauUKZOgmSERcAFgCst9tyEy11YnuevZqczBS X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr15376312plt.288.1535719718161; Fri, 31 Aug 2018 05:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535719718; cv=none; d=google.com; s=arc-20160816; b=q41k6tJp1Fr5wbhbKcbyUrSXPXJxYH1j3t3jVR6GwZuondln2da0WUCNgv4NXfQgrI EnmtYBJfvAOEvby9lkjwEc7ypWSPU95Vt9wvGd7TaGNmsVIPWPvPXnQ4nbQLh5xlg6If VPfSQ7pBx/0gNC6ZeLYxEB7jpWQaF41ZbWyxX/LyAZ+1muAgzZkH/u27Ovv6Cy0JwL2s dqkeJy1on5e7G6UMJy34OOcpeaEWY8PcNOo3PkUsEOn30oclWoCPlZvevA0UAc5BjrIz rR4p57EXd+5wKoQbJYhOdhSl8lyGofTr1D+TH0Y3fHrBDNxIi+dT8IvjAbz+LvaEdIvC xUpg== 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=IIPfGeFTtKCxkBETj5BRaWv97tsm0rI9w29QB0zAvNAnIEK0Acg8XWP7JO7LnPQ+c8 S2WzXcar0NhFrxuX8XIu9Y9fV2y82nAIAhU7wPMb1sd9/i+UAMbj2fPVv91FYZgedtFX chmE0nchxCe/lf0yf+lTc/nLG8rpG0rQv4MYeGL4qxDvvL06xbImdOmArJ5/Yy4JG9OC KsCUwx7sjV6eisx6+UmWudBB+bAxsrqUUXpj372MsBve5JNz4ORqa/yEl6KwNLJQbe4r ku1p+5GZEx43V8tebhNTF9v0bfNr6g6p2M4mOb+CmkNiWzuYURldj1aZfuxpRBl+4j7D V8Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q4luTlVe; 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 y10-v6si6451183pgk.672.2018.08.31.05.48.37; Fri, 31 Aug 2018 05:48:38 -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=q4luTlVe; 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 S1728000AbeHaQz5 (ORCPT + 6 others); Fri, 31 Aug 2018 12:55:57 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37422 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727868AbeHaQz5 (ORCPT ); Fri, 31 Aug 2018 12:55:57 -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 w7VCm9MT128237; Fri, 31 Aug 2018 07:48:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535719689; bh=b5cIOUYN+kBjWItlErFAy4TPNKjh2hyJ0WeeIipWpuc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=q4luTlVeikazjSvVKjiJgnvVv4kbfHknjb/7Z6kh7PIuxso6KzH6usQfdnnle+hOQ PmE/kA38C4zVu3wHvPXQ2Qxotk1ShG3/AL7ApuRDUrPWq9nIhgfaGbW/73JKsbL64g Kk1/6+I8MoqvMJRlx/+tyHZqwZH1aeB7NDyst8NM= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm99e008234; Fri, 31 Aug 2018 07:48:09 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 07:48:09 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 07:48:09 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm3JL006892; Fri, 31 Aug 2018 07:48:06 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv2 1/4] ARM: dts: add support for building DT overlays Date: Fri, 31 Aug 2018 15:47:43 +0300 Message-ID: <1535719666-13595-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-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 Fri Aug 31 12:47: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: 145606 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp739459ljw; Fri, 31 Aug 2018 05:48:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZPW/M1ip2xVcXLqxQ5r7DO4dQq1ckRtTTXHsvCfI2Buqp/yefu6gcGzg+R88onCMzD2OXs X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr15697853pfj.74.1535719717886; Fri, 31 Aug 2018 05:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535719717; cv=none; d=google.com; s=arc-20160816; b=F4fxNTFFEa5seV8mK85TLCsVYyOiqTbKu+iu72dxH4KiTxuQJu7VVAh844b3aSgGiA uL7vJNX33DDQ3+2A20xhyfb/8HV8cgpDLWq0lKpbVpGIQEVaO/kz0yNvunwi+AS7mzqC 33Rzy5cx7z8G5IChhDW+6zz+WlLRqeEj6JQDv6gAkZ3iwVIBm15ZzQISh/z5dR1mCe4w 0NTyjBuGTlpN4MQoIBTgB5cP+3quWUL5R75Nv+X4qNwwrj4dzlLkIsyPaDwkFwuYL1Dx X1LZk+AiYRwXRfYMx1Pqg9trhI387NFHOAgyJBs/t1lnPLLa5bUeARL0ojMVsqJ8XIbX 5UUQ== 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=wm0g6gTpylfFFE4TfF5m/y0q2EyZS0S0lrYklW22AKVBdtofdpClKyYLOx5u8grb19 WqSNr6/wfzzWD0QGfWu7OLKunmwfxU+dk9Y/vgYOYygJ8/kSRdkPIZmYcrAtrXTQjHYp D5UHYkMMS//IXw3Cow2U0nkN6Bo4vdims0BT1DoS20hag+rdwhmLrUPEKHLRKp/QwGrY 5p5oqqD6e531QSa9snelg2gZB5KadZluAGFy2zN+g+69bc4dxwXgOyJuyt7DRNqohX4p Y2+YkdOkVBSjjuqznQRCZuYbm97LzAu4nA/PAD3fBeHl9dFTUhVztNO4O1GjugC4dQ0r y+2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q+KQTbY7; 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 y10-v6si6451183pgk.672.2018.08.31.05.48.37; Fri, 31 Aug 2018 05:48:37 -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=q+KQTbY7; 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 S1728009AbeHaQz5 (ORCPT + 6 others); Fri, 31 Aug 2018 12:55:57 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37424 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728000AbeHaQz4 (ORCPT ); Fri, 31 Aug 2018 12:55:56 -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 w7VCmC4M128260; Fri, 31 Aug 2018 07:48:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535719692; bh=vLXnr8l/BDKBJnxItklTJCoQ7PJGWAoA21dhsacLKVU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=q+KQTbY7AWwekAk8LWpHL00PcpLqUrNr7udXTLQ4fzWkeZfhIRsoKJaDD0jdRI49f KKR/HGa2o+HGoZH65UhvCvzdyOeWK8fZbBijIzfXD5QpKsg5L2XTdNp35hUFpLoreC 5HBA0JoVd6bw6YA774RIIFL8wfQXC7cBmkVb9nC0= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCmCgu032397; Fri, 31 Aug 2018 07:48:12 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 07:48:11 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 07:48:11 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm3JM006892; Fri, 31 Aug 2018 07:48:09 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv2 2/4] ARM: dts: add support for individual build flags for DT subdirs Date: Fri, 31 Aug 2018 15:47:44 +0300 Message-ID: <1535719666-13595-3-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-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 Fri Aug 31 12:47:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145608 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp739513ljw; Fri, 31 Aug 2018 05:48:41 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4zp5PKZ3h1/7tRyi7XiAh3Hru/28uhjeM6EQjB7iUTI1MKCTGjXeSMD3DEvpaSXpkFt4i X-Received: by 2002:a17:902:1025:: with SMTP id b34-v6mr15424635pla.291.1535719721574; Fri, 31 Aug 2018 05:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535719721; cv=none; d=google.com; s=arc-20160816; b=ydOCflLoO30tylGCRJsumIGupBsQEw/g/qZ4xJ1EHIkTXutQKdbl+0mA8JGeO/fJW1 RSig8vYidatK2COEC1jDDd3w5fqYi8JHir+bMzLE4hxq9OIafbXXrrSGnnwkRq1P6TkJ 0bnDJozlGjn+T7QbUJ4tsZ/H0EBN1f6XNBMwaqyfKQkh/31kdORpLUEvHao8Cc3EIaJD BZtP503+ZxcwHgz7Iesvm4KRkO7q+3nogwlIiTL3Hm1S20bTrjDxG32rF56Khsg04vkV ES0uNQkQAKfwfbn2TKLA+ayELSFjlUyvvtoJZdBBY9fWxNCFCwCPd55ysGcq3C6fOofN 2s6g== 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=ybL1YDLgRRAn/llZx/fHkJUVihSn9WepSPS5TpsSMwOJi4IijRl3g2lK/A1qmzCdY5 y3LFWRGPOQM2Bn6GHVijUgTIUqyBmHjwazQpQw/fh9/qxLDABjbB+/ogw3+ILxpUIuHJ FZy4nLLuZyw4/G1AZYJc9pBLenHU/VHBrh0KAmPrdHo/txsO97zUiscOEBLHHsc9lLI7 ZfkbJ55Z5HpH4//22L1MiBNpkq6ygbXrKqpL1OmXxy1jgFBs2FN4FZgfvugZA8qslqmM fc8Xr77i2trV7Hwc+otyP3dUeWEC6y2XSEKci3d5R8MFVT1KhTROaRpwDB85JeL9LOre alhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y769nucz; 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 y10-v6si6451183pgk.672.2018.08.31.05.48.41; Fri, 31 Aug 2018 05:48:41 -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=y769nucz; 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 S1727868AbeHaQ4A (ORCPT + 6 others); Fri, 31 Aug 2018 12:56:00 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35202 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbeHaQ4A (ORCPT ); Fri, 31 Aug 2018 12:56:00 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7VCmEbb007920; Fri, 31 Aug 2018 07:48:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535719694; bh=/o489amQhfMPAZorotsIOjJTKzHH9qqbJWzIRwlFfGk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=y769nuczRMWM47QEWJkBejQ6kXUmQ0VYIc+TBcJkkh54D7zFesZn01gppquSp71Wd rr+19aocVmh3alW1+DjEOpC3I76GZHYc+ERBtgrylmN/sisY9BA3gs3nu1WaiJqQgE ZSobRnMTpKg6NCTMKZ9I47lugE63Q1yRrLg4/GaY= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCmEAB008310; Fri, 31 Aug 2018 07:48:14 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 07:48:14 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) 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; Fri, 31 Aug 2018 07:48:14 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm3JN006892; Fri, 31 Aug 2018 07:48:12 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv2 3/4] arm64: dts: add support for building DT overlays Date: Fri, 31 Aug 2018 15:47:45 +0300 Message-ID: <1535719666-13595-4-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-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 Fri Aug 31 12:47:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145604 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp739429ljw; Fri, 31 Aug 2018 05:48:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaICZygmoDX4EyYK8tFWgnZDC4SGahGbP0pBTJYdE3ysqKGhiMx88Uqwf0tW/tCPL8sva07 X-Received: by 2002:a63:4b1f:: with SMTP id y31-v6mr14089247pga.14.1535719716465; Fri, 31 Aug 2018 05:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535719716; cv=none; d=google.com; s=arc-20160816; b=wcW7Phmj3bL6ksQjWCTSm6T8KYVJ/V1yNtbKM/E4AFNU5CfALvokL6GH6nxrFheCuc 2dcCFQY03tZEDVmJaUKi/oYNsRYwIl3R8/coOunM9Ucyqg5k0GTt8n1iVy1fOTG//bps q/GAmEWY7sMXJ0ZpU9Kt7wItbYOkjwy+L4CbXR+4y/n+F43YB9Bd9cbQj5aCjAGsFYD7 kYxKZWMll7oYSN4Vda8z6r6+trVPZQSnedRrlCeCbQlhlOExH2OGOG8jq1J/H6VMvZUI hJeTuSgfo6PL5MRCFGQWE9xEF6WiAkvLXwVG2UUD/FMnuNdVpEyW+TJf5+5+uCt51+NY DkfQ== 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=rZYhg8SOKDYwFi6NT8L1hF4sEDIxav4rNE9hLC/7oTdEO6oxuTxcu9LvWnnQNARLO2 dJR+BspAHLkC2weLz35CiZGmLnyDV/pbi51kHSPXAlqc/jNZPR0It/k3gMVZCuxA+bVe +/3+YX2/rMh19ASWF3SPF76OwSuPpx6v+5q7fC3hUzV4WYulmAk94A6SMxqVkqdYzeng WAhK37bOLMDxGmNQhbED1LjRyIv0KSLSXyJm/M17zWShdcEYFsiPkQAPehBeEGeV3/YH MkB7cNO1t2hDZiclt9l/1kKzjZTTivNU35gzJT2wp17BwTxM0jhEJynnB8t1mRv5k/o6 /eSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fL360lPS; 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 y10-v6si6451183pgk.672.2018.08.31.05.48.36; Fri, 31 Aug 2018 05:48:36 -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=fL360lPS; 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 S1727881AbeHaQzz (ORCPT + 6 others); Fri, 31 Aug 2018 12:55:55 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:60434 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbeHaQzz (ORCPT ); Fri, 31 Aug 2018 12:55:55 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7VCmItk096977; Fri, 31 Aug 2018 07:48:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535719698; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fL360lPS1vp8LbCu8KoQJbBRyrS0c+uAi7Rt+YWZXW89q28zcO4kYyunRdpWt+8J1 +qAt/gFhrZn55aXrUSjLaA1ILjxbDbeC3OTCRGOO4tGPzyQEO8ZNUzp8BgpmNOqdvO BLV974XaOcoR35ba4OOnQyl9q5/dT0MSWQR/SLbw= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCmHAK032547; Fri, 31 Aug 2018 07:48:17 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 07:48:17 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 07:48:17 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm3JO006892; Fri, 31 Aug 2018 07:48:14 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Fri, 31 Aug 2018 15:47:46 +0300 Message-ID: <1535719666-13595-5-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-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