[Buildroot] [PATCH] Fix swupdate build by installing mtd headers as expected

Thomas W. thomas.chiantia at gmail.com
Fri Jul 10 19:41:37 UTC 2020


swupdate expects libmtd.h and libubi.h to be in the include folder and
not in the mtd namespace.
(see also:
https://groups.google.com/forum/#!topic/swupdate/Apv_yRLmgzY
https://groups.google.com/forum/#!topic/swupdate/gd25RIPa00w
https://groups.google.com/forum/#!topic/swupdate/gei0Gc_5j8M)

Signed-off-by: Thomas Chiantia <thomas.chiantia at gmail.com>

---
>From d0c06a5c04c8be6e159d38da9a2a98fd65a98e62 Mon Sep 17 00:00:00 2001
From: thomas <thomas.chiantia at gmail.com>
Date: Fri, 10 Jul 2020 15:37:57 -0400
Subject: [PATCH] fixed swupdate compile by installing mtd headers as expected

---
 package/mtd/mtd.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 3477460200..76ede98879 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -119,8 +119,8 @@ endef
 # Those libraries are not installed by "make install", but are needed
 # by other packages, such as swupdate.
 define MTD_INSTALL_LIBS
-    $(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/libmtd.h
$(STAGING_DIR)/usr/include/libmtd.h
+    $(INSTALL) -D -m 0755 $(@D)/include/libubi.h
$(STAGING_DIR)/usr/include/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
-- 
2.21.3


More information about the buildroot mailing list