callstack context: use delimiter when stack is incomplete
[lttng-modules.git] / built-in.sh
CommitLineData
f59ec0be
MJ
1#!/bin/bash
2
3set -e
4
5usage() {
6 echo "usage: $0 <kernel source tree>" >&2
7 exit 1
8}
9
10[ "$#" -eq 1 ] || usage
11KERNEL_DIR="$(readlink --canonicalize-existing "$1")"
12
13# Symlink the lttng-modules directory in the kernel source
14ln -sf "$(pwd)" "${KERNEL_DIR}/lttng"
15
16# Graft ourself to the kernel build system
17echo 'source "lttng/Kconfig"' >> "${KERNEL_DIR}/Kconfig"
18sed -i 's#+= kernel/#+= kernel/ lttng/#' "${KERNEL_DIR}/Makefile"
19
20echo >&2
21echo " $0: done." >&2
22echo " $0: now you can build the kernel with LTTng support." >&2
23echo " $0: make sure you enable it (CONFIG_LTTNG) before building." >&2
24echo >&2
This page took 0.02528 seconds and 4 git commands to generate.