mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
🎨 Compatible with HarmonyOS 6.1 https://github.com/siyuan-note/siyuan/issues/16974
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0328020aec
commit
32f1b90c97
2 changed files with 44 additions and 2 deletions
23
.github/CONTRIBUTING.md
vendored
23
.github/CONTRIBUTING.md
vendored
|
|
@ -62,8 +62,29 @@ Note: In the development environment, the kernel process will not be automatical
|
|||
|
||||
### Harmony
|
||||
|
||||
Only support compilation under Linux, need to install Harmony SDK, and need to modify Go source code, please refer to https://github.com/siyuan-note/siyuan/issues/13184
|
||||
Only support compilation under Linux, need to install Harmony SDK, and need to modify Go source code.
|
||||
|
||||
* `cd kernel/harmony`
|
||||
* `./build.sh` (`./build-win.sh` for Windows Emulator)
|
||||
* https://github.com/siyuan-note/siyuan-harmony
|
||||
|
||||
Modify Go source code:
|
||||
|
||||
1. go/src/runtime/vim tls_arm64.s
|
||||
|
||||
Change the ending `DATA runtime·tls_g+0(SB)/8, $16` to `DATA runtime·tls_g+0(SB)/8, $-144`
|
||||
|
||||
2. go/src/runtime/cgo/gcc_android.c
|
||||
|
||||
Clear the inittls function
|
||||
|
||||
```c
|
||||
inittls(void **tlsg, void **tlsbase)
|
||||
{
|
||||
return;
|
||||
}
|
||||
```
|
||||
3. go/src/net/cgo_resold.go
|
||||
`C.size_t(len(b))` to `C.socklen_t(len(b))`
|
||||
|
||||
For other details, please refer to https://github.com/siyuan-note/siyuan/issues/13184
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue