diff --git a/osi/core/Makefile.sdk b/osi/core/Makefile.sdk new file mode 100644 index 0000000..40e4b73 --- /dev/null +++ b/osi/core/Makefile.sdk @@ -0,0 +1,37 @@ +# Copyright (c) 2020 NVIDIA CORPORATION. All Rights Reserved. +# +# NVIDIA CORPORATION and its licensors retain all intellectual property +# and proprietary rights in and to this software, related documentation +# and any modifications thereto. Any use, reproduction, disclosure or +# distribution of this software and related documentation without an express +# license agreement from NVIDIA CORPORATION is strictly prohibited. + +include ../../../../../../../../../drive-t186ref-qnx/make/nvdefs.mk + +TARGETS = libnvethernetrm.so + +CFLAGS += -g -Wall $(NV_PLATFORM_OPT) $(NV_PLATFORM_CFLAGS) +CPPFLAGS = $(NV_PLATFORM_SDK_INC) $(NV_PLATFORM_CPPFLAGS) -I../../../include -I../dma -I../common/include +CPPFLAGS += -DNV_IS_SAFETY=$(NV_PLATFORM_SAFETY) +LDFLAGS := \ + $(NV_PLATFORM_SDK_LIB) \ + $(NV_PLATFORM_LDFLAGS) +LDFLAGS += -shared + +OBJS := eqos_core.o +OBJS += eqos_mmc.o +OBJS += osi_core.o +OBJS += ./../common/osi_common.o +OBJS += ./../common/eqos_common.o + +LDLIBS += -lnvethernetcl +LDLIBS += -lnvos_s3_safety + +CFLAGS += -D_FILE_OFFSET_BITS=64 + +$(TARGETS): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(STRIP) --strip-unneeded -R .comment -R .GCC.command.line $@ + +clean clobber: + rm -rf $(OBJS) $(TARGETS) diff --git a/osi/dma/Makefile.sdk b/osi/dma/Makefile.sdk new file mode 100644 index 0000000..55ac311 --- /dev/null +++ b/osi/dma/Makefile.sdk @@ -0,0 +1,37 @@ +# Copyright (c) 2020 NVIDIA CORPORATION. All Rights Reserved. +# +# NVIDIA CORPORATION and its licensors retain all intellectual property +# and proprietary rights in and to this software, related documentation +# and any modifications thereto. Any use, reproduction, disclosure or +# distribution of this software and related documentation without an express +# license agreement from NVIDIA CORPORATION is strictly prohibited. + +include ../../../../../../../../../drive-t186ref-qnx/make/nvdefs.mk + +TARGETS = libnvethernetcl.so + +CFLAGS += -g -Wall $(NV_PLATFORM_OPT) $(NV_PLATFORM_CFLAGS) +CPPFLAGS = $(NV_PLATFORM_SDK_INC) $(NV_PLATFORM_CPPFLAGS) -I../../../include -I../core -I../common/include +CPPFLAGS += -DNV_IS_SAFETY=$(NV_PLATFORM_SAFETY) +LDFLAGS := \ + $(NV_PLATFORM_SDK_LIB) \ + $(NV_PLATFORM_LDFLAGS) +LDFLAGS += -shared + +OBJS := eqos_dma.o +OBJS += osi_dma.o +OBJS += osi_dma_txrx.o +OBJS += ./../common/osi_common.o +OBJS += ./../common/eqos_common.o + +LDLIBS += -lnvethernetrm +LDLIBS += -lnvos_s3_safety + +CFLAGS += -D_FILE_OFFSET_BITS=64 + +$(TARGETS): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(STRIP) --strip-unneeded -R .comment -R .GCC.command.line $@ + +clean clobber: + rm -rf $(OBJS) $(TARGETS)