Lines Matching +full:timestamp +full:- +full:names

2 # SPDX-License-Identifier: GPL-2.0
9 # (not within --whole-archive), and do not require symbol indexes added.
14 # +--< vmlinux.a
16 # +--< $(KBUILD_VMLINUX_LIBS)
17 # | +--< lib/lib.a + more
19 # +-< ${kallsymso} (see description in KALLSYMS section)
21 # vmlinux version (uname -v) cannot be updated during normal
22 # descending-into-subdirs phase since we do not yet know if we need to
29 set -e
36 grep -q "^$1=y" include/config/auto.conf
40 # Will be supressed by "make -s"
43 printf " %-7s %s\n" "${1}" "${2}"
47 # ${1} - output file
48 # ${2}, ${3}, ... - optional extra .o files
76 objs="${objs} init/version-timestamp.o"
79 wl=-Wl,
82 ldlibs="-lutil -lrt -lpthread"
90 ldflags="${ldflags} ${wl}--script=${objtree}/${KBUILD_LDS}"
94 ldflags="${ldflags} ${wl}--strip-debug"
98 ldflags="${ldflags} ${wl}-Map=${output}.map"
101 ${ld} ${ldflags} -o ${output} \
102 ${wl}--whole-archive ${objs} ${wl}--no-whole-archive \
103 ${wl}--start-group ${libs} ${wl}--end-group \
108 # ${1} - vmlinux image
109 # ${2} - file to dump raw BTF data into
114 if ! [ -x "$(command -v ${PAHOLE})" ]; then
119 pahole_ver=$(${PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/')
120 if [ "${pahole_ver}" -lt "116" ]; then
121 echo >&2 "BTF: ${1}: pahole version $(${PAHOLE} --version) is too old, need at least v1.16"
128 LLVM_OBJCOPY="${OBJCOPY}" ${PAHOLE} -J ${PAHOLE_FLAGS} ${1}
131 # SHF_ALLOC because .BTF will be part of the vmlinux image. --strip-all
135 ${OBJCOPY} --only-section=.BTF --set-section-flags .BTF=alloc,readonly \
136 --strip-all ${1} ${2} 2>/dev/null
153 kallsymopt="${kallsymopt} --all-symbols"
157 kallsymopt="${kallsymopt} --absolute-percpu"
161 kallsymopt="${kallsymopt} --base-relative"
165 kallsymopt="${kallsymopt} --lto-clang"
188 -c -o ${kallsymso} ${kallsyms_S}
207 rm -f .btf.*
208 rm -f System.map
209 rm -f vmlinux
210 rm -f vmlinux.map
216 set -x
225 ${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init init/version-timestamp.o
255 # introduces new names, which further expands kallsyms. Do another
269 size1=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso_prev})
270 size2=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso})
272 if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
297 if ! cmp -s System.map ${kallsyms_vmlinux}.syms; then