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