diff options
author | John Crispin <blogic@openwrt.org> | 2014-11-28 01:27:57 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-02 12:11:12 +0100 |
commit | e1a27d486c2374f46abd264f3fd6561815155ebd (patch) | |
tree | f595e0e069e11a3b7ece4c2d0cb585056d4b8b49 /CMakeLists.txt | |
parent | 02e1a4eac725aaae10c119ec2ec20d0da4a2c958 (diff) | |
download | procd-e1a27d486c2374f46abd264f3fd6561815155ebd.tar.gz |
add support for zram compressed tmpfs
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a8a7517..92907fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,11 @@ IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3) ENDIF() +IF(ZRAM_TMPFS) + ADD_DEFINITIONS(-DZRAM_TMPFS) + SET(SOURCES_ZRAM initd/zram.c) +ENDIF() + add_subdirectory(upgraded) ADD_EXECUTABLE(procd ${SOURCES}) @@ -31,7 +36,7 @@ INSTALL(TARGETS procd ADD_EXECUTABLE(init initd/init.c initd/early.c initd/preinit.c initd/mkdev.c watchdog.c - utils/utils.c) + utils/utils.c ${SOURCES_ZRAM}) TARGET_LINK_LIBRARIES(init ${LIBS}) INSTALL(TARGETS init RUNTIME DESTINATION sbin |