Commit 065a57eb authored by Andrey Yurovsky's avatar Andrey Yurovsky Committed by Thomas Petazzoni
Browse files

mtd: restore installation of libmtd to staging

Commit 67117adc

 backed out the
deployment of libmtd headers (libmtd.h, libubi.h, ubi-media.h) to
staging and these may be needed by packages that work directly with MTD,
for example swupdate. mtd also produces libmtd.a and libubi.a which are
needed by those packages.

Tested by configuring swupdate to use MTD and verifying that swupdate
now compiles and links.
Signed-off-by: default avatarAndrey Yurovsky <>
[Thomas: change to a post-install staging hook, and add comment.]
Signed-off-by: default avatarThomas Petazzoni <>
parent 7ca9fc31
......@@ -97,5 +97,17 @@ define MTD_INSTALL_TARGET_CMDS
# Those libraries are not installed by "make install", but are needed
# by other packages, such as swupdate.
$(INSTALL) -D -m 0755 $(@D)/include/libmtd.h $(STAGING_DIR)/usr/include/mtd/libmtd.h
$(INSTALL) -D -m 0755 $(@D)/include/libubi.h $(STAGING_DIR)/usr/include/mtd/libubi.h
$(INSTALL) -D -m 0755 $(@D)/include/mtd/ubi-media.h $(STAGING_DIR)/usr/include/mtd/ubi-media.h
$(INSTALL) -D -m 0755 $(@D)/libmtd.a $(STAGING_DIR)/usr/lib/libmtd.a
$(INSTALL) -D -m 0755 $(@D)/libubi.a $(STAGING_DIR)/usr/lib/libubi.a
$(eval $(autotools-package))
$(eval $(host-autotools-package))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment