瀏覽代碼

gluon-core: make gluon.platform.match() match all boards when no boards are given

Matthias Schiffer 8 年之前
父節點
當前提交
dc485f7356
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/gluon-core/files/usr/lib/lua/gluon/platform.lua

+ 1 - 1
package/gluon-core/files/usr/lib/lua/gluon/platform.lua

@@ -21,7 +21,7 @@ function match(target, subtarget, boards)
       return false
       return false
    end
    end
 
 
-   if not util.contains(boards, get_board_name()) then
+   if boards and not util.contains(boards, get_board_name()) then
       return false
       return false
    end
    end