diff mbox series

Makefile.flags: use CONFIG_LUAPKG for LUAVER instead 'lua'

Message ID 20190307162234.14608-1-claudius.heine.ext@siemens.com
State Accepted
Headers show
Series Makefile.flags: use CONFIG_LUAPKG for LUAVER instead 'lua' | expand

Commit Message

claudius.heine.ext@siemens.com March 7, 2019, 4:22 p.m. UTC
From: Claudius Heine <ch@denx.de>

Signed-off-by: Claudius Heine <ch@denx.de>
---
 Makefile.flags | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic March 8, 2019, 9:43 a.m. UTC | #1
Hi Claudius,

On 07/03/19 17:22, claudius.heine.ext@siemens.com wrote:
> From: Claudius Heine <ch@denx.de>
> 
> Signed-off-by: Claudius Heine <ch@denx.de>
> ---
>  Makefile.flags | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile.flags b/Makefile.flags
> index 82365a5..7a87759 100644
> --- a/Makefile.flags
> +++ b/Makefile.flags
> @@ -102,7 +102,7 @@ $(eval $(call pkg_check_modules, LUABUILD, ${CONFIG_LUAPKG}))
>  KBUILD_CFLAGS += $(LUABUILD_CFLAGS)
>  KBUILD_LIBS += $(LUABUILD_LIBS)
>  LDLIBS += $(LUABUILD_LDLIBS)
> -LUAVER :=  $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --modversion lua | cut -d'.' -f1,2)
> +LUAVER :=  $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --modversion ${CONFIG_LUAPKG} | cut -d'.' -f1,2)
>  endif
>  
>  ifeq ($(CONFIG_LUA),y)
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/Makefile.flags b/Makefile.flags
index 82365a5..7a87759 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -102,7 +102,7 @@  $(eval $(call pkg_check_modules, LUABUILD, ${CONFIG_LUAPKG}))
 KBUILD_CFLAGS += $(LUABUILD_CFLAGS)
 KBUILD_LIBS += $(LUABUILD_LIBS)
 LDLIBS += $(LUABUILD_LDLIBS)
-LUAVER :=  $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --modversion lua | cut -d'.' -f1,2)
+LUAVER :=  $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --modversion ${CONFIG_LUAPKG} | cut -d'.' -f1,2)
 endif
 
 ifeq ($(CONFIG_LUA),y)