[source] libreadline: add host-build

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 24 05:38:32 PDT 2017


dangole pushed a commit to source.git, branch master:
https://git.lede-project.org/04063820e85831e4f623faf395323e3e48b18b7d

commit 04063820e85831e4f623faf395323e3e48b18b7d
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Jun 24 13:58:56 2017 +0200

    libreadline: add host-build
    
    Also make sure that the PKG_NAME and folder name are equal.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/libs/{libreadline => readline}/Makefile                       | 2 ++
 package/libs/{libreadline => readline}/patches/001-install_perm.patch | 0
 2 files changed, 2 insertions(+)

diff --git a/package/libs/libreadline/Makefile b/package/libs/readline/Makefile
similarity index 96%
rename from package/libs/libreadline/Makefile
rename to package/libs/readline/Makefile
index 3c1b048..ccd20a4 100644
--- a/package/libs/libreadline/Makefile
+++ b/package/libs/readline/Makefile
@@ -23,6 +23,7 @@ PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
 
 define Package/libreadline
   SECTION:=libs
@@ -69,4 +70,5 @@ define Package/libreadline/install
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{so,so.7,so.7.0} $(1)/usr/lib/
 endef
 
+$(eval $(call HostBuild))
 $(eval $(call BuildPackage,libreadline))
diff --git a/package/libs/libreadline/patches/001-install_perm.patch b/package/libs/readline/patches/001-install_perm.patch
similarity index 100%
rename from package/libs/libreadline/patches/001-install_perm.patch
rename to package/libs/readline/patches/001-install_perm.patch



More information about the lede-commits mailing list