Skip to content
Snippets Groups Projects
Commit 74c27da4 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Using find_symvers for dolphin kernel build

parent 52e9109e
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!406Using find_symvers for dolphin kernel build
...@@ -35,6 +35,9 @@ endif ...@@ -35,6 +35,9 @@ endif
ifndef RTS_LOGGER_SYM ifndef RTS_LOGGER_SYM
RTS_LOGGER_SYM := $(shell $(srcdir)/find_module_symvers -q rts-logger) RTS_LOGGER_SYM := $(shell $(srcdir)/find_module_symvers -q rts-logger)
endif endif
ifndef DOLPHIN_SYM
DOLPHIN_SYM := $(shell $(srcdir)/find_module_symvers -q ligo-dolphin-ix)
endif
%: %:
env RCG_SRC_DIR=$(top_srcdir) \ env RCG_SRC_DIR=$(top_srcdir) \
...@@ -43,6 +46,7 @@ endif ...@@ -43,6 +46,7 @@ endif
GPSTIME_SYM=$(GPSTIME_SYM) \ GPSTIME_SYM=$(GPSTIME_SYM) \
RTS_CPU_ISOLATOR_SYM=$(RTS_CPU_ISOLATOR_SYM) \ RTS_CPU_ISOLATOR_SYM=$(RTS_CPU_ISOLATOR_SYM) \
RTS_LOGGER_SYM=$(RTS_LOGGER_SYM) \ RTS_LOGGER_SYM=$(RTS_LOGGER_SYM) \
DOLPHIN_SYM="$(DOLPHIN_SYM)" \ #Quote because we will have multiple symvers
$(srcdir)/feCodeGen.pl $@.mdl $@ $(srcdir)/feCodeGen.pl $@.mdl $@
all: all:
...@@ -87,6 +87,7 @@ $mbufsymfile = $ENV{"MBUF_SYM"}; ...@@ -87,6 +87,7 @@ $mbufsymfile = $ENV{"MBUF_SYM"};
$gpssymfile = $ENV{"GPSTIME_SYM"}; $gpssymfile = $ENV{"GPSTIME_SYM"};
$cpuisolatorfile = $ENV{"RTS_CPU_ISOLATOR_SYM"}; $cpuisolatorfile = $ENV{"RTS_CPU_ISOLATOR_SYM"};
$rtsloggerfile = $ENV{"RTS_LOGGER_SYM"}; $rtsloggerfile = $ENV{"RTS_LOGGER_SYM"};
$dolphinsymfile = $ENV{"DOLPHIN_SYM"};
$dolphinGen = 2; $dolphinGen = 2;
if (! length $rcg_src_dir) { $rcg_src_dir = "$currWorkDir/../../.."; } if (! length $rcg_src_dir) { $rcg_src_dir = "$currWorkDir/../../.."; }
......
...@@ -16,7 +16,7 @@ def print_symvers_in_dir_and_exit(modsymDir): ...@@ -16,7 +16,7 @@ def print_symvers_in_dir_and_exit(modsymDir):
if len(symversFiles) > 0: if len(symversFiles) > 0:
for fileName in symversFiles: for fileName in symversFiles:
print(fileName) print(fileName + " ", end='')
exit() exit()
......
...@@ -172,9 +172,8 @@ if ($::iopModel > -1) { #************ SETUP FOR IOP *************** ...@@ -172,9 +172,8 @@ if ($::iopModel > -1) { #************ SETUP FOR IOP ***************
if ($::dolphinGen == 2) { if ($::dolphinGen == 2) {
print OUTM "#Enable use of PCIe RFM Network Gen 2\n"; print OUTM "#Enable use of PCIe RFM Network Gen 2\n";
print OUTM "DISDIR = /opt/srcdis\n"; print OUTM "DISDIR = /opt/srcdis\n";
print OUTM "KERNEL_RELEASE := \$(shell uname -r)\n";
print OUTM "KBUILD_EXTRA_SYMBOLS += /opt/DIS/lib/modules/\$(KERNEL_RELEASE)/dis_sisci.symvers\n"; print OUTM "KBUILD_EXTRA_SYMBOLS += $::dolphinsymfile\n";
print OUTM "EXTRA_CFLAGS += -DDOLPHIN_TEST=1 -DDIS_BROADCAST=0x80000000\n"; print OUTM "EXTRA_CFLAGS += -DDOLPHIN_TEST=1 -DDIS_BROADCAST=0x80000000\n";
print OUTM "EXTRA_CFLAGS += -DOS_IS_LINUX=1 -D_DIS_KERNEL_=1 \n"; print OUTM "EXTRA_CFLAGS += -DOS_IS_LINUX=1 -D_DIS_KERNEL_=1 \n";
print OUTM "EXTRA_CFLAGS += -I\$(DISDIR)/src/include/ \n"; print OUTM "EXTRA_CFLAGS += -I\$(DISDIR)/src/include/ \n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment