Lines Matching refs:topo
40 -ndk-topo-debug = $(info $1)
42 -ndk-topo-debug = $(empty)
280 -ndk-mod-topo-zero-incoming = \
284 -ndk-mod-topo-increment-incoming = \
288 -ndk-mod-topo-decrement-incoming = \
292 -ndk-mod-topo-has-incoming = $(_ndk_mod_topo_incoming.$1)
297 -ndk-mod-topo-find-first-zero-incoming = $(firstword $(call -ndk-mod-filter-out,$1,-ndk-mod-topo-has-incoming))
300 -ndk-mod-topo-dump-count = \
318 -ndk-mod-get-topo-list = $(strip \
322 $(call -ndk-mod-topo-count,$(_ndk_mod_nodes))\
324 $(eval _ndk_mod_wq := $(call -ndk-mod-topo-find-first-zero-incoming,$(_ndk_mod_nodes)))\
325 $(call -ndk-mod-topo-sort)\
331 -ndk-mod-topo-count = \
333 $(call -ndk-mod-topo-zero-incoming,$(_ndk_mod_module)))\
337 $(call -ndk-mod-topo-increment-incoming,$(_ndk_mod_dep))\
341 -ndk-mod-topo-sort = \
342 $(call -ndk-topo-debug,-ndk-mod-topo-sort: wq='$(_ndk_mod_wq)' list='$(_ndk_mod_list)')\
347 $(call -ndk-mod-topo-decrement-incoming,$(_ndk_mod_module))\
349 $(call -ndk-topo-debug,-ndk-mod-topo-sort: deps='$(_ndk_mod_depends)')\
351 $(call -ndk-mod-topo-decrement-incoming,$(_ndk_mod_dep))\
352 $(if $(call -ndk-mod-topo-has-incoming,$(_ndk_mod_dep)),,\
356 $(call -ndk-mod-topo-sort)\
360 -test-ndk-mod-get-topo-list.empty = \
362 $(call test-expect,,$(call -ndk-mod-get-topo-list,,-local-deps))
364 -test-ndk-mod-get-topo-list.single = \
367 $(call test-expect,A,$(call -ndk-mod-get-topo-list,A,-local-deps))
369 -test-ndk-mod-get-topo-list.no-infinite-loop = \
374 $(call test-expect,A B C,$(call -ndk-mod-get-topo-list,A,-local-deps))
376 -test-ndk-mod-get-topo-list.ABC = \
381 $(call test-expect,A C B,$(call -ndk-mod-get-topo-list,A,-local-deps))
383 -test-ndk-mod-get-topo-list.ABCD = \
389 $(call test-expect,A C B D,$(call -ndk-mod-get-topo-list,A,-local-deps))
391 -test-ndk-mod-get-topo-list.ABC.circular = \
396 $(call test-expect,A B C,$(call -ndk-mod-get-topo-list,A,-local-deps))
407 -ndk-mod-get-topological-depends = $(call rest,$(call -ndk-mod-get-topo-list,$1,$2))
414 $(call test-expect,B,$(topo_deps),topo dependencies)
424 $(call test-expect,C B,$(topo_deps),topo dependencies)
434 $(call test-expect,B C,$(topo_deps),topo dependencies)