From dc485f73569c0b66130a38f4abee14ed2bbdf58e Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 23 Jun 2016 00:06:18 +0200
Subject: [PATCH] gluon-core: make gluon.platform.match() match all boards when
 no boards are given

---
 package/gluon-core/files/usr/lib/lua/gluon/platform.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-core/files/usr/lib/lua/gluon/platform.lua b/package/gluon-core/files/usr/lib/lua/gluon/platform.lua
index 3d56f081b..6483ad2e5 100644
--- a/package/gluon-core/files/usr/lib/lua/gluon/platform.lua
+++ b/package/gluon-core/files/usr/lib/lua/gluon/platform.lua
@@ -21,7 +21,7 @@ function match(target, subtarget, boards)
       return false
    end
 
-   if not util.contains(boards, get_board_name()) then
+   if boards and not util.contains(boards, get_board_name()) then
       return false
    end
 
-- 
GitLab