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 <daniel@makrotopia.org>
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)