bsdkm: example cleanup.
parent
5f58c2c6e9
commit
ff0fc6ce88
|
|
@ -390,3 +390,11 @@ tpm/evp_tpm
|
||||||
\.cproject
|
\.cproject
|
||||||
\.project
|
\.project
|
||||||
\.autotools
|
\.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
|
## About
|
||||||
|
|
||||||
|
|
||||||
Tested on FreeBSD 14.2:
|
Tested on FreeBSD 14.2:
|
||||||
```sh
|
```sh
|
||||||
uname -rsm
|
uname -rsm
|
||||||
|
|
@ -13,10 +12,10 @@ FreeBSD 14.2-RELEASE amd64
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd ~/
|
cd ~/
|
||||||
git clone https://github.com/philljj/wolfssl.git
|
git clone https://github.com/wolfSSL/wolfssl.git
|
||||||
cd ~/wolfssl && git co bsdkm
|
cd ~/wolfssl
|
||||||
./autogen.sh
|
./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
|
file bsdkm/libwolfssl.ko
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,11 +115,11 @@ wc_aes_test_end:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static moduledata_t hellomod = {
|
static moduledata_t example_mod = {
|
||||||
"bsdkm_example", /* name */
|
"bsdkm_example", /* name */
|
||||||
example_loader, /* loader */
|
example_loader, /* loader */
|
||||||
NULL /* extra data */
|
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);
|
MODULE_DEPEND(bsdkm_example, libwolfssl, 1, 1, 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue