[PATCH] Support dl-tunables.list in subdirectories

H.J. Lu hongjiu.lu@intel.com
Wed May 24 19:41:00 GMT 2017


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
-- 
2.9.4



More information about the Libc-alpha mailing list