view ci/build-snd-dummy.sh @ 32226:a5b5d8df5763 v9.0.1444

patch 9.0.1444: crash when passing NULL to setcmdline() Commit: https://github.com/vim/vim/commit/ac6cd31afcbdd08bfa92ca33f7d4ce5773ba4353 Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Apr 12 16:21:14 2023 +0100 patch 9.0.1444: crash when passing NULL to setcmdline() Problem: Crash when passing NULL to setcmdline(). (Andreas Louv) Solution: Use tv_get_string() instead of using v_string directly. (closes #12231, closes #12227)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Apr 2023 17:30:04 +0200
parents 1984a3fcc953
children
line wrap: on
line source

#!/bin/bash
set -eu

LINUX_VERSION=$(uname -r | cut -d. -f1-2)
LINUX_ARCHIVE_FILE=v${LINUX_VERSION}.tar.gz
LINUX_SOURCE_DIR=linux-${LINUX_VERSION}

mkdir -p "${TMPDIR}"
cd "${TMPDIR}"

wget -q "https://github.com/torvalds/linux/archive/${LINUX_ARCHIVE_FILE}"

tar -xf "${LINUX_ARCHIVE_FILE}" "${LINUX_SOURCE_DIR}/sound"
cd "${LINUX_SOURCE_DIR}/sound"

CC=gcc make -C "/lib/modules/$(uname -r)/build" M="${PWD}" CONFIG_SOUND=m CONFIG_SND=m CONFIG_SND_PCM=m CONFIG_SND_DUMMY=m modules

mkdir -p "${SND_DUMMY_DIR}"
cp soundcore.ko core/snd.ko core/snd-pcm.ko drivers/snd-dummy.ko "${SND_DUMMY_DIR}"