Skip to content

Commit bc7ea8e

Browse files
committed
update build readme
1 parent 04039d3 commit bc7ea8e

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

.vscode/c_cpp_properties.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"includePath": [
66
"${workspaceFolder}/src",
77
"${workspaceFolder}/src/**",
8-
"/home/haoict/TiniLinux/output.arm64/host/aarch64-buildroot-linux-gnu/sysroot/usr/include"
8+
"/home/haoict/TiniLinux/output.toolchain_aarch64_aarch64/host/aarch64-buildroot-linux-gnu/sysroot/usr/include",
9+
"/home/haoict/TiniLinux/output.toolchain_x86_64_aarch64/host/aarch64-buildroot-linux-gnu/sysroot/usr/include",
10+
"/home/haoict/TiniLinux/output.toolchain_x86_64_x86_64/host/x86_64-buildroot-linux-gnu/sysroot/usr/include"
911
],
1012
"compilerPath": "/usr/bin/gcc",
1113
"cStandard": "gnu11",

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# simple-terminal
2+
23
Simple Terminal Emulator for embedded Linux handhelds, migrated from SDL1.2 to SDL2 (by haoict)
34

45
<img src="images/st-img1.jpeg?raw=true" alt="Image1" width="250"/>
@@ -7,13 +8,16 @@ Simple Terminal Emulator for embedded Linux handhelds, migrated from SDL1.2 to S
78
<img src="images/st-img1-trimuisp.jpg?raw=true" alt="Image1-TrimuiSP" width="250"/>
89

910
# Build
11+
1012
For generic linux:
13+
1114
```bash
1215
sudo apt install build-essential libsdl2-dev libsdl2-ttf-dev
1316
make
1417
```
1518

1619
# Run
20+
1721
```bash
1822
./simple-terminal
1923
./simple-terminal -font 2 # with alternative embedded font
@@ -24,10 +28,11 @@ make
2428
./simple-terminal -rotate 270
2529

2630
# run commands when open
27-
./simple-terminal -r "ls -la" "uname -a" whoami
31+
./simple-terminal -r "ls -la" "uname -a" whoami
2832
```
2933

3034
## Options
35+
3136
- **-scale**: scale factor for window sizing (e.g., `-scale 2.0`).
3237
- **-font**: embedded font id (`1..5`) or path to a TTF file.
3338
- **-fontsize**: TTF font size when using `-font /path/to.ttf`.
@@ -37,20 +42,22 @@ make
3742
- **-q**: quiet mode.
3843

3944
# Build with buildroot toolchain
45+
4046
you can build everything for the target device with buildroot:
4147
https://github.com/haoict/TiniLinux/blob/master/README.md#build
4248

4349
or build the toolchain only and build simple-terminal separately
50+
4451
```bash
4552
# build toolchain
46-
cd buildroot
47-
make O=../TiniLinux/output.arm64 BR2_EXTERNAL=../TiniLinux toolchain_arm64_defconfig
48-
cd ../TiniLinux
53+
cd TiniLinux
54+
./make-board-build.sh configs/toolchain_x86_64_aarch64_defconfig
55+
cd output.toolchain_x86_64_aarch64
4956
make -j $(nproc)
5057

5158
# build simple-terminal
52-
cd package/simple-terminal
53-
export CROSS_COMPILE=/home/haoict/TiniLinux/output.arm64/host/bin/aarch64-buildroot-linux-gnu-
59+
cd SimpleTerminal
60+
export CROSS_COMPILE=/home/haoict/TiniLinux/output.toolchain_x86_64_aarch64/host/bin/aarch64-none-linux-gnu-
5461
make
5562
```
5663

@@ -59,6 +66,7 @@ make
5966
https://simple-terminal-psi.vercel.app
6067

6168
# License & Credits
69+
6270
MIT License
63-
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.
71+
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.
6472
https://github.com/benob/rs97_st-sdl

0 commit comments

Comments
 (0)