diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-06-23 16:49:58 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-07-20 13:14:41 +0300 |
commit | febe3ed3222f92672d3e0471893aa8ab23275c28 (patch) | |
tree | e5726511bbcbe63436b194940a3bc408fdc7509e /tools/crypto/ccp/Makefile | |
parent | e2cfe05e9277b5a7abbbc186fec1ad37348dd956 (diff) | |
download | linux-febe3ed3222f92672d3e0471893aa8ab23275c28.tar.xz |
crypto: ccp - Add a sample library for ioctl use
Add a small shared library that demonstrates the usage of the
IOCTL interface. This library can be linked to but, is
intended to be loaded and used by higher level languages
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/crypto/ccp/Makefile')
-rw-r--r-- | tools/crypto/ccp/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/crypto/ccp/Makefile b/tools/crypto/ccp/Makefile new file mode 100644 index 000000000000..ae4a66d1558a --- /dev/null +++ b/tools/crypto/ccp/Makefile @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-only +CFLAGS += -D__EXPORTED_HEADERS__ -I../../../include/uapi -I../../../include + +TARGET = dbc_library.so + +all: $(TARGET) + +dbc_library.so: dbc.c + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< + chmod -x $@ + +clean: + $(RM) $(TARGET) |