2 # SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1)
7 echo "usage: $0 <kernel source tree>" >&2
11 [ "$#" -eq 1 ] || usage
12 KERNEL_DIR
="$(readlink --canonicalize-existing "$1")"
14 # Symlink the lttng-modules directory in the kernel source
15 ln -sf "$(pwd)" "${KERNEL_DIR}/lttng"
17 # Graft ourself to the kernel build system
18 echo 'source "lttng/Kconfig"' >> "${KERNEL_DIR}/Kconfig"
19 sed -i 's#+= kernel/#+= kernel/ lttng/#' "${KERNEL_DIR}/Makefile"
23 echo " $0: now you can build the kernel with LTTng support." >&2
24 echo " $0: make sure you enable it (CONFIG_LTTNG) before building." >&2
This page took 0.030908 seconds and 4 git commands to generate.