Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
30bd822
📃 docs(readme.md): fix run qemu command
xqyjlj Jun 25, 2023
644e2b7
✨ feat(tools/scripts/toolchains): del --static, because get_ldscripts…
xqyjlj Jun 25, 2023
79c1070
✨ feat(tools/scripts/modules/rt/private/build/rtflags.lua): change st…
xqyjlj Jun 25, 2023
b2c3b8d
✨ feat(repo/packages/l/libffi): add libffi
xqyjlj Jun 25, 2023
90270b0
✨ feat(repo/packages/m/micropython): add micropython
xqyjlj Jun 25, 2023
538165f
✨ feat(apps/micropython/xmake.lua): add micropython
xqyjlj Jun 25, 2023
b208a8a
🐞 fix(apps/micropython/xmake.lua): change link type to static
xqyjlj Jun 25, 2023
d879d49
🐎 ci(.github/workflows/build.yml): add more app to build-linux-apps
xqyjlj Jun 25, 2023
0c6771a
✨ feat(repo/packages/m/micropython/xmake.lua): add with_ffi config
xqyjlj Jun 25, 2023
dca83ce
✨ feat(tools/scripts/toolchains/x86_64-linux-musl.lua): update x86_64…
xqyjlj Jun 25, 2023
a71a7b7
🐞 fix(tools/scripts/rules/rt.cpp.lua): if target_os is not rt-smart, …
xqyjlj Jun 25, 2023
ddda5eb
✨ feat(tools/plugins/smart-create): update smart-create
xqyjlj Jun 27, 2023
1a43c4b
✨ feat(tools/plugins/install.sh): add plugins install.sh
xqyjlj Jun 27, 2023
b754772
✨ feat(repo/packages): add ffmpeg, libjpeg, libpng, lua, ncurses, ope…
xqyjlj Jun 28, 2023
1565158
🌈 style: change author name
xqyjlj Jun 28, 2023
02403ef
🐞 fix(tools/scripts/modules/rt/private/build/rtflags.lua): fix cpu is…
xqyjlj Jun 28, 2023
5ff7168
🐎 ci(.github/workflows/build.yml): del artifact
xqyjlj Jun 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,15 @@ jobs:
xmake smart-image -f ext4 -vD -o build/${{ matrix.arch }}-ext4.img
popd

- name: ⬆️ upload artifact
uses: actions/upload-artifact@v3
with:
name: build-smart-apps-${{ github.run_number }}
path: |
apps/build/cross
apps/build/rootfs
apps/build/*.img

build-linux-apps:
runs-on: ubuntu-latest
strategy:
matrix:
app:
- busybox
- cpp
- hello
- micropython
- zlib

steps:
Expand All @@ -95,10 +89,3 @@ jobs:
xmake f -a x86_64 --target_os=linux -vyD
xmake -j$(nproc) -vyD ${{ matrix.app }}
popd

- name: ⬆️ upload artifact
uses: actions/upload-artifact@v3
with:
name: build-smart-apps-${{ github.run_number }}
path: |
apps/build/cross
4 changes: 2 additions & 2 deletions apps/busybox/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-06-21 zhouquan initial version
-- 2023-06-21 xqyjlj initial version
--

add_rules("mode.debug", "mode.release")
Expand Down
4 changes: 2 additions & 2 deletions apps/cpp/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/hello/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
32 changes: 32 additions & 0 deletions apps/micropython/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-- Licensed under the Apache License, Version 2.0 (the "License");
-- You may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-06-21 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

add_requires("micropython", {configs = {shared = false}})

target("micropython")
do
set_kind("phony")
add_packages("micropython")
end
target_end()
4 changes: 2 additions & 2 deletions apps/shm_ping/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/shm_pong/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/umailbox/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/webclient/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/webserver/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--
add_rules("mode.debug", "mode.release")

Expand Down
4 changes: 2 additions & 2 deletions apps/zlib/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2022-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-03-10 zhouquan initial version
-- 2023-03-10 xqyjlj initial version
--

add_rules("mode.debug", "mode.release")
Expand Down
4 changes: 2 additions & 2 deletions prebuilt/qemu-virt64-aarch64/run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# @author zhouquan
# @author xqyjlj
# @file run.sh
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-01-12 zhouquan initial version
# 2023-01-12 xqyjlj initial version
#

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down
4 changes: 2 additions & 2 deletions prebuilt/qemu-virt64-aarch64/run_debug.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# @author zhouquan
# @author xqyjlj
# @file run.sh
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-01-12 zhouquan initial version
# 2023-01-12 xqyjlj initial version
#

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down
4 changes: 2 additions & 2 deletions prebuilt/qemu-virt64-riscv/run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# @author zhouquan
# @author xqyjlj
# @file run.sh
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-01-12 zhouquan initial version
# 2023-01-12 xqyjlj initial version
#

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down
4 changes: 2 additions & 2 deletions prebuilt/qemu-virt64-riscv/run_debug.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# @author zhouquan
# @author xqyjlj
# @file run.sh
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-01-12 zhouquan initial version
# 2023-01-12 xqyjlj initial version
#

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ xmake 是一个基于 Lua 的轻量级跨平台构建工具,使用 xmake.lua

```shell
cd prebuilt/qemu-virt64-aarch64/
./qemu.sh
./run.sh
```

![image-20230531174321326](./assets/image-20230531174321326.png)
Expand Down
4 changes: 2 additions & 2 deletions repo/packages/a/aarch64-smart-musleabi/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2023-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-05-08 zhouquan initial version
-- 2023-05-08 xqyjlj initial version
--
package("aarch64-smart-musleabi")
do
Expand Down
4 changes: 2 additions & 2 deletions repo/packages/a/arm-smart-musleabi/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2023-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-05-12 zhouquan initial version
-- 2023-05-12 xqyjlj initial version
--
package("arm-smart-musleabi")
do
Expand Down
4 changes: 2 additions & 2 deletions repo/packages/b/busybox/scripts/deploy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2023-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file deploy.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-05-09 zhouquan initial version
-- 2023-05-09 xqyjlj initial version
--
import("rt.rt_utils")

Expand Down
4 changes: 2 additions & 2 deletions repo/packages/b/busybox/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--
-- Copyright (C) 2023-2023 RT-Thread Development Team
--
-- @author zhouquan
-- @author xqyjlj
-- @file xmake.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-05-04 zhouquan initial version
-- 2023-05-04 xqyjlj initial version
--
package("busybox")
do
Expand Down
35 changes: 35 additions & 0 deletions repo/packages/f/ffmpeg/scripts/deploy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-- Licensed under the Apache License, Version 2.0 (the "License");
-- You may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- Copyright (C) 2023-2023 RT-Thread Development Team
--
-- @author xqyjlj
-- @file deploy.lua
--
-- Change Logs:
-- Date Author Notes
-- ------------ ---------- -----------------------------------------------
-- 2023-05-11 xqyjlj initial version
--
import("rt.rt_utils")

function main(rootfs, installdir)
for _, filepath in ipairs(os.files(path.join(installdir, "bin") .. "/*")) do
local filename = path.filename(filepath)
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "bin", filename))
end

for _, filepath in ipairs(os.files(path.join(installdir, "lib") .. "/lib*.so*")) do
local filename = path.filename(filepath)
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "lib", filename))
end
end
Loading