Received: by 10.223.185.116 with SMTP id b49csp6502447wrg; Thu, 8 Mar 2018 08:27:54 -0800 (PST) X-Google-Smtp-Source: AG47ELtA2FYiyYLnZdfP/iOoceDrNrkrPGEwC97vk80FWkR203PzHBLoMlO8R/j2KhfDB4NQBUoz X-Received: by 2002:a17:902:3a3:: with SMTP id d32-v6mr24580564pld.219.1520526473939; Thu, 08 Mar 2018 08:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520526473; cv=none; d=google.com; s=arc-20160816; b=QgC1EV48D/XF8AbkNFbuL2zmjSKjyMY2M5gR6Qbe6hjDeZB61t1b1a1FEy2gG9+V1r SE8exeKcdqRnBkauu6pQ80KChnd7vn/YwMBWRAXcpp7mdc74JhzzX/2jV1nt1V1Fg7C9 C2FD/nuKwREqOnbdTZN/hA4CcuUfDozTVX0y1oeP+xr3j6bcz3v6rcCagBeg8q3qkB4b Rb0vFr53ZbK7fFdsR9y+Uj/EP5SmE438u5dUtjYqO3Hl6CZlbX0dZ0tqGPrucNz2BSqT 9YsZuo8wRFLO1WBZmYHkogVJoEiRtIRjuuvRzms0EjXhOfUDGAgX8fyHQYWlAsJnMSFw FtxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=sYN8yyZMd+s4oQ3KWeLjJtovCobZzWv7+i7S6s7bkyI=; b=pZgW0YpStRTk/f3YPn8bIVdG6YfgwhxGAaqfjiiH4oiZlLsumyOGKjIYVOOyMHkWda dWgQuhyDNEOlSNyRgaqHaarCJrU7Xb4OCVFqqWQd6pX01WWOAeIWJSwk7eDPGZN7ws4W 3mxJyImDdTRkZvL6M1/CdN55RCgCsq6md3x85jDcs3gh24Wg/NFM4XAdm75nxo+DACGM 2tuhO8bJ8SxXmcIamQnazzxt+Uqb1x4oqCxMba0bKwCXTAyeF/YHMgbkFKSfBlZu3r24 jUD7tBriv4/5yrlxaFbSpqCeqGQJDC5A0Ida19G2a0jXMRoCnrltzf9GnK2bgsjMxK1Z 4i7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=cS2yT2LJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m123si13427318pgm.698.2018.03.08.08.27.38; Thu, 08 Mar 2018 08:27:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=cS2yT2LJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935856AbeCHQ0T (ORCPT + 99 others); Thu, 8 Mar 2018 11:26:19 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:65120 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933560AbeCHQ0O (ORCPT ); Thu, 8 Mar 2018 11:26:14 -0500 X-Greylist: delayed 27846 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Mar 2018 11:26:13 EST Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w28GPxgj020837; Fri, 9 Mar 2018 01:26:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w28GPxgj020837 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520526360; bh=sYN8yyZMd+s4oQ3KWeLjJtovCobZzWv7+i7S6s7bkyI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=cS2yT2LJoGUZFitXeTaQRUc68qsHABaszi7S3ed/P/XMbAW+R8d+pvzMx5i9iR6lc CKSkaHnPdaw3Djty8cCxgnUtmhWWpPdPHWNmzu+/644gfImPxfhVHb0IXGYuk7e/wI +fWkZMjqGybN0nqvbRgke6W6QW+uPFoHZFpNCVGoP/ntQ8lapo9FKccOTZedg67Erk AtAuvSr9q/MZAzsb9rQWtcm34bPQtkL9vU37aRC3Wg6BBo4mYNG5vTECeDLGS7V7rb dHZru59P9wq7DBEXFDIfYk1GKR6r/9r8PISe/vBXC505BCjIG5VUXEHhyBc4fY0ECF sm296dp5gMzKw== X-Nifty-SrcIP: [209.85.213.51] Received: by mail-vk0-f51.google.com with SMTP id s1so173990vke.5; Thu, 08 Mar 2018 08:26:00 -0800 (PST) X-Gm-Message-State: APf1xPD53EoXthvygahoxjPD2xwIwlur66Lp1+6VLRYzLtuQyXuerEah GTj4iSmmlYu0SI/njGets0FyMn1AOcYdtrYTl6Y= X-Received: by 10.31.201.70 with SMTP id z67mr18982925vkf.154.1520526358913; Thu, 08 Mar 2018 08:25:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Thu, 8 Mar 2018 08:25:18 -0800 (PST) In-Reply-To: <20180308110246.16639-1-jhogan@kernel.org> References: <20180308110246.16639-1-jhogan@kernel.org> From: Masahiro Yamada Date: Fri, 9 Mar 2018 01:25:18 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: Handle builtin dtb file names containing hyphens To: James Hogan Cc: Linux Kernel Mailing List , Rob Herring , Michal Marek , Ralf Baechle , Florian Fainelli , Kevin Cernekee , devicetree@vger.kernel.org, Linux Kbuild mailing list , Linux-MIPS , stable 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 2018-03-08 20:02 GMT+09:00 James Hogan : > cmd_dt_S_dtb constructs the assembly source to incorporate a devicetree > FDT (that is, the .dtb file) as binary data in the kernel image. This > assembly source contains labels before and after the binary data. The > label names incorporate the file name of the corresponding .dtb file. > Hyphens are not legal characters in labels, so .dtb files built into the > kernel with hyphens in the file name result in errors like the > following: > > bcm3368-netgear-cvg834g.dtb.S: Assembler messages: > bcm3368-netgear-cvg834g.dtb.S:5: Error: : no such section > bcm3368-netgear-cvg834g.dtb.S:5: Error: junk at end of line, first unrecognized character is `-' > bcm3368-netgear-cvg834g.dtb.S:6: Error: unrecognized opcode `__dtb_bcm3368-netgear-cvg834g_begin:' > bcm3368-netgear-cvg834g.dtb.S:8: Error: unrecognized opcode `__dtb_bcm3368-netgear-cvg834g_end:' > bcm3368-netgear-cvg834g.dtb.S:9: Error: : no such section > bcm3368-netgear-cvg834g.dtb.S:9: Error: junk at end of line, first unrecognized character is `-' > > Fix this by updating cmd_dt_S_dtb to transform all hyphens from the file > name to underscores when constructing the labels. > > As of v4.16-rc2, 1139 .dts files across ARM64, ARM, MIPS and PowerPC > contain hyphens in their names, but the issue only currently manifests > on Broadcom MIPS platforms, as that is the only place where such files > are built into the kernel. For example when CONFIG_DT_NETGEAR_CVG834G=y, > or on BMIPS kernels when the dtbs target is used (in the latter case it > admittedly shouldn't really build all the dtb.o files, but thats a > separate issue). > > Fixes: 695835511f96 ("MIPS: BMIPS: rename bcm96358nb4ser to bcm6358-neufbox4-sercom") > Signed-off-by: James Hogan > Reviewed-by: Frank Rowand > Cc: Rob Herring > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: Ralf Baechle > Cc: Florian Fainelli > Cc: Kevin Cernekee > Cc: devicetree@vger.kernel.org > Cc: linux-kbuild@vger.kernel.org > Cc: linux-mips@linux-mips.org > Cc: # 4.9+ > --- > Changes in v2: > - Rewrite commit message (thanks Frank for some improved wording). > - Add Franks' reviewed-by. Applied to linux-kbuild/fixes. Thanks! -- Best Regards Masahiro Yamada