Skip to content

Commit

Permalink
Remove unnecessary stub libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Keukhan committed Dec 27, 2024
1 parent b1c1a02 commit d736c00
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 122 deletions.
2 changes: 1 addition & 1 deletion misc/install_nvidia_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fail_exit()
}

##########################################################################################
# Drivers for Ubuntu 18.04 / 20.04
# Drivers for Ubuntu 18.04 / 20.04 / 22.04
##########################################################################################
install_base_ubuntu()
{
Expand Down
23 changes: 2 additions & 21 deletions misc/stubs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ CFLAGS = -Wall -fPIC
LDFLAGS = -shared

# Source files
SOURCES = libnvidia-ml_stub.c libcuda_stub.c libxma2api_stub.c libxrm_stub.c libxrt_core_stub.c libnppig_stub.c libnppicc_stub.c
SOURCES = libnvidia-ml_stub.c libcuda_stub.c libxma2api_stub.c libxrm_stub.c libxrt_core_stub.c

# Object files
OBJECTS = $(SOURCES:.c=.o)

# Output libraries
TARGETS = libnvidia-ml.so.1 libcuda.so.1 libxma2api.so.2 \
libxrm.so.1 libxrt_core.so.2 libnppig.so.10 libnppig.so.11 libnppig.so.12 libnppicc.so.10 libnppicc.so.11 libnppicc.so.12
TARGETS = libnvidia-ml.so.1 libcuda.so.1 libxma2api.so.2 libxrm.so.1 libxrt_core.so.2

# Install path prefix (default: /opt/ovenmediaengine)
PREFIX ?= /opt/ovenmediaengine
Expand All @@ -33,24 +32,6 @@ libnvidia-ml.so.1: libnvidia-ml_stub.o
libcuda.so.1: libcuda_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppig.so.10: libnppig_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppig.so.11: libnppig_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppig.so.12: libnppig_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppicc.so.10: libnppicc_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppicc.so.11: libnppicc_stub.o
$(CC) $(LDFLAGS) -o $@ $^

libnppicc.so.12: libnppicc_stub.o
$(CC) $(LDFLAGS) -o $@ $^

###############################################
# Stubs library for xilinx driver
###############################################
Expand Down
44 changes: 0 additions & 44 deletions misc/stubs/libnppicc_stub.c

This file was deleted.

56 changes: 0 additions & 56 deletions misc/stubs/libnppig_stub.c

This file was deleted.

0 comments on commit d736c00

Please sign in to comment.