From a38e66ced2d0ffdc6fccd00bb81ba6fba6fda13c 2016-09-20 14:28:09 From: Michal Svamberg Date: 2016-09-20 14:28:09 Subject: [PATCH] Make symlinks in /lib/modules/ --- diff --git a/bootstrap.d/13-kernel.sh b/bootstrap.d/13-kernel.sh index 2eee343..d09abf4 100644 --- a/bootstrap.d/13-kernel.sh +++ b/bootstrap.d/13-kernel.sh @@ -134,9 +134,9 @@ if [ "$BUILD_KERNEL" = true ] ; then if [ "$KERNEL_REMOVESRC" = true ] ; then rm -fr "${KERNEL_DIR}" else - make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" mrproper - make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" oldconfig + #make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" oldconfig make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" modules_prepare + #make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" mrproper fi if [ -n "$RPI_FIRMWARE_DIR" ] && [ -d "$RPI_FIRMWARE_DIR" ] ; then @@ -312,3 +312,8 @@ fi # Install sysctl.d configuration files install_readonly files/sysctl.d/81-rpi-vm.conf "${ETC_DIR}/sysctl.d/81-rpi-vm.conf" + +# make symlinks +ln -sf "${KERNEL_DIR}" "${R}/lib/modules/${KERNEL_VERSION}/build" +ln -sf "${KERNEL_DIR}" "${R}/lib/modules/${KERNEL_VERSION}/source" +