Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp703470pxu; Wed, 6 Jan 2021 01:58:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMOdyZajaFOIYtiXGhrxbsBPxkOKVjLNF5HUVyssv1utGhuwROKeA6Iu1xgSLpwtPZiJ4d X-Received: by 2002:aa7:cf8f:: with SMTP id z15mr3489874edx.17.1609927096890; Wed, 06 Jan 2021 01:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609927096; cv=none; d=google.com; s=arc-20160816; b=eVnuuKMtmd8VZ3UJlkhToFbJJiGt0fsPorDZZnHHfYWiJ4Os0gukvHOHV9248k+5yq T31Pn5bvYeyBqwqVgi6luAicowA55QQUbLD35pSxVKcJVIM8WrtvHKJymT4o1KP0Ere4 8PIYhxTk4bSe6KP+qVJPHEE0juWihxmVJjoCh9aauuys/41WWQI+qJnZaFavwbmD7IlC CkJPvzbt+g3VfOK5ekPlgdrbkNhl4KY7lxIUgMWsAR/LBL+uvdNt1CzIZItaBh79fM+t bLXnPXKB2Q972vLPxSfjKv30huDmPHRDgjhnLXsZ5JZ/Ll+Ygk+08erGMdBYYsWEgMq2 mgvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rDsopHKKF607Xe9UdumCtEOjuD6D8IDJARDfhwx961A=; b=HhsZ5/zKmVfvezH/jVGKHs9z/HrGJdDqFOC8E2BX4M9Lsy1FRDDLg2F1ECH9UCR5iw hK/dsaP/9mPrvyz9ijW7kvbJh//UcF+Gv1NU0NWdH4zJCZiqrvMiNdvC6y6p1vRr7Ytv RHiS+afULATDQZpCC2gjUrZyXrsfLZmzxYLXM6ntabpgz3AG3a8WIlhttMyUKWYxHJ/w B1hN7jMV7I2NHfqy0VDpvwoY1wmtUDCf7AhcghjxV37Jutcv2O1GEXmEUFtM1c4ac2ax sZ8zj+huhjwwDC07klxt+QeWTM4liQuPWH5dvplDYB/eJ/vuaY3MPnxVcDadwgyHPNbA UhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UjuHEcbW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si689993ejc.181.2021.01.06.01.57.52; Wed, 06 Jan 2021 01:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UjuHEcbW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbhAFJ4x (ORCPT + 99 others); Wed, 6 Jan 2021 04:56:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbhAFJ4w (ORCPT ); Wed, 6 Jan 2021 04:56:52 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E4FC06134C for ; Wed, 6 Jan 2021 01:56:12 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 30so1887932pgr.6 for ; Wed, 06 Jan 2021 01:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rDsopHKKF607Xe9UdumCtEOjuD6D8IDJARDfhwx961A=; b=UjuHEcbWMscc6ZSzJ7TDd9JJCm9n4VnkUlStwKAOguAfU/sdlDko1X3O+Il4eCep64 FNMBnXnaqWF67HUYimnCpXImAWJEkzwV+MWbkc17EMYL/ea/G0B7hQKxtdi0sFF/Tj9z x1s3BUdje4Kfc+9MTTJJ78IS/4DaKLqeElEJmfF7jxQl0iH1ydnzMOtNc5BcXAx/Jh93 6LbgWt66T3Y4Rhhp7pHYyArPqqYNwV8Dnqo+HhnJR2q01PGJt0ODj9fZl6aY/jhAOHy+ ndgOm1QUNwCgNMmYCzipR+WychdTi4aVTigrqsMZlXe77hrmyz0iwJUgvV99SwM9m2gb OSsA== 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:mime-version :content-transfer-encoding; bh=rDsopHKKF607Xe9UdumCtEOjuD6D8IDJARDfhwx961A=; b=abYtioZrGm/Qmdh8arKMzzS4I5jgOXlONbkYt6P3yFz4mN6xaBLtfNtKZU4txK61uv DvZEHBNYYQUmthIzXoy4bCImVz67h97aF/PoOStifIYfFyCl8l4iKPUV+pVArffcXl43 vtS9thMlM6+JmaKP4/wr0rjCpLEjbtoZN879ouy6gJIiLS8uqP4o7015eFe+Hse1835G XqYCcFIXY2VHLDjom/hv/bWoO1+Z0txe149C02GM3AxKqr7u8kkpF6HpkNDI19T6Sre0 wGwc5iffAQ09HbTd6FKC6XpGwlUSig8lNOo8khezG40yRnkk3BegnlLbwb/5DFpMZsSH sq7w== X-Gm-Message-State: AOAM5313hdDEREUrQYBrXHHD1FmYSkoJaok5jn7YFxkojocz8KBJCoFv nFktUST+Wtyyv+AYMD22EAFhcA== X-Received: by 2002:a65:5244:: with SMTP id q4mr3762581pgp.50.1609926972231; Wed, 06 Jan 2021 01:56:12 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id e5sm1963171pfc.76.2021.01.06.01.56.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 01:56:11 -0800 (PST) From: Viresh Kumar To: devicetree-compiler@vger.kernel.org, David Gibson Cc: Viresh Kumar , Pantelis Antoniou , Frank Rowand , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , Bill Mills , anmar.oueja@linaro.org Subject: [PATCH] dtc: Allow overlays to have .dtbo extension Date: Wed, 6 Jan 2021 15:26:08 +0530 Message-Id: <30fd0e5f2156665c713cf191c5fea9a5548360c0.1609926856.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow the overlays to have .dtbo extension instead of just .dtb. This allows them to be identified easily by tools as well as humans. Allow the dtbo outform in dtc.c for the same. Signed-off-by: Viresh Kumar --- Hello, This was earlier posted for the Linux Kernel and here is the thread where Rob gave his feedback: https://lore.kernel.org/lkml/CAL_Jsq+0dL=LHo8r9mY_weBP_bQ97UOBnt596J3JoVHwGNinHA@mail.gmail.com/ --- dtc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dtc.c b/dtc.c index bdb3f5945699..838c5df96c00 100644 --- a/dtc.c +++ b/dtc.c @@ -122,6 +122,8 @@ static const char *guess_type_by_name(const char *fname, const char *fallback) return "dts"; if (!strcasecmp(s, ".yaml")) return "yaml"; + if (!strcasecmp(s, ".dtbo")) + return "dtb"; if (!strcasecmp(s, ".dtb")) return "dtb"; return fallback; @@ -357,6 +359,8 @@ int main(int argc, char *argv[]) #endif } else if (streq(outform, "dtb")) { dt_to_blob(outf, dti, outversion); + } else if (streq(outform, "dtbo")) { + dt_to_blob(outf, dti, outversion); } else if (streq(outform, "asm")) { dt_to_asm(outf, dti, outversion); } else if (streq(outform, "null")) { -- 2.25.0.rc1.19.g042ed3e048af