Received: by 10.223.185.116 with SMTP id b49csp5627292wrg; Wed, 7 Mar 2018 15:20:44 -0800 (PST) X-Google-Smtp-Source: AG47ELuQuraNbaI8lnjWmMfHLxofISmztHxLOke/vz4U/J+v5UNOBPLMkY0vs91ZfeWfco/T/L8P X-Received: by 10.99.97.68 with SMTP id v65mr19645125pgb.104.1520464844066; Wed, 07 Mar 2018 15:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520464844; cv=none; d=google.com; s=arc-20160816; b=sZhTTVkgg8FeO3/KVHZ8+eM6mld04r3jUH0Gq40Bjmu54sTRK00+2uyugUwRxAPyiR ZPI13VuJXWOf0+AwIi8dNpvpKXXdPKCyTs6JTCs1EdXNpO1npno5EqqjDT7VYOaX3IMG dykWeEqjpbTvmcOadGFefLgWWlv6bTh/jM6WseDWbcNMAOAp5isPJdL5XxgCMkjQHHg7 hlYrFZ6XXzoJ5Xwh4+wcitFDsXaZPMiQzXSPQlPsHybXnpNwKra9nftMl+7+gYd2Fdi5 sFcJf5Z4CLRxIh85Vq9XFapBna//Rsm3bVOutdIODXzfNfnMOVlH80aP6S4P9AosunC+ 1FWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ShNWCl2dpmJtgpAaL3gr3WYKQQAQ9XTrwgYXR690Ph8=; b=po6ihHk4os7ooELTgp9FHpXIt1T5S1g1eK6b1N0MuMsMiMk9t15T6uPoqs7aH+G2Q5 LVaxfX9/vUfCyIJLWeplJum2uKld0VyE2E9nZW1pjaOIFHSx4ku6hEQ3xbeZTj6ImNzd hiiGLAnMndG5lotKCfOsxX+Rp8Z94AJDaI73DBr3Ugcmts81Wqqj8Ccj8fsfcl3TIOcY FxAHt6/nxhg1YzxRT8VSURs+jH7JP57ZUM2skNsTeVBAL47T1qYxFwOaaWgb5+J/3H/g qeagJ+CvRM+wAFxmwOhnFbT0h1vDplq3VMBSwXPCem0XjDtKQHedxh8BHuMMRYGWkneZ jE0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hNnJ4ScS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l61-v6si13648530plb.95.2018.03.07.15.20.28; Wed, 07 Mar 2018 15:20:44 -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=@gmail.com header.s=20161025 header.b=hNnJ4ScS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934289AbeCGXTQ (ORCPT + 99 others); Wed, 7 Mar 2018 18:19:16 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38253 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500AbeCGXTO (ORCPT ); Wed, 7 Mar 2018 18:19:14 -0500 Received: by mail-pf0-f194.google.com with SMTP id d26so1583412pfn.5; Wed, 07 Mar 2018 15:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ShNWCl2dpmJtgpAaL3gr3WYKQQAQ9XTrwgYXR690Ph8=; b=hNnJ4ScSh6E7TwM4oRY9vewLesBJG2GhWnMxvxZMBwhaZJlu+8dcolFqH5+xQppX2J kIHYbQ+qAw70Fh7gdZpb7qUH2Ts526Z2AitaRkAggBY30NpxaAiDGlevx5kOODkmjODv erQ+nCqmrYeaGKrk6Nea7FVsZEBaOsJKOHZ75Rqx2u6NuJOLCjpa97FEmePce7qFYMId ZoIHw5nkgzA8niHud7bMkIW91UI+G/XKsRaRWQeSP+5tsbbXsJM4yMODSPFVoo1gvpOK HJBs0s7vlk7EfFnhmgKzyc1VGWMpMTrVTyCnu2CfgR9crvCKKYWSznhSqemWG6hEiwx9 UYjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ShNWCl2dpmJtgpAaL3gr3WYKQQAQ9XTrwgYXR690Ph8=; b=nXh/Ghsj+InXZjly5gp0hdZZcuLGGeMsTDDPSSXqBImsnjchANyWuLkmvttmZhrc+7 idihZT85+ffWO/8i5ZjELhutRgUWjoSD2+fTQuPRGnfRfs9aSXEcsCnH4E8ihE+wd9E2 /+MLoFo/YsiTkajuH4Pmq3MaZxaZ6vTWzE8/7HnWIRZmHM/BdB6w30hmLFiNg3m8cqSv 7Qaeyg/dZeTpZoEj/YUgA6CUivb4WNZlRMMztQboqD1Lk6/8ohlCGG8PfrlAqwWajSve 4CwU/7GVHjQ8otKxNcAKxOujOYv1rplbNCCEs4P5BTF1jFrwLs1GhlboD64rRy/O8oq2 z34Q== X-Gm-Message-State: APf1xPBtRtmkwRdONQuU/u8GUZV6CrIig220pl/3wJ7yT0dx1Rfjsx1V S4WR2aNHi4zTuJJ9/YFtoSe2WGuB X-Received: by 10.98.137.147 with SMTP id n19mr24491056pfk.193.1520464753087; Wed, 07 Mar 2018 15:19:13 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id z128sm27263893pfb.98.2018.03.07.15.19.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 15:19:12 -0800 (PST) Subject: Re: [PATCH] kbuild: Handle builtin dtb files containing hyphens To: James Hogan Cc: linux-kbuild@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Masahiro Yamada , Michal Marek , Ralf Baechle , Florian Fainelli , Kevin Cernekee , linux-mips@linux-mips.org, stable@vger.kernel.org References: <20180307140633.26182-1-jhogan@kernel.org> <7ecea7ca-2931-16bc-a110-1ecdaf17f0f2@gmail.com> <20180307202511.GT4197@saruman> From: Frank Rowand Message-ID: Date: Wed, 7 Mar 2018 15:19:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180307202511.GT4197@saruman> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/18 12:25, James Hogan wrote: > On Wed, Mar 07, 2018 at 12:11:41PM -0800, Frank Rowand wrote: >> I initially misread the patch description (and imagined an entirely >> different problem). >> >> >> On 03/07/18 06:06, James Hogan wrote: >>> On dtb files which contain hyphens, the dt_S_dtb command to build the> dtb.S files (which allow DTB files to be built into the kernel) results> 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 `-' >> Please replace the following section: >> >>> This is due to the hyphen being used in symbol names. Replace all >>> hyphens >>> with underscores in the dt_S_dtb command to avoid this problem. >>> >>> Quite a lot of dts files have hyphens, but its only a problem on MIPS >>> where such files can be 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 admitedly shouldn't really build all the >>> dtb.o files, but thats a separate issue). >> >> with: >> >> 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 transform all >> hyphens from the file name to underscores when constructing the labels. > > Thanks, that is clearer. > > I'll keep the paragraph about MIPS and the example configuration though, > as I think its important information to reproduce the problem, and to > justify why it wouldn't be appropriate to just rename the files (which > was my first reaction). Other than the part that says "its only a problem on MIPS". That is pedantically correct because no other architecture (that I am aware of, not that I searched) currently has a devicetree source file name with a hyphen in it, where that file is compiled into the kernel as an asm file. But it is potentially a problem on any architecture to it is misleading to label it as MIPS only. > >> Reviewed-by: Frank Rowand > > Thanks > James >