linuxkm: use EXPORT_SYMBOL_NS_GPL() for exports.
This commit is contained in:
parent
c2c2e5b4f5
commit
6160da243d
@ -167,9 +167,9 @@ $(src)/linuxkm/module_exports.c: $(src)/linuxkm/module_exports.c.template $(WOLF
|
||||
awk '/^ *[0-9]+: / { \
|
||||
if ($$8 !~ /^(wc_|wolf|WOLF|TLSX_)/){next;} \
|
||||
if (($$4 == "FUNC") && ($$5 == "GLOBAL") && ($$6 == "DEFAULT")) { \
|
||||
print "EXPORT_SYMBOL_NS(" $$8 ", WOLFSSL);"; \
|
||||
print "EXPORT_SYMBOL_NS_GPL(" $$8 ", WOLFSSL);"; \
|
||||
} \
|
||||
}' >> $@
|
||||
@echo -e '#ifndef NO_CRYPT_TEST\nEXPORT_SYMBOL_NS(wolfcrypt_test, WOLFSSL);\n#endif' >> $@
|
||||
@echo -e '#ifndef NO_CRYPT_TEST\nEXPORT_SYMBOL_NS_GPL(wolfcrypt_test, WOLFSSL);\n#endif' >> $@
|
||||
|
||||
clean-files := module_exports.c linuxkm src wolfcrypt/src wolfcrypt/test wolfcrypt
|
||||
|
@ -41,6 +41,9 @@
|
||||
#ifndef EXPORT_SYMBOL_NS
|
||||
#define EXPORT_SYMBOL_NS(sym, ns) EXPORT_SYMBOL(sym)
|
||||
#endif
|
||||
#ifndef EXPORT_SYMBOL_NS_GPL
|
||||
#define EXPORT_SYMBOL_NS_GPL(sym, ns) EXPORT_SYMBOL_GPL(sym)
|
||||
#endif
|
||||
|
||||
#include <wolfssl/wolfcrypt/memory.h>
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user