/usr/lib/Makefile.list is in undertaker 1.6.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # -*- mode: makefile -*-#
#===============================================
# Listing files compiled by current configuration
#
# For retrieving a list of files compiled into the kernel with the current
# configuration use (in a kernel source tree)
# - make -f Makefile.list
# options:
# print_files - print all compiles files (default: "y")
# print_dirs - print all directories considered for compilation (default: "")
#
# If you want to check if a file is compiled by the current configuration
# - make -f Makefile.list compiled=kernel/sched.c
#
# You can also override, which auto.conf should be loaded, when the source
# tree is traversed
# - make -f Makefile.list auto_conf=another/path/to/auto.conf
list:
# The problem here is, that include Makefile would include the
# auto.conf of the configured kernel itself. To prevent this, we fake
# the makecommand to `tags', because there no auto.conf is
# included. The name of the variable in $(srcdir)/Makefile is
# no-dot-config-targets.
# So we prevent the linux makefile from including it's own Makefile,
# and do this for ourselfs before.
MAKECMDGOALS := tags
# Read auto.conf if it exists, otherwise ignore
ifeq ($(auto_conf),)
-include include/config/auto.conf
else
include $(auto_conf)
endif
# The linux toplevel makefile
include Makefile
list-dirs := $(addprefix _list_, . $(vmlinux-dirs) $(busybox-dirs))
print_files ?= y
PHONY += $(list-dirs) list
$(list-dirs):
ifeq ($(compiled),)
$(Q)$(MAKE) -f $(list) \
auto_conf=$(auto_conf) \
print_dirs=$(print_dirs) \
print_files=$(print_files) \
obj=$(patsubst _list_%,%,$@)
else
$(Q)$(MAKE) -f $(list) \
auto_conf=$(auto_conf) \
compiled=$(patsubst %.c,%.o,$(compiled)) \
obj=$(patsubst _list_%,%,$@)
endif
list: $(list-dirs)
list := $(if $(UNDERTAKER_SCRIPTS),$(UNDERTAKER_SCRIPTS)/)Makefile.list_recursion
|