Commit 8e970a64 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

osie-coupler and beremiz-runtime: use default slapos gcc

parent 8360f221
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
[buildout] [buildout]
parts = parts =
open62541 open62541
gcc-10.2
extends = extends =
../cmake/buildout.cfg ../cmake/buildout.cfg
../patch/buildout.cfg ../patch/buildout.cfg
...@@ -12,6 +11,7 @@ extends = ...@@ -12,6 +11,7 @@ extends =
../defaults.cfg ../defaults.cfg
[gcc] [gcc]
# we should remove this when open62541 compiles with gcc 12
max_version = 11 max_version = 11
[open62541] [open62541]
...@@ -38,4 +38,4 @@ configure-options = ...@@ -38,4 +38,4 @@ configure-options =
post-install = post-install =
cp src/pubsub/*.h deps/open62541_queue.h @@LOCATION@@/include cp src/pubsub/*.h deps/open62541_queue.h @@LOCATION@@/include
environment = environment =
PATH=${gcc-10.2:location}/bin:${python3:location}/bin:${patch:location}/bin:%(PATH)s PATH=${gcc:prefix}/bin:${python3:location}/bin:${patch:location}/bin:%(PATH)s
...@@ -7,7 +7,7 @@ extends = ...@@ -7,7 +7,7 @@ extends =
../../component/numpy/buildout.cfg ../../component/numpy/buildout.cfg
../../component/lxml-python/buildout.cfg ../../component/lxml-python/buildout.cfg
../../component/python-sslpsk/buildout.cfg ../../component/python-sslpsk/buildout.cfg
../../component/gcc/buildout.cfg ../../component/defaults.cfg
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
...@@ -18,13 +18,13 @@ parts = ...@@ -18,13 +18,13 @@ parts =
python-interpreter python-interpreter
matiec matiec
open62541 open62541
gcc-10.2
[python] [python]
part = python2.7 part = python2.7
[gcc] [gcc]
part = gcc-10.2 # we want this SR to use a fixed gcc (so that we have the same gcc as open62541 component)
max_version = 0
[open62541] [open62541]
configure-options = configure-options =
...@@ -95,7 +95,7 @@ context = ...@@ -95,7 +95,7 @@ context =
section buildout buildout section buildout buildout
raw template_monitor ${monitor2-template:output} raw template_monitor ${monitor2-template:output}
key openssl_location openssl:location key openssl_location openssl:location
key gcc_location gcc-10.2:location key gcc_location gcc:prefix
[versions] [versions]
Twisted = 20.3.0 Twisted = 20.3.0
......
[buildout] [buildout]
parts = parts =
gcc-10.2
open62541 open62541
compile-coupler compile-coupler
slapos-cookbook slapos-cookbook
...@@ -12,7 +11,11 @@ extends = ...@@ -12,7 +11,11 @@ extends =
../../component/open62541/buildout.cfg ../../component/open62541/buildout.cfg
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../component/gcc/buildout.cfg ../../component/defaults.cfg
[gcc]
# we want this SR to use a fixed gcc (so that we have the same gcc as open62541 component)
max_version = 0
# disable warning for time_t type structure after 2038 # disable warning for time_t type structure after 2038
# https://www.gnu.org/software/gnulib/manual/html_node/Avoiding-the-year-2038-problem.html # https://www.gnu.org/software/gnulib/manual/html_node/Avoiding-the-year-2038-problem.html
...@@ -62,7 +65,7 @@ recipe = slapos.recipe.cmmi ...@@ -62,7 +65,7 @@ recipe = slapos.recipe.cmmi
path = ${osie-repository:location}/coupler path = ${osie-repository:location}/coupler
bin_dir = ${:path}/bin/ bin_dir = ${:path}/bin/
environment = environment =
PATH=${gcc-10.2:location}/bin:/usr/bin PATH=${gcc:prefix}/bin:/usr/bin
OPEN62541_HOME = ${open62541:location} OPEN62541_HOME = ${open62541:location}
OPEN62541_SOURCE_HOME = ${open62541-source:location} OPEN62541_SOURCE_HOME = ${open62541-source:location}
C_COMPILER_EXTRA_FLAGS = -L ${mbedtls:location}/lib -Wl,-rpath=${mbedtls:location}/lib -l:libopen62541.so -L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -I${open62541:location}/include -I${open62541-source:location}/src/pubsub/ -I${open62541-source:location}/deps C_COMPILER_EXTRA_FLAGS = -L ${mbedtls:location}/lib -Wl,-rpath=${mbedtls:location}/lib -l:libopen62541.so -L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -I${open62541:location}/include -I${open62541-source:location}/src/pubsub/ -I${open62541-source:location}/deps
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment