From 1bc094b04ca4160a405e2ca98c02eb6136db5fc6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Mar 2016 11:54:55 +0100 Subject: [PATCH] add option to disable build of the init binary Signed-off-by: Felix Fietkau --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.25.1