From patchwork Sat Jul 7 01:07:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10512659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D02760532 for ; Sat, 7 Jul 2018 01:07:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93B84287EF for ; Sat, 7 Jul 2018 01:07:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8804F2883B; Sat, 7 Jul 2018 01:07:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60FC0287EF for ; Sat, 7 Jul 2018 01:07:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933016AbeGGBHo (ORCPT ); Fri, 6 Jul 2018 21:07:44 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:43739 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932873AbeGGBHk (ORCPT ); Fri, 6 Jul 2018 21:07:40 -0400 Received: by mail-qk0-f182.google.com with SMTP id z74-v6so7212055qkb.10 for ; Fri, 06 Jul 2018 18:07:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JQCQFdHkWrtzdKOqm08g04PbP6dAJqUU1btZr0uBYiQ=; b=nMC8FK2n+pK99eOiBEHBX5U4ManNeATuTSm++r1oUOqtTHX27WZ25U40SBLQ8lcit/ RAeXligp+NWr4nRsH2pJTn8qavRdv9XT1KsdHMy5xajHMpwB7/DEYTyQ4OD8KG+zdCiT J4M+HNDFD0TStc2igkJnCfA4dt9nD1vxyROqh11uejCTgmSY/EpFiRAJncrJbepYPaFN GZ29QeGtyaE1GzLXDIAXy7UauviEWMnyCcppo8xKw3QgcKe4ovKrGttSvveuecAfKht4 JmbUw6UAQF7j655IdeowdGok9NV4HnRJy/CCvj6vgZimqTu/uSBzzG2i3kR9yAY33hda w3NA== X-Gm-Message-State: APt69E3KA21oaSXgvtkjoYwDIYCM2bZ19gQlIBNyliYU6sAGJbIC/8Ws t7oEPJrcnJbtdTpFEb0bS62eDA== X-Google-Smtp-Source: AAOMgpcd4X+TMNkkC5Uu21Sm7GD2hlUAtKaImct7sPpgsc1+Hp59rTmGGHG0wU9mPVsYYjset2QOGQ== X-Received: by 2002:a37:d942:: with SMTP id u63-v6mr11243079qki.165.1530925660262; Fri, 06 Jul 2018 18:07:40 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id b3-v6sm3359698qtg.20.2018.07.06.18.07.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 18:07:39 -0700 (PDT) From: Laura Abbott To: Masahiro Yamada , Josh Poimboeuf , Jiri Olsa Cc: Laura Abbott , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Robin Jarry Subject: [PATCH 7/7] Kbuild: Use HOST*FLAGS options from the command line Date: Fri, 6 Jul 2018 18:07:09 -0700 Message-Id: <20180707010709.16648-8-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180707010709.16648-1-labbott@redhat.com> References: <20180707010709.16648-1-labbott@redhat.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that we have the rename in place, reuse the HOST*FLAGS options as something that can be set from the command line and included with the rest of the flags. Signed-off-by: Laura Abbott --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d925af1fb11b..77c74b3cf30b 100644 --- a/Makefile +++ b/Makefile @@ -360,10 +360,11 @@ HOST_LFS_LIBS := $(shell getconf LFS_LIBS) HOSTCC = gcc HOSTCXX = g++ KBUILD_HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \ - -fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) -KBUILD_HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS) -KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) -KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) + -fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) \ + $(HOSTCFLAGS) +KBUILD_HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) +KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) +KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOST_LOADLIBES) # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as