2 # SPDX-License-Identifier: GPL-2.0-only
12 grep -q "^$1=y" include/config/auto.conf
20 find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*'
21 find include scripts -type f -o -type l
22 find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform
23 find "$(find "arch/${SRCARCH}" -name include -o -name scripts -type d)" -type f
24 ) | tar -c -f - -C "${srctree}" -T - | tar -xf - -C "${destdir}"
27 if is_enabled CONFIG_OBJTOOL; then
28 echo tools/objtool/objtool
31 find "arch/${SRCARCH}/include" Module.symvers include scripts -type f
33 if is_enabled CONFIG_GCC_PLUGINS; then
34 find scripts/gcc-plugins -name '*.so'
36 } | tar -c -f - -T - | tar -xf - -C "${destdir}"
38 # copy .config manually to be where it's expected to be
39 cp "${KCONFIG_CONFIG}" "${destdir}/.config"