From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754005AbdHURMz (ORCPT ); Mon, 21 Aug 2017 13:12:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:38580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753407AbdHURMx (ORCPT ); Mon, 21 Aug 2017 13:12:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9036E21A2C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org MIME-Version: 1.0 In-Reply-To: <1503132577-24423-4-git-send-email-yamada.masahiro@socionext.com> References: <1503132577-24423-1-git-send-email-yamada.masahiro@socionext.com> <1503132577-24423-4-git-send-email-yamada.masahiro@socionext.com> From: Rob Herring Date: Mon, 21 Aug 2017 12:12:31 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 3/3] kbuild: generate *.tab.c and *.tab.h during build To: Masahiro Yamada Cc: Sam Ravnborg , Michal Marek , Linus Torvalds , Linux Kbuild mailing list , "devicetree@vger.kernel.org" , Jonathan Corbet , Richard Purdie , Greg Kroah-Hartman , Andrew Morton , Mauro Carvalho Chehab , Nicholas Piggin , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , SeongJae Park , Frank Rowand , "Yann E. MORIN" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 19, 2017 at 3:49 AM, Masahiro Yamada wrote: > *.tab.[ch] files are artifacts generated from *.y by using bison. > Instead of running bison, we conventionally version-control > *.tab.[ch]_shipped files and copy them to *.tab.[ch] during build. > > It is true that this approach can minimize external tool dependency, > but we need to update the shipped files from time to time. This > commit switches to build-time generation of the intermediate C files. When do we need to update them? > > Signed-off-by: Masahiro Yamada > --- > > Documentation/process/changes.rst | 12 + > scripts/Makefile.lib | 14 +- > scripts/dtc/Makefile | 9 +- > scripts/dtc/dtc-parser.tab.c_shipped | 2303 ------------------------------- > scripts/dtc/dtc-parser.tab.h_shipped | 125 -- The script to import dtc normally creates these. If you change this, please make sure the script still works. > scripts/genksyms/Makefile | 5 +- > scripts/genksyms/parse.tab.c_shipped | 2394 -------------------------------- > scripts/genksyms/parse.tab.h_shipped | 119 -- > scripts/kconfig/Makefile | 2 +- > scripts/kconfig/zconf.tab.c_shipped | 2471 ---------------------------------- > 10 files changed, 24 insertions(+), 7430 deletions(-) > delete mode 100644 scripts/dtc/dtc-parser.tab.c_shipped > delete mode 100644 scripts/dtc/dtc-parser.tab.h_shipped > delete mode 100644 scripts/genksyms/parse.tab.c_shipped > delete mode 100644 scripts/genksyms/parse.tab.h_shipped > delete mode 100644 scripts/kconfig/zconf.tab.c_shipped >