Skip to content
Snippets Groups Projects
Unverified Commit 59d182fe authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: gluon.platform: allow omitting target and subtarget

Allow wildcard matches on all subtargets of a target, or a full wildcard
always returning true when no arguments are passed.
parent 75684ecf
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ local M = setmetatable({}, { ...@@ -7,11 +7,11 @@ local M = setmetatable({}, {
}) })
function M.match(target, subtarget, boards) function M.match(target, subtarget, boards)
if M.get_target() ~= target then if target and M.get_target() ~= target then
return false return false
end end
if M.get_subtarget() ~= subtarget then if subtarget and M.get_subtarget() ~= subtarget then
return false return false
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment