mirror of
https://github.com/lingble/tegra-demo-distro.git
synced 2025-10-29 11:42:26 +00:00
Content imported from the old test distro, with the following modifications: * Removed most custom configuration files * All open-source layers fully included under layers/ * Secureboot support removed * Layout reworked to eliminate extra subdirectory for core layer * Added meta-tegra-support layer for holding common metadata for use by all distro layers * Reworked setup-env script to be usable for multiple distros sharing the repository * Added demo image recipes and packagegroups Signed-off-by: Matt Madison <matt@madison.systems>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
Index: tegra_multimedia_api/tools/ConvertCaffeToTrtModel/Makefile
|
|
===================================================================
|
|
--- tegra_multimedia_api.orig/tools/ConvertCaffeToTrtModel/Makefile
|
|
+++ tegra_multimedia_api/tools/ConvertCaffeToTrtModel/Makefile
|
|
@@ -28,16 +28,8 @@
|
|
#
|
|
###############################################################################
|
|
|
|
-CC = aarch64-linux-gnu-g++
|
|
-
|
|
-INCPATHS = -I/usr/include/aarch64-linux-gnu/
|
|
-CFLAGS = -Wall -std=c++11 $(INCPATHS)
|
|
-
|
|
-CFLAGS += -D ENABLE_TRT
|
|
-
|
|
-LIBPATHS = -L/usr/lib/aarch64-linux-gnu/
|
|
+CXXFLAGS += -Wall -std=c++11 -DENABLE_TRT
|
|
LIBS = -lnvinfer -lnvcaffe_parser
|
|
-LFLAGS = $(LIBPATHS) -Wl,--start-group $(LIBS) -Wl,--end-group
|
|
|
|
SRCFILES = ConvertCaffeToTrtModel_main.cpp
|
|
OUTNAME = ConvertCaffeToTrtModel
|
|
@@ -45,7 +37,7 @@ OUTNAME = ConvertCaffeToTrtModel
|
|
all: $(OUTNAME)
|
|
|
|
$(OUTNAME) : $(SRCFILES)
|
|
- $(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
|
|
+ $(CXX) -o $@ $^ $(CXXFLAGS) -Wl,--start-group $(LIBS) -Wl,--end-group $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -rf $(OUTNAME)
|