[CMake] Building linux kernel module with Cmake
Brandon Van Every
bvanevery at gmail.com
Sat Nov 3 11:55:05 EDT 2007
On Nov 3, 2007 1:49 AM, <suhasj at aftek.com> wrote:
> Oops I missed the main statements...
> Sorry for that
>
> Contibuing to the previous post ...
>
> ADD_CUSTOM_COMMAND(OUTPUT DRIVER_BIN_FILE
> COMMAND ${KBUILD_CMD}
> DEPENDS ${MODULE_SOURCE_FILES} VERBATIM
> )
>
> ADD_CUSTOM_TARGET(driver
> DEPENDS ALL DRIVER_BIN_FILE )
That last one should be
ADD_CUSTOM_TARGET(driver ALL
DEPENDS DRIVER_BIN_FILE )
See if that helps.
Cheers,
Brandon Van Every
More information about the CMake
mailing list