bsdkm: example cleanup.
parent
5f58c2c6e9
commit
ff0fc6ce88
|
|
@ -390,3 +390,11 @@ tpm/evp_tpm
|
|||
\.cproject
|
||||
\.project
|
||||
\.autotools
|
||||
|
||||
# FreeBSD kernel module example
|
||||
kernel/bsdkm/export_syms
|
||||
kernel/bsdkm/i386
|
||||
kernel/bsdkm/bsd_example.ko
|
||||
kernel/bsdkm/machine
|
||||
kernel/bsdkm/opt_global.h
|
||||
kernel/bsdkm/x86
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
## About
|
||||
|
||||
|
||||
Tested on FreeBSD 14.2:
|
||||
```sh
|
||||
uname -rsm
|
||||
|
|
@ -13,10 +12,10 @@ FreeBSD 14.2-RELEASE amd64
|
|||
|
||||
```sh
|
||||
cd ~/
|
||||
git clone https://github.com/philljj/wolfssl.git
|
||||
cd ~/wolfssl && git co bsdkm
|
||||
git clone https://github.com/wolfSSL/wolfssl.git
|
||||
cd ~/wolfssl
|
||||
./autogen.sh
|
||||
./configure --enable-freebsdkm --enable-cryptonly --enable-crypttests --enable-all-crypto --disable-asm && make
|
||||
./configure --enable-freebsdkm --enable-cryptonly --enable-crypttests --enable-all-crypto && make
|
||||
file bsdkm/libwolfssl.ko
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -115,11 +115,11 @@ wc_aes_test_end:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static moduledata_t hellomod = {
|
||||
static moduledata_t example_mod = {
|
||||
"bsdkm_example", /* name */
|
||||
example_loader, /* loader */
|
||||
NULL /* extra data */
|
||||
};
|
||||
|
||||
DECLARE_MODULE(bsdkm_example, hellomod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
|
||||
DECLARE_MODULE(bsdkm_example, example_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
|
||||
MODULE_DEPEND(bsdkm_example, libwolfssl, 1, 1, 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue