Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1084283pxk; Fri, 25 Sep 2020 05:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3wEBitXmoqlGCkNtloi+ZFQsBmGLtr/kRzKpM+TC82/o29g91tZ/O6Uu9wqbWZcYTLhdW X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr2642667ejg.477.1601038733432; Fri, 25 Sep 2020 05:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038733; cv=none; d=google.com; s=arc-20160816; b=zEm25e2OO0Olat4fflF+fkUAsulPsEoUotHW+1sHMul5AFy3tHhg0iaX+WVFCmWMJo nT8Lsl1GgnnaVS4AZCRrlXBlC2AzcWTt6mWEcgJ7ix3ZLFwkvBvxFBtanQ+HXA4zWOW8 Ec+6tPCq1UEueJmlvpPRucDlkpus65fSZZa3SG9lCqW11sTAwQWNcv2vwPIYidxkttH2 Fv+soG3EJ2SQNmChOaGvqVrHhCxwZNfaKh92zdFs5tXI2WgHzbOS/uwJql1ZIdIs6T22 V1+IMg8Kobf6yMhRgz3W+XaiSKkeAP+VmOMMC/gba7dOiPdSdRDsKCzs4uonLyyTT/WG JdAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/loWVlNfx9GWhroDZNX52c83HmsghALAcuJLKRr8ocE=; b=DO9k7NsvA7ZxlwjLrw6Ddu6FcVoYxywcHkcFB4qtdsZRkWhhZoyrojOGSjmL5JoG51 2S/O+wgSPGuQcZFJrVnn/+p6ZOG6JHYYTBqAHj+2NStiKD6uWvN2q4WpypL7lFCshpEX 1iJrQzCpx2U3xARKQ8sR9O5V4hImEv3cObShSIIPX2K4SvQ3L3jXKQp9bLPpD6rIWaUS UQMK/WBlPIEamTbcowCY4qFa+4eZ9noA+7eOa9JtrrL44lSISeigjDUXslICQezfZeqA zc9u7NkgpezNqG958IyoIcye5Ir4qn1pZwe/3rtQL2D8/rXUsjLUwG04ueFq98PZY2KJ BRXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BvYUK+mM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg11si1750323ejb.700.2020.09.25.05.58.30; Fri, 25 Sep 2020 05:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BvYUK+mM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729196AbgIYMyc (ORCPT + 99 others); Fri, 25 Sep 2020 08:54:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:33066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbgIYMya (ORCPT ); Fri, 25 Sep 2020 08:54:30 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F9B12072E; Fri, 25 Sep 2020 12:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601038469; bh=BCRCOnBkP+kbp3E2j/Kn4U87LLVqgOdCdOC7/qrITYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BvYUK+mMVH0/Hb8NGIpdHsSawPmeVew3UmFzmB69e2rAbOc+CzKgApRfx1mjGqYi3 fmS6gcS4UPAfLQDZICiL8ekpPpWFwN55ZkpoZPUXokjLljYeY42FzoFNH8CvJ4LTDj RyS7dJvzi8a3iSNE8hufJKG7Z+ojVGH3q84uJLdc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Nick Desaulniers Subject: [PATCH 4.19 29/37] net: wan: wanxl: use $(M68KCC) instead of $(M68KAS) for rebuilding firmware Date: Fri, 25 Sep 2020 14:48:57 +0200 Message-Id: <20200925124725.338946106@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925124720.972208530@linuxfoundation.org> References: <20200925124720.972208530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada commit 734f3719d3438f9cc181d674c33ca9762e9148a1 upstream. The firmware source, wanxlfw.S, is currently compiled by the combo of $(CPP) and $(M68KAS). This is not what we usually do for compiling *.S files. In fact, this Makefile is the only user of $(AS) in the kernel build. Instead of combining $(CPP) and (AS) from different tool sets, using $(M68KCC) as an assembler driver is simpler, and saner. Signed-off-by: Masahiro Yamada Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- drivers/net/wan/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/wan/Makefile +++ b/drivers/net/wan/Makefile @@ -41,16 +41,16 @@ $(obj)/wanxl.o: $(obj)/wanxlfw.inc ifeq ($(CONFIG_WANXL_BUILD_FIRMWARE),y) ifeq ($(ARCH),m68k) - M68KAS = $(AS) + M68KCC = $(CC) M68KLD = $(LD) else - M68KAS = $(CROSS_COMPILE_M68K)as + M68KCC = $(CROSS_COMPILE_M68K)gcc M68KLD = $(CROSS_COMPILE_M68K)ld endif quiet_cmd_build_wanxlfw = BLD FW $@ cmd_build_wanxlfw = \ - $(CPP) -D__ASSEMBLY__ -Wp,-MD,$(depfile) -I$(srctree)/include/uapi $< | $(M68KAS) -m68360 -o $(obj)/wanxlfw.o; \ + $(M68KCC) -D__ASSEMBLY__ -Wp,-MD,$(depfile) -I$(srctree)/include/uapi -c -o $(obj)/wanxlfw.o $<; \ $(M68KLD) --oformat binary -Ttext 0x1000 $(obj)/wanxlfw.o -o $(obj)/wanxlfw.bin; \ hexdump -ve '"\n" 16/1 "0x%02X,"' $(obj)/wanxlfw.bin | sed 's/0x ,//g;1s/^/static const u8 firmware[]={/;$$s/,$$/\n};\n/' >$(obj)/wanxlfw.inc; \ rm -f $(obj)/wanxlfw.bin $(obj)/wanxlfw.o