From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48CADA052A; Tue, 2 Feb 2021 12:36:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33189240295; Tue, 2 Feb 2021 12:36:52 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id 452FF24026F for ; Tue, 2 Feb 2021 12:36:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612265809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2QJ/lQ20cAuGoayBQNkJvWgj/txgQiNQL/Bht20XMv4=; b=dxaWZ62ldFCstTK2l+cLTRt/lNIPecL5ML9PIDC0i+82LuU6lW+cay167AM81NtUHC5Eme ixZpO9kbxF+n+3Ps/mXk/7BCKDf53hoSXamxFfEUF3oQwQiu9hgYuXrjmetXHZQ2AdOvAq KwsJCFRu7Znrq2maY623dsqSxYHu454= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-526-GvW9Pe0WM_SM2lJ3ViP5Mw-1; Tue, 02 Feb 2021 06:36:46 -0500 X-MC-Unique: GvW9Pe0WM_SM2lJ3ViP5Mw-1 Received: by mail-ua1-f70.google.com with SMTP id c18so6450228uao.20 for ; Tue, 02 Feb 2021 03:36:46 -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=2QJ/lQ20cAuGoayBQNkJvWgj/txgQiNQL/Bht20XMv4=; b=o0O7xvbaVfJbD0Ynwqldr75ioUSi8RUXb9Zp6v3t3NDRt2N2+/ZWzMnqOWmph4lN8q ezCF0xydDMbvwvbaGDsmRySl7P54IWVoIf4sSUVC2X4q04PuKPVifvMYuROMGZ6Zrw4X KNfnvr0pQOaTgtUZ+k61SzDiNR5M/XJjXg8uG/C3a+W3n7LQT/TzuZedowYJ1rYHQTTL mv99cQ3iK/hPRxiUL8+VeSzNQobzhcilCrxKPbZZbjZIK3gJWcJjsBcBjNj0TviyHsuF 6ZCP36qmXbnpr14XpiPoTLl1tdc+rW6dDU9uosQYh9l14+bQ1vxYT/o1gAjXohbYcGzy LvfA== X-Gm-Message-State: AOAM5310DTZPPzbDYe6fyeB33Wlp+mWz4iUymORErZuDBfEf5QMUSsXE qGI5euDnUf9IoIiAsNbikpnOAoED8LBz7W3Xk3r002ugUnrxlfm06En5e9rB30DSpnZ/+V7TGeP /T9ewAW5VlvCec8hO14o= X-Received: by 2002:ab0:310a:: with SMTP id e10mr11280020ual.126.1612265806189; Tue, 02 Feb 2021 03:36:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlWW//9qcy4RIGyyXaL1ZDJvuQ2gyG3cEadLIY1bFFis0h0Iz6B0OhtuocyRHmHiBu4uMt1n1QTMBLw/WRLTY= X-Received: by 2002:ab0:310a:: with SMTP id e10mr11280013ual.126.1612265805986; Tue, 02 Feb 2021 03:36:45 -0800 (PST) MIME-Version: 1.0 References: <20210114110606.21142-1-bruce.richardson@intel.com> <20210129164823.3205861-1-bruce.richardson@intel.com> <20210129164823.3205861-9-bruce.richardson@intel.com> In-Reply-To: <20210129164823.3205861-9-bruce.richardson@intel.com> From: David Marchand Date: Tue, 2 Feb 2021 12:36:34 +0100 Message-ID: To: Bruce Richardson Cc: dev , Thomas Monjalon Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v7 08/10] buildtools/chkincs: add app to verify header includes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Jan 29, 2021 at 5:49 PM Bruce Richardson wrote: > diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build > new file mode 100644 > index 0000000000..f345e87551 > --- /dev/null > +++ b/buildtools/chkincs/meson.build > @@ -0,0 +1,36 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +# Copyright(c) 2021 Intel Corporation > + > +if not get_option('check_includes') > + build = false > + subdir_done() > +endif > + > +if is_windows > + # for windows, the shebang line in the script won't work. > + error('option "check_includes" is not supported on windows') > +endif > + > +gen_c_file_for_header = find_program('gen_c_file_for_header.py') > +gen_c_files = generator(gen_c_file_for_header, > + output: '@BASENAME@.c', > + arguments: ['@INPUT@', '@OUTPUT@']) > + > +cflags = machine_args > +cflags += '-Wno-unused-function' # needed if we include generic headers With http://patchwork.dpdk.org/patch/87567/, we have no direct inclusion of the generic headers remaining. This flag could be removed. WDYT? > +cflags += '-DALLOW_EXPERIMENTAL_API' > + > +sources = files('main.c') > +sources += gen_c_files.process(dpdk_chkinc_headers) > + -- David Marchand