From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73726C282CD for ; Mon, 28 Jan 2019 15:44:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A488214DA for ; Mon, 28 Jan 2019 15:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbfA1PoE (ORCPT ); Mon, 28 Jan 2019 10:44:04 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:42456 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbfA1PoB (ORCPT ); Mon, 28 Jan 2019 10:44:01 -0500 Received: by mail-vs1-f66.google.com with SMTP id b74so9969091vsd.9; Mon, 28 Jan 2019 07:44:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x2wa+K5YNPI9+zY5xomP72xSduPXvimTTHXp1XsjO7E=; b=Lcwew0REURerg7vQiHlKSAZpMK1SyOMljwGAXArOREXQHOEFDGeiV56Ypmd35wKnBN yzpHg3iJ+N/lSDrkM5J5x4ClZHg6Dns5g7/blQAYkcfUoZLpiRT2vlnYz135KX7CBLv9 ZbJUXQ24iwW6lthTgAz65oVe4yVFiEv8zNLsPoGNGvctGaKzp7tyVE3gQHB9k0hB1QvM JOVmI9vaOEpjAKxb/F1Fd6Wxp35uCg9CLz58jdVAx2HIEAXVHT7SX5K4ssdq4Q2ldOV+ JII1BM8lVDRee9hbYA3XpfDjEbdzQo8M2Ya/61sZoaM51VKBgJYKmUIHi8KsLBpzxm+p NThg== X-Gm-Message-State: AHQUAuYxH0IT5vLG1UCJRQJAVTgffemxwbOSFFrrwegZ+fVca9OaAsXn izSuW4c1zUfJiXZckhjm0RH6BRL3XQkEOktk1NI= X-Google-Smtp-Source: AHgI3IaCNqFqxYF5jcFRcCRr3F8u3p45e8vOxEGJ+OqOd1kuIKX0RovOS/tgzMJSBqB2qpmVtJ11sRlLqYSVlIaIAgE= X-Received: by 2002:a67:c202:: with SMTP id i2mr148070vsj.11.1548690240249; Mon, 28 Jan 2019 07:44:00 -0800 (PST) MIME-Version: 1.0 References: <20181211202406.27721-1-robh@kernel.org> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 28 Jan 2019 16:43:47 +0100 Message-ID: Subject: Re: [PATCH v4] kbuild: Add support for DT binding schema checks To: Rob Herring Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Masahiro Yamada , Sean Hudson , Frank Rowand , Linux ARM , linuxppc-dev , Grant Likely , Kumar Gala , arm-soc , Jonathan Corbet , Mark Rutland , Michal Marek , "open list:DOCUMENTATION" , linux-kbuild Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Mon, Jan 28, 2019 at 4:35 PM Rob Herring wrote: > On Mon, Jan 28, 2019 at 3:43 AM Geert Uytterhoeven wrote: > > On Tue, Dec 11, 2018 at 9:24 PM Rob Herring wrote: > > > This adds the build infrastructure for checking DT binding schema > > > documents and validating dts files using the binding schema. > > > > > > Check DT binding schema documents: > > > make dt_binding_check > > > > > > Build dts files and check using DT binding schema: > > > make dtbs_check > > > > > > Optionally, DT_SCHEMA_FILES can be passed in with a schema file(s) to > > > use for validation. This makes it easier to find and fix errors > > > generated by a specific schema. > > > > > > Currently, the validation targets are separate from a normal build to > > > avoid a hard dependency on the external DT schema project and because > > > there are lots of warnings generated. > > BTW, what are the CONFIG dependencies for this to work? > > E.g. defconfig on x86_64 fails, even after enabling CONFIG_OF: > > I generally use allmodconfig which enables building all DTs. > > Yes, there's a dependency on CONFIG_DTC which isn't always enabled > with CONFIG_OF. Maybe it should be. The only other solutions I've Oh, didn't think of CONFIG_DTC. > thought of are either always build dtc or make the targets conditional > on CONFIG_DTC. The latter would only change the error message. Making the target conditional may make it more obvious to the user what's going on. Cfr. "make modules_install" giving a nice explanation when CONFIG_MODULES=n. Thanks. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds