Name Date Size #Lines LOC

..--

.vscode/H--5151

apps/H--9,8705,342

docs/H--479354

gnuefi/H--3,2422,324

inc/H--27,18217,824

lib/H--10,7706,702

tools/H--179124

.clang-formatH A D28-Nov-202320.1 KiB689684

.gitignoreH A D28-Nov-202394 1111

ChangeLogH A D14-May-201551.9 KiB1,325964

LICENSEH A D28-Nov-202317.7 KiB340281

Make.defaultsH A D28-Nov-20236.4 KiB209176

Make.rulesH A D15-Jun-20232.4 KiB6757

MakefileH A D03-Dec-20234.9 KiB16899

README.mdH A D29-Nov-2023812 5131

env.mkH A D03-Dec-2023355 1613

README.md

1# DragonStub
2
3A generic standalone EFI stub for DragonOS kernel, which based on the Linux EFI stub.
4
5## Requirements
6
7To build the stub, you need to have the following packages installed:
8
9```bash
10sudo apt install -y gcc-riscv64-linux-gnu
11```
12
13## Building
14
15```bash
16ARCH=riscv64 make -j $(nproc)
17```
18
19build with payload:
20
21```bash
22ARCH=riscv64 PAYLOAD_ELF=path/to/payload.elf make -j $(nproc)
23```
24
25## Run
26
27Dry run:
28
29```bash
30ARCH=riscv64 make run
31```
32
33Run with payload:
34
35```bash
36ARCH=riscv64 PAYLOAD_ELF=path/to/payload.elf make run
37```
38
39## Maintainer
40
41- longjin <longjin@dragonos.org>
42
43## License
44
45DragonStub is licensed under the GPLv2 License. See [LICENSE](LICENSE) for details.
46
47## References
48
49- GNU-EFI: DragonStub built with gnu-efi
50- Linux-EFIStub: In Linux kernel source tree: drivers/firmware/efi/libstub
51