summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/projects/embed/mdk/hello/xmake.lua2
-rw-r--r--xmake/rules/mdk/xmake.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/projects/embed/mdk/hello/xmake.lua b/tests/projects/embed/mdk/hello/xmake.lua
index 6afb714af..a871721e1 100644
--- a/tests/projects/embed/mdk/hello/xmake.lua
+++ b/tests/projects/embed/mdk/hello/xmake.lua
@@ -8,6 +8,6 @@ target("foo")
target("hello")
add_deps("foo")
- add_rules("mdk.console")
+ add_rules("mdk.binary")
add_files("src/*.c", "src/*.s")
add_includedirs("src/lib/cmsis")
diff --git a/xmake/rules/mdk/xmake.lua b/xmake/rules/mdk/xmake.lua
index 0c491b528..1d62a2b34 100644
--- a/xmake/rules/mdk/xmake.lua
+++ b/xmake/rules/mdk/xmake.lua
@@ -18,7 +18,7 @@
-- @file xmake.lua
--
-rule("mdk.console")
+rule("mdk.binary")
on_load(function (target)
-- we disable checking flags for cross toolchain automatically
target:set("policy", "check.auto_ignore_flags", false)
@@ -41,3 +41,5 @@ rule("mdk.static")
target:set("kind", "static")
end)
+rule("mdk.console")
+ add_deps("mdk.binary")