Skip to content

Add Cloud Agent dev environment for kernel build + QEMU boot - #2

Draft
PatrisiousHaddad wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-63f6
Draft

Add Cloud Agent dev environment for kernel build + QEMU boot#2
PatrisiousHaddad wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-63f6

Conversation

@PatrisiousHaddad

Copy link
Copy Markdown
Owner

Summary

Sets up a Cursor Cloud Agent development environment for this Linux kernel tree so agents can build the kernel and boot it end-to-end.

  • .cursor/environment.json — declares the environment and its install command.
  • .cursor/install.sh — idempotent bootstrap: installs the kernel build toolchain (build-essential, bc, bison, flex, libssl-dev, libelf-dev, libncurses-dev, cpio, kmod, dwarves, rsync) plus qemu-system-x86 and busybox-static, generates .config via make defconfig (only if absent), and builds arch/x86/boot/bzImage.

Files are force-added because the kernel .gitignore ignores all dotfiles (.*).

Validation

  • make defconfig + make -j8 bzImage build succeeds (Kernel: arch/x86/boot/bzImage is ready).
  • Booted the freshly built kernel in QEMU with a minimal busybox initramfs; userspace init ran, printed uname -a / /proc/version (Linux version 7.1.0-rc7-...), and powered down cleanly.
  • Install command is idempotent (second run is a fast incremental no-op).
Open in Web Open in Cursor 

Co-authored-by: PatrisiousHaddad <PatrisiousHaddad@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants