6 echo "usage: $0 <kernel source tree>" >&2
10 [ "$#" -eq 1 ] || usage
11 KERNEL_DIR
="$(readlink --canonicalize-existing "$1")"
13 # Symlink the lttng-modules directory in the kernel source
14 ln -sf "$(pwd)" "${KERNEL_DIR}/lttng"
16 # Graft ourself to the kernel build system
17 echo 'source "lttng/Kconfig"' >> "${KERNEL_DIR}/Kconfig"
18 sed -i 's#+= kernel/#+= kernel/ lttng/#' "${KERNEL_DIR}/Makefile"
22 echo " $0: now you can build the kernel with LTTng support." >&2
23 echo " $0: make sure you enable it (CONFIG_LTTNG) before building." >&2
This page took 0.029858 seconds and 4 git commands to generate.