Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp223105imm; Fri, 6 Jul 2018 18:11:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpchkcs85QaK5VDPi1TuBFq8zea9a6ovtkjDLxyO8hiJY2+YT9HGx832pIKmGGsBy08Awrke X-Received: by 2002:a62:9c17:: with SMTP id f23-v6mr12614565pfe.209.1530925891768; Fri, 06 Jul 2018 18:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530925891; cv=none; d=google.com; s=arc-20160816; b=aEVGjM1kzDtw/sBfx6B//RD6vl2r7dTanifUyxQKVkfmzsIiH07uyuEjzrWqVmOHeq 6BS9fgAp9VF6euECGnq2wR3WzTw6b1CmopbuV54U/sTrNkvG1gLRVo5aSbsJ+Jh9Uv9O +0HLZafKhOfCHQVQwSO1lxV4Rdlxzk3ecJYwVBKyCyWITYC48ixu3BicLLd2iYDk+IYW 2Fj5ZBtA+aSwxNT0FIEMgO/lBOO2EM2n/QLTFgz/Bocm+aMDGZn1Y5aSbpt92GpN1Rii 2t1R34zE3JHnSGdIQmekgLukLQb88FPS0d7VI9f8yqriTyrxzKDv6rkxeKxWppO3/LH/ PN2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=w797Q1E9ieKryuCGLM5l5pC0s4K0AOHbMkPsjTN/RDI=; b=K3rMtfY3Kser0YIdAZ4G9U41eGuFyRi0czvd5jiMt1HWk+r6hahrrj3KhvTTqYvCrb seiZlhQvTyuP3lnXvFCQVjDoatzxZIQSNUCXzPNFPd9Oy+YMg1kWTYUtKVJYPtaet14U noRetI0QbWI+AUFjm+is/wyMrXIwmQ9AEOZ+RUoDanwLVYNjDznvSlzcIF2Hlbebb0mO jc5ZizJ65onwTrZMy85m2fXDC9wrOGmVLwpMtND3+WX2CzBnJXujR6SM1c+oFV39+NF5 hN2YP1QLJGgxPldmRS9QAu3i3YdCKylzJ5cMSN0R1mdy92XIIpyzcsnJbPRftfBA7HlR R7Kg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k23-v6si9393850pls.134.2018.07.06.18.11.17; Fri, 06 Jul 2018 18:11:31 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbeGGBH0 (ORCPT + 99 others); Fri, 6 Jul 2018 21:07:26 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40778 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713AbeGGBHY (ORCPT ); Fri, 6 Jul 2018 21:07:24 -0400 Received: by mail-qt0-f196.google.com with SMTP id h4-v6so11400789qtj.7 for ; Fri, 06 Jul 2018 18:07:24 -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; bh=w797Q1E9ieKryuCGLM5l5pC0s4K0AOHbMkPsjTN/RDI=; b=aqt6lxZVczCZz5POi2HyWHiyjGOI5AkGPfTlc/esFktDdWDpE7IQ69xS5fhOU5pN46 /9Bq74p6k11lVLX/HTXwUHvvUxcmrMzw2l7b8JLJoZqpbFbAEzkM9le4dYxQ+AaPYGGQ aH0gEZayGnYLdlg19NUCXYAKbNKM3lDMvURTPgiQ8JTrUazR35+wKvxG38WsPTkQSUKe QaebHq4qSg7YrgYY9kZbOQ4v3NpzUS4DqDYSD/Y2q2JRHdQEk8pFel21P0jlIsMtpMHA 2/G5PTVms/RQkUz5SAnnaKx0XTR87G69ey/xhyEii4VP6Zp0CCAv6WtlOqiMee40HC6N Sl5A== X-Gm-Message-State: APt69E2GYO+K9pMOkwCo1L989HmJ/q1LGaOxpfrF1u3/eiHqVgMaQgiL dcLW3uVfx1NsiAmZO3htd7PmGg== X-Received: by 2002:aed:3d2d:: with SMTP id g42-v6mr11289193qtf.195.1530925644046; Fri, 06 Jul 2018 18:07:24 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 18:07:22 -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 0/7] HOSTFLAGS and HOSTLDFLAGS from the environment (new approach) Date: Fri, 6 Jul 2018 18:07:02 -0700 Message-Id: <20180707010709.16648-1-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is a follow up from lkml.kernel.org/r/<20180329004805.7278-1-labbott@redhat.com> . I was pointed to a previous suggestion (https://lkml.org/lkml/2018/2/28/178) to rename the variables for better namespacing. I hadn't seen anyone follow up so this is a series to do just that. I split up the rename by variable for ease of review. This was mostly just a pretty straight-forward search and replace. I intentionally didn't Cc all the outside maintainers on the rename because I wanted to make sure this approach was correct before bothering people. This series also includes two other issuse I found to finally have all the generated files pick up the host flags. The first seems to be a typo of CHOSTFLAGS instead of HOSTCFLAGS. The second is a missing HOSTLDFLAGS when linking fixdep. I put these two separately in case there was interest in picking them up for stable. For the interested, the full command line I've been testing with: HOSTCFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection" HOSTLDFLAGS="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" Thanks, Laura Laura Abbott (7): tools: build: Fixup host c flags tools: build: Use HOSTLDFLAGS with fixdep treewide: Rename HOSTCFLAGS -> KBUILD_HOSTCFLAGS treewide: Rename HOSTCXXFLAGS to KBUILD_HOSTCXXFLAGS treewide: Rename HOSTLDFLAGS to KBUILD_HOSTLDFLAGS treewide: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS Kbuild: Use HOST*FLAGS options from the command line Makefile | 17 +++++++++-------- arch/alpha/boot/Makefile | 2 +- arch/s390/tools/Makefile | 4 ++-- arch/x86/tools/Makefile | 4 ++-- net/bpfilter/Makefile | 4 ++-- samples/bpf/Makefile | 28 ++++++++++++++-------------- samples/connector/Makefile | 2 +- samples/hidraw/Makefile | 2 +- samples/seccomp/Makefile | 24 ++++++++++++------------ samples/statx/Makefile | 2 +- samples/uhid/Makefile | 2 +- scripts/Kbuild.include | 2 +- scripts/Makefile | 4 ++-- scripts/Makefile.host | 28 ++++++++++++++-------------- scripts/dtc/Makefile | 24 ++++++++++++------------ scripts/genksyms/Makefile | 4 ++-- scripts/kconfig/Makefile | 14 +++++++------- tools/build/Build.include | 2 +- tools/build/Makefile | 2 +- tools/objtool/Makefile | 4 ++-- 20 files changed, 88 insertions(+), 87 deletions(-) -- 2.17.1