How to build a static Linux kernel library?
I am assigned a job to build a Linux kernel (version 4.1) static library to support our hardware for our customer. The library is built separate to the kernel compile. How should I create makefile?
I tried with makefile like this:
lib-y += hello.o
lib-y += goodby.o
all:
make -C $(SYS_PATH) M=$(PWD) ARCH=powerpc CROSS_COMPILE=powerpc64-fsl-linux modules
The compiler didn't give any error. But it doesn't do anything. Anyone can give me some hint?
|