Skip to content

Instantly share code, notes, and snippets.

@cyyself
Last active February 10, 2024 16:33
Show Gist options
  • Save cyyself/ffc2c4c6e87e6e754a73d4d5e247af91 to your computer and use it in GitHub Desktop.
Save cyyself/ffc2c4c6e87e6e754a73d4d5e247af91 to your computer and use it in GitHub Desktop.
#!/bin/bash
pushd /lib/modules/$(uname -r)/build
pushd scripts/basic/
sudo gcc fixdep.c -o fixdep
popd
pushd scripts/mod/
sudo gcc file2alias.c -c -o file2alias.o
sudo gcc sumversion.c -c -o sumversion.o
sudo gcc symsearch.c -c -o symsearch.o
sudo gcc modpost.c file2alias.o sumversion.o symsearch.o -o modpost
popd
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment