Support dl-tunables.list in subdirectories

We can put processor specific tunables in dl-tunables.list under
sysdeps instead of in elf/dl-tunables.list.

	* Makeconfig ($(common-objpfx)dl-tunable-list.h): Also check
	dl-tunables.list in subdirectories.
This commit is contained in:
H.J. Lu 2017-05-25 05:41:05 -07:00
parent 302bb1a3c3
commit ee8015b9ea
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-05-25 H.J. Lu <hongjiu.lu@intel.com>
* Makeconfig ($(common-objpfx)dl-tunable-list.h): Also check
dl-tunables.list in subdirectories.
2017-05-25 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>

View File

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