From 850cdb429b36c993649d05ea928776f86912597b Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 20 May 2014 02:43:51 +0200 Subject: [PATCH] libubi-utils: export static library uboot-envtools will use parts of libubi-utils in the near future to allow native r/w support of ubi-volume backed environments. Install libubi-utils.a as well as the headers needed so uboot-envtools can link libubi-utils. Signed-off-by: Daniel Golle --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1e5a09..5211bcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,15 @@ ADD_LIBRARY(ubi-utils STATIC libubi/libubi.c libubi/libubi-tiny.c libubi/ubiutils-common.c) +INSTALL(TARGETS ubi-utils ARCHIVE DESTINATION lib) + +SET_TARGET_PROPERTIES(ubi-utils PROPERTIES COMPILE_FLAGS + "-ffunction-sections -fdata-sections") + +INSTALL(FILES libubi/libubi-tiny.h libubi/libubi.h libubi/ubi-media.h + libubi/ubi-user.h libubi/ubi-media.h + DESTINATION include +) ADD_EXECUTABLE(mount_root mount_root.c) TARGET_LINK_LIBRARIES(mount_root fstools) -- 2.11.0