From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbdDLBik (ORCPT ); Tue, 11 Apr 2017 21:38:40 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:34096 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564AbdDLBih (ORCPT ); Tue, 11 Apr 2017 21:38:37 -0400 Date: Tue, 11 Apr 2017 18:38:34 -0700 From: Matthias Kaehlcke To: Masahiro Yamada Cc: Tony Luck , Fenghua Yu , Michal Marek , Jan Kiszka , Kieran Bingham , Andrew Morton , Linux Kernel Mailing List , linux-ia64@vger.kernel.org, Linux Kbuild mailing list , Grant Grundler , Michael Davidson , Greg Hackmann Subject: Re: [PATCH] kbuild: Consolidate header generation from ASM offset information Message-ID: <20170412013834.GE28657@google.com> References: <20170403193739.84905-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, El Wed, Apr 12, 2017 at 09:03:28AM +0900 Masahiro Yamada ha dit: > 2017-04-04 4:37 GMT+09:00 Matthias Kaehlcke : > > Largely redundant code is used in different places to generate C headers > > from offset information extracted from assembly language output. > > Consolidate the code in a Makefile include and use this instead. > > > > Signed-off-by: Matthias Kaehlcke > > > Please move sed-y and filechk_offsets to scripts/Makefile.lib . > (You may need to rename sed-y > because arch/xtensa/kernel/Makefile uses this name.) > > > We see various helpers in scripts/Makefile.lib, > so I do not think we need to create a new file just for this one. > > Then, please reuse it from arch/ia64/kernel/Makefile and scripts/mod/Makefile. > Like this: > > include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s FORCE > $(call filechk,offsets,__ASM_NR_IRQS_H__) > > $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE > $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__) Thanks for your comments, I'll rework the patch accordingly. Cheers Matthias