From patchwork Tue Mar 24 16:15:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 221959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, UPPERCASE_50_75, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C415C2BAEE for ; Tue, 24 Mar 2020 16:15:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 12E0320774 for ; Tue, 24 Mar 2020 16:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585066557; bh=fA1JJKMofWJEx5DohIMNQeXpdvtKHYgV6SRUsJoXH6I=; h=From:To:Cc:Subject:Date:List-ID:From; b=2H4hZW2fqiWqj27lYaJaRruljq2UQhT8iRSrg8jvIUUlzFBe0hHBMp/bTncoU9cdO Iae7EtQuBN3vUu873t/GO2HUD1v4QdniPxCyWVkyGGTzi95lIpWRmp4WXkDahbJXuP XE8UTqat2Zi03FX3Ll7w/xEif4Q41ILxTMcJ7Jb4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727873AbgCXQPz (ORCPT ); Tue, 24 Mar 2020 12:15:55 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:42697 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbgCXQPy (ORCPT ); Tue, 24 Mar 2020 12:15:54 -0400 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-12.nifty.com with ESMTP id 02OGFI4f014851; Wed, 25 Mar 2020 01:15:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 02OGFI4f014851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1585066519; bh=iERwpFIUsMeWrqbzCfka8i/KOvDD+eMi426uZLpMpHs=; h=From:To:Cc:Subject:Date:From; b=HXOoZPB4Hwl4LYPMuSbWnvmygN12M5DXYXftprC3eIeSln7gRtCZvphhqcjYmhId/ xVAFwaTJkW1Xg536IDeBxSf54E5fj+SGrgnTaQLUvqGIAng52OBY9HYgw1HcSY5aNv jvB3y1Is+Sopc753kBeDlig5tJiY3fvZZjZnKO0mlcbUy5S10OtXwR2H5yX6dzam8i aEg0V8TFeH7F9ylI5yo4UtybZ9lBmF4xcUAXrsULI/Bzqg0m3MICo5pmHcJpMgmjIT SOzgRVBqelRi4jitECkgl/NtCL30nFx/mzWc1TQhBuTqr3Hb7Fjg0eoCPZt0qa1hi+ eIpNkGE0PkvPw== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: "David S . Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Michal Marek , clang-built-linux@googlegroups.com Subject: [PATCH] kbuild: remove AS variable Date: Wed, 25 Mar 2020 01:15:07 +0900 Message-Id: <20200324161507.7414-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org As commit 5ef872636ca7 ("kbuild: get rid of misleading $(AS) from documents") noted, we rarely use $(AS) in the kernel build. Now that the only/last user of $(AS) in drivers/net/wan/Makefile was converted to $(CC), $(AS) is no longer used in the build process. You can still pass in AS=clang, which is just a switch to turn on the LLVM integrated assembler. Signed-off-by: Masahiro Yamada --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 16d8271192d1..339e8c51a10b 100644 --- a/Makefile +++ b/Makefile @@ -405,7 +405,6 @@ KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS) # Make variables (CC, etc...) -AS = $(CROSS_COMPILE)as LD = $(CROSS_COMPILE)ld CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E @@ -472,7 +471,7 @@ KBUILD_LDFLAGS := GCC_PLUGINS_CFLAGS := CLANG_FLAGS := -export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC +export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF PAHOLE LEX YACC AWK INSTALLKERNEL export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX export KBUILD_HOSTCXXFLAGS KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS LDFLAGS_MODULE