Expose EARLY_PATH as cmake flag
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Feb 2016 12:21:37 +0000 (13:21 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Feb 2016 12:45:12 +0000 (13:45 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
CMakeLists.txt

index 2718125939ec26ddb30e6a71a8d540f735dc091a..3219240cbc9bba189d7cce27fb1fec19fa707a88 100644 (file)
@@ -28,6 +28,10 @@ IF(DEBUG)
   ADD_DEFINITIONS(-DDEBUG -g3)
 ENDIF()
 
+IF(EARLY_PATH)
+  ADD_DEFINITIONS(-DEARLY_PATH="${EARLY_PATH}")
+ENDIF()
+
 IF(ZRAM_TMPFS)
   ADD_DEFINITIONS(-DZRAM_TMPFS)
   SET(SOURCES_ZRAM initd/zram.c)