Skip to content

Commit d7c143d

Browse files
committed
Add other application support
1 parent 04747e9 commit d7c143d

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

apps/xmake.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
local arch = get_config("arch")
22
if arch == "xuantie" then
3-
local packagefile = path.join(path.join(os.scriptdir(), "busybox"), "xmake.lua")
4-
if os.isfile(packagefile) then
5-
includes(packagefile)
3+
local run_apps = {
4+
"busybox",
5+
"cpp",
6+
"hello",
7+
"shm_ping",
8+
"shm_pong",
9+
"smart-fetch",
10+
"zlib",
11+
}
12+
for _, packagedir in ipairs(run_apps) do
13+
local packagefile = path.join(path.join(os.scriptdir(), packagedir), "xmake.lua")
14+
if os.isfile(packagefile) then
15+
includes(packagefile)
16+
end
617
end
718
else
819
for _, packagedir in ipairs(os.dirs(path.join(os.scriptdir(), "*"))) do

tools/scripts/toolchains/xuantie-900-gcc-musl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ do
3232

3333
toolchain:set("toolset", "cxx", "riscv64-unknown-linux-musl-g++")
3434

35-
toolchain:add("cxflags", "-mcmodel=medany", "-march=rv64imafdc", "-mabi=lp64d ", {force = true})
35+
toolchain:add("cxflags", "-mcmodel=medany", "-march=rv64imafdc", "-mabi=lp64d ", "-Wno-return-mismatch", {force = true})
3636

3737
local link_type = os.getenv("RT_XMAKE_LINK_TYPE") or "shared"
3838
if link_type == "static" then

0 commit comments

Comments
 (0)