From 9dd15f25e0706c8601b38b56a396a8314fa211b4 Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Fri, 10 Feb 2023 12:57:08 -0300 Subject: [PATCH 1/2] Removing syno-toolkit --- docker/syno-toolkit/Dockerfile | 15 ----- docker/syno-toolkit/PLATFORMS | 9 --- docker/syno-toolkit/build.sh | 61 ------------------- .../rootfs/etc/profile.d/login.sh | 10 --- docker/syno-toolkit/rootfs/usr/bin/do.sh | 56 ----------------- 5 files changed, 151 deletions(-) delete mode 100644 docker/syno-toolkit/Dockerfile delete mode 100644 docker/syno-toolkit/PLATFORMS delete mode 100755 docker/syno-toolkit/build.sh delete mode 100755 docker/syno-toolkit/rootfs/etc/profile.d/login.sh delete mode 100755 docker/syno-toolkit/rootfs/usr/bin/do.sh diff --git a/docker/syno-toolkit/Dockerfile b/docker/syno-toolkit/Dockerfile deleted file mode 100644 index 9f505608..00000000 --- a/docker/syno-toolkit/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM scratch -ARG PLATFORM -ARG TOOLKIT_VER -ARG CACHE_DIR - -ENV PLATFORM=${PLATFORM} TOOLKIT_VER=${TOOLKIT_VER} -ADD ${CACHE_DIR}/base_env-${TOOLKIT_VER}.txz / -ADD ${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.env.txz / -ADD ${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.dev.txz / -ADD rootfs / - -WORKDIR /input -VOLUME /input /output - -ENTRYPOINT ["/usr/bin/do.sh"] diff --git a/docker/syno-toolkit/PLATFORMS b/docker/syno-toolkit/PLATFORMS deleted file mode 100644 index 2c77de1e..00000000 --- a/docker/syno-toolkit/PLATFORMS +++ /dev/null @@ -1,9 +0,0 @@ -bromolow 3.10.108 -apollolake 4.4.180 -broadwell 4.4.180 -broadwellnk 4.4.180 -denverton 4.4.180 -geminilake 4.4.180 -v1000 4.4.180 -r1000 4.4.180 -epyc7002 5.10.55 diff --git a/docker/syno-toolkit/build.sh b/docker/syno-toolkit/build.sh deleted file mode 100755 index d19ab396..00000000 --- a/docker/syno-toolkit/build.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -set -e - -CACHE_DIR="cache" -PLATFORM_FILE="PLATFORMS" -TOOLKIT_VER=7.1 - -############################################################################### -function trap_cancel() { - echo "Press Control+C once more terminate the process (or wait 2s for it to restart)" - sleep 2 || exit 1 -} -trap trap_cancel SIGINT SIGTERM -cd `dirname $0` - -# Read platforms/kerver version -echo "Reading platforms" -declare -A PLATFORMS -while read PLATFORM KVER; do - PLATFORMS[${PLATFORM}]="${KVER}" -done < ${PLATFORM_FILE} - -# Download toolkits -mkdir -p ${CACHE_DIR} - -# Check base environment -echo -n "Checking ${CACHE_DIR}/base_env-${TOOLKIT_VER}.txz... " -if [ ! -f "${CACHE_DIR}/base_env-${TOOLKIT_VER}.txz" ]; then - URL="https://global.download.synology.com/download/ToolChain/toolkit/${TOOLKIT_VER}/${PLATFORM}/base_env-${TOOLKIT_VER}.txz" - echo "Downloading ${URL}" - curl -L "${URL}" -o "${CACHE_DIR}/base_env-${TOOLKIT_VER}.txz" -else - echo "OK" -fi - -# Check all platforms -for PLATFORM in ${!PLATFORMS[@]}; do - echo -n "Checking ${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.dev.txz... " - if [ ! -f "${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.dev.txz" ]; then - URL="https://global.download.synology.com/download/ToolChain/toolkit/${TOOLKIT_VER}/${PLATFORM}/ds.${PLATFORM}-${TOOLKIT_VER}.dev.txz" - echo "Downloading ${URL}" - curl -L "${URL}" -o "${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.dev.txz" - else - echo "OK" - fi - echo -n "Checking ${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.env.txz... " - if [ ! -f "${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.env.txz" ]; then - URL="https://global.download.synology.com/download/ToolChain/toolkit/${TOOLKIT_VER}/${PLATFORM}/ds.${PLATFORM}-${TOOLKIT_VER}.env.txz" - echo "Downloading ${URL}" - curl -L "${URL}" -o "${CACHE_DIR}/ds.${PLATFORM}-${TOOLKIT_VER}.env.txz" - else - echo "OK" - fi -done - -# Generate docker images -for PLATFORM in ${!PLATFORMS[@]}; do - docker buildx build . --build-arg PLATFORM=${PLATFORM} --build-arg TOOLKIT_VER=${TOOLKIT_VER} --build-arg CACHE_DIR="${CACHE_DIR}" \ - --tag fbelavenuto/syno-toolkit:${PLATFORM}-${TOOLKIT_VER} --load -done diff --git a/docker/syno-toolkit/rootfs/etc/profile.d/login.sh b/docker/syno-toolkit/rootfs/etc/profile.d/login.sh deleted file mode 100755 index aa0a4360..00000000 --- a/docker/syno-toolkit/rootfs/etc/profile.d/login.sh +++ /dev/null @@ -1,10 +0,0 @@ -export PATH="/usr/local/x86_64-pc-linux-gnu/bin:${PATH}" -[[ "$-" != *i* ]] && return -export LS_OPTIONS='--color=auto' -export SHELL='linux' -eval "`dircolors`" -alias ls='ls -F -h --color=always -v --author --time-style=long-iso' -alias ll='ls -l' -alias l='ls -l -a' -alias h='history 25' -alias j='jobs -l' diff --git a/docker/syno-toolkit/rootfs/usr/bin/do.sh b/docker/syno-toolkit/rootfs/usr/bin/do.sh deleted file mode 100755 index 61bbe0da..00000000 --- a/docker/syno-toolkit/rootfs/usr/bin/do.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash - -set -e - -############################################################################### -function compile-module { - echo -e "Compiling module for \033[7m${PLATFORM}\033[0m..." - cp -R /input /tmp - PARMS="${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m" - if [ -f "/tmp/input/defines.${PLATFORM}" ]; then - PARMS+=" `cat "/tmp/input/defines.${PLATFORM}" | xargs`" - fi - make -j`nproc` -C ${KSRC} M=/tmp/input ${PARMS} modules - while read F; do - strip -g "${F}" - echo "Copying `basename ${F}`" - cp "${F}" "/output" - chown 1000.1000 "/output/`basename ${F}`" - done < <(find /tmp/input -name \*.ko) -} - -############################################################################### -function compile-lkm { - cp -R /input /tmp - make -C "/tmp/input" dev-v7 - strip -g "/tmp/input/redpill.ko" - mv "/tmp/input/redpill.ko" "/output/redpill-dev.ko" - chown 1000.1000 /output/redpill-dev.ko - make -C "/tmp/input" clean - make -C "/tmp/input" prod-v7 - strip -g "/tmp/input/redpill.ko" - mv "/tmp/input/redpill.ko" "/output/redpill-prod.ko" - chown 1000.1000 /output/redpill-prod.ko -} - -############################################################################### -############################################################################### - -if [ $# -lt 1 ]; then - echo "Use: ()" - echo "Commands: shell | compile-module | compile-lkm" - exit 1 -fi -export KSRC="/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-${TOOLKIT_VER}/build" -export LINUX_SRC="/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-${TOOLKIT_VER}/build" -export CROSS_COMPILE="/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-" -export ARCH=x86_64 -export CC="x86_64-pc-linux-gnu-gcc" -export LD="x86_64-pc-linux-gnu-ld" - -case $1 in - shell) shift && bash -l $@ ;; - compile-module) compile-module ;; - compile-lkm) compile-lkm ;; - *) echo "Command not recognized: $1" ;; -esac From c42ce3120f7b032cdfd30c036a3ec2e92cc41191 Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Fri, 10 Feb 2023 13:19:01 -0300 Subject: [PATCH 2/2] new version 1.1-beta2 --- VERSION | 2 +- files/board/arpl/overlayfs/opt/arpl/include/consts.sh | 2 +- files/board/arpl/p1/ARPL-VERSION | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index bfa0c52d..59c26eca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1-beta1 +1.1-beta2 diff --git a/files/board/arpl/overlayfs/opt/arpl/include/consts.sh b/files/board/arpl/overlayfs/opt/arpl/include/consts.sh index 50a74492..21a8faf6 100644 --- a/files/board/arpl/overlayfs/opt/arpl/include/consts.sh +++ b/files/board/arpl/overlayfs/opt/arpl/include/consts.sh @@ -1,5 +1,5 @@ -ARPL_VERSION="1.1-beta1" +ARPL_VERSION="1.1-beta2" # Define paths TMP_PATH="/tmp" diff --git a/files/board/arpl/p1/ARPL-VERSION b/files/board/arpl/p1/ARPL-VERSION index bfa0c52d..59c26eca 100644 --- a/files/board/arpl/p1/ARPL-VERSION +++ b/files/board/arpl/p1/ARPL-VERSION @@ -1 +1 @@ -1.1-beta1 +1.1-beta2