diff mbox series

lua: link lua_swupdate library

Message ID 20201231130457.210081-1-sbabic@denx.de
State Accepted
Headers show
Series lua: link lua_swupdate library | expand

Commit Message

Stefano Babic Dec. 31, 2020, 1:04 p.m. UTC
lua just checks for .so extensions in /usr/lib/lua/<lua version>, and
without the link the library is not found. Instead of patching later
rootfs, let SWUpdate to set the link correctly.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 82290f9..aa75953 100644
--- a/Makefile
+++ b/Makefile
@@ -476,6 +476,7 @@  install: all
 	if [ $(HAVE_LUA) = y ]; then \
 		install -d ${DESTDIR}/${LIBDIR}/lua/$(LUAVER); \
 		install -m 0755 ${lua_swupdate} $(DESTDIR)/${LIBDIR}/lua/$(LUAVER); \
+		ln -sfr ${lua_swupdate} $(DESTDIR)/${LIBDIR}/lua/$(LUAVER)/lua_swupdate.so; \
 	fi
 
 PHONY += tests