diff --git a/.cursor/environment.json b/.cursor/environment.json new file mode 100644 index 00000000000000..533855fbc9a66f --- /dev/null +++ b/.cursor/environment.json @@ -0,0 +1,4 @@ +{ + "name": "Linux kernel", + "install": "bash .cursor/install.sh" +} diff --git a/.cursor/install.sh b/.cursor/install.sh new file mode 100755 index 00000000000000..4a2760c6faddd1 --- /dev/null +++ b/.cursor/install.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +set -euo pipefail + +export DEBIAN_FRONTEND=noninteractive + +sudo apt-get update -qq +sudo apt-get install -y --no-install-recommends \ + build-essential \ + bc \ + bison \ + flex \ + libssl-dev \ + libelf-dev \ + libncurses-dev \ + cpio \ + kmod \ + dwarves \ + rsync \ + qemu-system-x86 \ + busybox-static + +if [ ! -f .config ]; then + make defconfig +fi + +make -j"$(nproc)" bzImage