Skip to content

Commit d73af7a

Browse files
authored
Merge pull request #9383 from douzzer/20251104-linuxkm-Kbuild-EXPORT_SYMBOL
20251104-linuxkm-Kbuild-EXPORT_SYMBOL
2 parents 9fdcd2e + 6885573 commit d73af7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

linuxkm/Kbuild

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ endif
308308

309309
# auto-generate the exported symbol list, leveraging the WOLFSSL_API visibility tags.
310310
# exclude symbols that don't match wc_* or wolf*.
311+
EXPORT_SYMBOL := EXPORT_SYMBOL_NS_GPL
311312
$(obj)/linuxkm/module_exports.c: $(src)/module_exports.c.template $(WOLFSSL_OBJ_TARGETS) $(obj)/linuxkm/module_hooks.o
312313
@$(RENAME_PIE_TEXT_AND_DATA_SECTIONS)
313314
@cp $< $@ || exit $$?
@@ -321,9 +322,9 @@ $(obj)/linuxkm/module_exports.c: $(src)/module_exports.c.template $(WOLFSSL_OBJ_
321322
$(AWK) '/^ *[0-9]+: / {
322323
if ($$8 !~ /^(wc_|wolf|WOLF|TLSX_)/){next;}
323324
if (($$4 == "FUNC") && ($$5 == "GLOBAL") && ($$6 == "DEFAULT")) {
324-
print "EXPORT_SYMBOL_NS_GPL(" $$8 ", '"$$ns"');";
325+
print "$(EXPORT_SYMBOL)(" $$8 ", '"$$ns"');";
325326
}
326327
}' >> $@ || exit $$?
327-
echo -e "#ifndef NO_CRYPT_TEST\nEXPORT_SYMBOL_NS_GPL(wolfcrypt_test, $${ns});\n#endif" >> $@
328+
echo -e "#ifndef NO_CRYPT_TEST\n$(EXPORT_SYMBOL)(wolfcrypt_test, $${ns});\n#endif" >> $@
328329

329330
clean-files := linuxkm src wolfcrypt

0 commit comments

Comments
 (0)