Skip to content

Commit 499734e

Browse files
committed
WIP
1 parent 4d9c3cf commit 499734e

File tree

4 files changed

+34
-57
lines changed

4 files changed

+34
-57
lines changed

.github/workflows/docker-image-raspberrypi-extract-sysroot.yml renamed to .github/workflows/docker-image-raspberrypi-extract-sysroot.yml.notyet

File renamed without changes.

build-linux/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ RUN rm -Rf boost_$boost_version \
7777
#############################################################
7878
#TODO tester version plus récente (voire installée par apt-get)
7979
ARG openssl_version=1.1.1k
80-
WORKDIR ${WORK_DIR}
81-
RUN wget --no-check-certificate --no-verbose https://www.openssl.org/source/openssl-1.1.1k.tar.gz \
82-
&& tar xzf openssl-${openssl_version}.tar.gz
83-
WORKDIR ${WORK_DIR}/openssl-${openssl_version}
84-
RUN ./Configure linux-x86_64 -fPIC --prefix=${YADOMS_DEPS}/openssl
85-
RUN make -j$(nproc)
86-
RUN make install
87-
WORKDIR ${WORK_DIR}
88-
RUN rm -Rf openssl-${openssl_version} \
89-
&& rm openssl-${openssl_version}.tar.gz
80+
# WORKDIR ${WORK_DIR}
81+
# RUN wget --no-check-certificate --no-verbose https://www.openssl.org/source/openssl-1.1.1k.tar.gz \
82+
# && tar xzf openssl-${openssl_version}.tar.gz
83+
# WORKDIR ${WORK_DIR}/openssl-${openssl_version}
84+
# RUN ./Configure linux-x86_64 -fPIC --prefix=${YADOMS_DEPS}/openssl
85+
# RUN make -j$(nproc)
86+
# RUN make install
87+
# WORKDIR ${WORK_DIR}
88+
# RUN rm -Rf openssl-${openssl_version} \
89+
# && rm openssl-${openssl_version}.tar.gz
9090

9191

9292

build-linux/entrypoint_docker.sh

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ cd /work
55

66
echo "Create makefile"
77
cmake -S sources \
8-
-B projects-linux \
9-
-DYADOMS_BINARY_DIR=bin-linux \
8+
-B projects-Linux \
9+
-DYADOMS_BINARY_DIR=bin-Linux \
1010
-DCMAKE_BUILD_TYPE=Release \
1111
-DCOTIRE_USE=ON \
1212
-DCOTIRE_USE_UNITY=ON \
@@ -28,43 +28,18 @@ cmake -S sources \
2828
# -DOPENCV_ROOT="$YADOMS_DEPS/opencv-rpi2-armhf" \
2929
# -DLIBUDEV_ROOT="$YADOMS_DEPS/libudev"
3030

31-
#TODO utiliser ou faire le ménage de COTIRE_USE et COTIRE_USE_UNITY
31+
#TODO utiliser ou faire le ménage de COTIRE_USE et COTIRE_USE_UNITY (voir ce que ça donne avec --target all_unity )
3232
echo "Build Yadoms"
33-
cmake --build projects-linux \
33+
cmake --build projects-Linux \
3434
-j$(nproc)
3535

36-
# echo "Build Yadoms package"
37-
# cmake --build projects-linux --target package -j$(nproc)
38-
39-
# echo "Build Yadoms update package"
40-
# cd update
41-
# sh make_package.sh RaspberryPI
42-
# cd -
43-
44-
45-
##TODO virer
46-
####################################################################################
47-
# #!/bin/bash
48-
# set -e
49-
50-
# cd /work
51-
52-
# echo "Copy build config file"
53-
# cp $YADOMS_DEPS_PATH/CMakeListsUserConfig.txt sources/
54-
55-
# echo "Display config content"
56-
# cat sources/CMakeListsUserConfig.txt
57-
58-
# echo "Create makefile"
59-
# sh cmake_linux.sh r
36+
echo "Build Yadoms package"
37+
cmake --build projects-Linux \
38+
--target package \
39+
-j$(nproc)
6040

61-
# echo "Build Yadoms"
62-
# cd projects
63-
# make all_unity
64-
# echo "Build Yadoms package"
65-
# make package
66-
# cd -
41+
echo "Build Yadoms update package"
42+
cd update
43+
sh make_package.sh Linux
44+
cd -
6745

68-
# echo "Build Yadoms update package"
69-
# cd update
70-
# sh make_package.sh Linux

build-raspberrypi/entrypoint_docker.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ cd /work
55

66
echo "Create makefile"
77
cmake -S sources \
8-
-B projects-rpi \
9-
-DYADOMS_BINARY_DIR=bin-rpi \
8+
-B projects-RaspberryPI \
9+
-DYADOMS_BINARY_DIR=bin-RaspberryPI \
1010
-DCMAKE_TOOLCHAIN_FILE=$YADOMS_DEPS/toolchain-rpi2.cmake \
1111
-DCMAKE_BUILD_TYPE=Release \
1212
-DCOTIRE_USE=ON \
@@ -27,15 +27,17 @@ cmake -S sources \
2727
-DOPENCV_ROOT="$YADOMS_DEPS/opencv-rpi2-armhf" \
2828
-DLIBUDEV_ROOT="$YADOMS_DEPS/libudev"
2929

30-
#TODO utiliser ou faire le ménage de COTIRE_USE et COTIRE_USE_UNITY
30+
#TODO utiliser ou faire le ménage de COTIRE_USE et COTIRE_USE_UNITY (voir ce que ça donne avec --target all_unity )
3131
echo "Build Yadoms"
32-
cmake --build projects-rpi \
32+
cmake --build projects-RaspberryPI \
3333
-j$(nproc)
3434

35-
# echo "Build Yadoms package"
36-
# cmake --build projects-rpi --target package -j$(nproc)
35+
echo "Build Yadoms package"
36+
cmake --build projects-RaspberryPI \
37+
--target package \
38+
-j$(nproc)
3739

38-
# echo "Build Yadoms update package"
39-
# cd update
40-
# sh make_package.sh RaspberryPI
41-
# cd -
40+
echo "Build Yadoms update package"
41+
cd update
42+
sh make_package.sh RaspberryPI
43+
cd -

0 commit comments

Comments
 (0)