From patchwork Wed May 24 19:41:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 20567 Received: (qmail 71106 invoked by alias); 24 May 2017 19:41:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 71050 invoked by uid 89); 24 May 2017 19:41:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=no X-HELO: mga06.intel.com X-ExtLoop1: 1 Date: Wed, 24 May 2017 12:41:09 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] Support dl-tunables.list in subdirectories Message-ID: <20170524194109.GA23029@lucon.org> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) We can put processor specific tunables in dl-tunables.list under sysdeps instead of in elf/dl-tunables.list. Any comments? H.J. --- * Makeconfig ($(common-objpfx)dl-tunable-list.h): Also check dl-tunables.list in subdirectories. --- Makeconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makeconfig b/Makeconfig index b494b82..e4eda4b 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1127,7 +1127,9 @@ ifneq (no,$(have-tunables)) before-compile += $(common-objpfx)dl-tunable-list.h $(common-objpfx)dl-tunable-list.h: $(..)scripts/gen-tunables.awk \ - $(..)elf/dl-tunables.list + $(..)elf/dl-tunables.list \ + $(wildcard $(subdirs:%=$(..)%/dl-tunables.list)) \ + $(wildcard $(sysdirs:%=%/dl-tunables.list)) $(AWK) -f $^ > $@.tmp mv $@.tmp $@ endif