From: Felix Fietkau Date: Sat, 5 Mar 2016 10:54:55 +0000 (+0100) Subject: add option to disable build of the init binary X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=commitdiff_plain;h=1bc094b04ca4160a405e2ca98c02eb6136db5fc6 add option to disable build of the init binary Signed-off-by: Felix Fietkau --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3219240..7299d9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,13 +47,14 @@ INSTALL(TARGETS procd RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} ) - +IF(NOT DISABLE_INIT) ADD_EXECUTABLE(init initd/init.c initd/early.c initd/preinit.c initd/mkdev.c watchdog.c utils/utils.c ${SOURCES_ZRAM}) TARGET_LINK_LIBRARIES(init ${LIBS}) INSTALL(TARGETS init RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} ) +ENDIF() ADD_EXECUTABLE(udevtrigger plug/udevtrigger.c)