compile single kernel file
I've added system calls before. AFAIK, you need to compile the entire kernel because the system call table is static within the kernel.
However, when you hit make
on the kernel, the kernel building system should workout the dependencies and only compile the files which need to be compiled.
Rebuild linux kernel module for another architecture
You could try:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- M=path/to/the/module/
Also read:
Cross compiling a kernel module
gcc-arm-linux-gnueabi command not found
Related Topics
Can Linux Cat Command Be Used for Writing Text to File
Total Size of the Contents of All the Files in a Directory
How to Insert a New Line in Linux Shell Script
New to Linux Kernel/Driver Development
How to Open a "-" Dashed Filename Using Terminal
Check If Service Exists in Bash (Centos and Ubuntu)
When to Use --Dynamic Option in Nm
Linux Directory Permissions for Different Groups
Detect the Presence of a Device When It's Hot Plugged in Linux
Securing a Linux Webserver for Public Access
How to Delete History of Last 10 Commands in Shell
Check Battery Level of Connected Bluetooth Device on Linux
How to Call Curl Without Using Server-Side Cache
How I Should Run My Golang Process in Background
How to Fetch Java Version Using Single Line Command in Linux
How to Check If a Process Is in Hang State (Linux)
Linux: How to Force a Specific Network Interface to Be Used
Ps Utility in Linux (Procps), How to Check Which CPU Is Used