Skip to content

Commit ff0fc6c

Browse files
committed
bsdkm: example cleanup.
1 parent 5f58c2c commit ff0fc6c

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,11 @@ tpm/evp_tpm
390390
\.cproject
391391
\.project
392392
\.autotools
393+
394+
# FreeBSD kernel module example
395+
kernel/bsdkm/export_syms
396+
kernel/bsdkm/i386
397+
kernel/bsdkm/bsd_example.ko
398+
kernel/bsdkm/machine
399+
kernel/bsdkm/opt_global.h
400+
kernel/bsdkm/x86

kernel/bsdkm/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## About
44

5-
65
Tested on FreeBSD 14.2:
76
```sh
87
uname -rsm
@@ -13,10 +12,10 @@ FreeBSD 14.2-RELEASE amd64
1312

1413
```sh
1514
cd ~/
16-
git clone https://github.com/philljj/wolfssl.git
17-
cd ~/wolfssl && git co bsdkm
15+
git clone https://github.com/wolfSSL/wolfssl.git
16+
cd ~/wolfssl
1817
./autogen.sh
19-
./configure --enable-freebsdkm --enable-cryptonly --enable-crypttests --enable-all-crypto --disable-asm && make
18+
./configure --enable-freebsdkm --enable-cryptonly --enable-crypttests --enable-all-crypto && make
2019
file bsdkm/libwolfssl.ko
2120
```
2221

kernel/bsdkm/bsd_example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ static int wc_aes_test(void)
115115
return ret;
116116
}
117117

118-
static moduledata_t hellomod = {
118+
static moduledata_t example_mod = {
119119
"bsdkm_example", /* name */
120120
example_loader, /* loader */
121121
NULL /* extra data */
122122
};
123123

124-
DECLARE_MODULE(bsdkm_example, hellomod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
124+
DECLARE_MODULE(bsdkm_example, example_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
125125
MODULE_DEPEND(bsdkm_example, libwolfssl, 1, 1, 1);

0 commit comments

Comments
 (0)