File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
329330clean-files := linuxkm src wolfcrypt
You can’t perform that action at this time.
0 commit comments