From af3ed6ae2f3fd4c3f4b8ea62cc3dcbd7a5a47a55 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:13:46 +0800 Subject: [PATCH 01/20] ci: update actions --- .github/workflows/build_release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 94121d7..5cd11ab 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -367,7 +367,7 @@ jobs: LDFLAGS="-all-static -static ${LDFLAGS}" ${TRIPLE}-strip tsschecker/tsschecker${EXE_SUFFIX} - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: ${{ !env.ACT }} with: name: tsschecker_${{ env.OS }}_${{ env.ARCH }} @@ -390,7 +390,7 @@ jobs: echo "EOF" >> $GITHUB_ENV - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: artifacts From 0108fd0ecafd39b3c26e3f4073c52fbf421e207d Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:18:13 +0800 Subject: [PATCH 02/20] remove scheduled runs --- .github/workflows/build_release.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 5cd11ab..cfe6389 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -3,12 +3,6 @@ on: push: pull_request: workflow_dispatch: - schedule: - - cron: '0 0 1 1 *' - - cron: '0 0 1 4 *' - - cron: '0 0 30 6 *' - - cron: '0 0 28 9 *' - - cron: '0 0 27 12 *' env: SSL_LIBRARY: openssl From c40b3dfd7fb7528fb9dbd6af92d508f8e097e166 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:19:23 +0800 Subject: [PATCH 03/20] bump zlib --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index cfe6389..41b5c0e 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -9,7 +9,7 @@ env: LIBPLIST_VERSION: 2.3.0 LIBIMOBILEDEVICE__GLUE_VERSION: 1.0.0 LIBIRECOVERY_VERSION: 1.1.0 - ZLIB_VERSION: 1.3 + ZLIB_VERSION: 1.3.1 LIBZIP_VERSION: 1.9.2 WOLFSSL_VERSION: 5.6.3 OPENSSL_VERSION: 3.1.3 From ce5d1a6272ecef8e67d0ae07f698a3b9a233e655 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:24:02 +0800 Subject: [PATCH 04/20] fix libplist --- .github/workflows/build_release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 41b5c0e..f6cdf8c 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -144,26 +144,19 @@ jobs: make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) make install - - name: build libplist run: | wget -q -nc -P ${BUILD_SOURCE} \ - https://github.com/libimobiledevice/libplist/archive/refs/heads/master.tar.gz - mv ${BUILD_SOURCE}/master.tar.gz ${BUILD_SOURCE}/libplist-master.tar.gz - tar xf ${BUILD_SOURCE}/libplist-master.tar.gz -C ${BUILD_WORK} - - echo "${LIBPLIST_VERSION}" > ${BUILD_WORK}/libplist-master/.tarball-version - - cd ${BUILD_WORK}/libplist-master + https://github.com/libimobiledevice/libplist/archive/${LIBPLIST_VERSION}.tar.gz + tar xf ${BUILD_SOURCE}/${LIBPLIST_VERSION}.tar.gz -C ${BUILD_WORK} + echo "2.3.0" > ${BUILD_WORK}/libplist-${LIBPLIST_VERSION}/.tarball-version + cd ${BUILD_WORK}/libplist-${LIBPLIST_VERSION} PACKAGE_VERSION=${LIBPLIST_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ --without-cython \ --without-tests - sed -i '78d' include/plist/plist.h - sed -i '79,91d' include/plist/plist.h sed -i 's/tools//g' Makefile - - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) make install - name: build libimobiledevice-glue From cef30d0bcf39a256a003fb0cbeb4c9dfcb55f41d Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:26:04 +0800 Subject: [PATCH 05/20] bump libimobiledevice-glue --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index f6cdf8c..0790233 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -7,7 +7,7 @@ on: env: SSL_LIBRARY: openssl LIBPLIST_VERSION: 2.3.0 - LIBIMOBILEDEVICE__GLUE_VERSION: 1.0.0 + LIBIMOBILEDEVICE__GLUE_VERSION: 1.3.1 LIBIRECOVERY_VERSION: 1.1.0 ZLIB_VERSION: 1.3.1 LIBZIP_VERSION: 1.9.2 From 1661d4e8d811fc1446d4e3bd4be18304efa6751c Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:29:33 +0800 Subject: [PATCH 06/20] fix libirecovery --- .github/workflows/build_release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 0790233..cb0715b 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -182,19 +182,14 @@ jobs: mv ${BUILD_SOURCE}/master.tar.gz ${BUILD_SOURCE}/libirecovery-master.tar.gz tar xf ${BUILD_SOURCE}/libirecovery-master.tar.gz -C ${BUILD_WORK} - # Remove readline requirement - sed -i '/readline/,+2d' ${BUILD_WORK}/libirecovery-master/configure.ac - # Disable tools building - sed -i '/tools/d' ${BUILD_WORK}/libirecovery-master/configure.ac - sed -i 's/ tools//' ${BUILD_WORK}/libirecovery-master/Makefile.am - echo "${LIBIRECOVERY_VERSION}" > ${BUILD_WORK}/libirecovery-master/.tarball-version cd ${BUILD_WORK}/libirecovery-master PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ --with-dummy \ - --without-udev + --without-udev \ + --without-tools sed -i '30d' include/libirecovery.h sed -i '31,43d' include/libirecovery.h From ccf7de35bb2688e6adb920c30200bea47f24c68f Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:30:25 +0800 Subject: [PATCH 07/20] remove irecovery patches --- .github/workflows/build_release.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index cb0715b..605fc26 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -191,9 +191,6 @@ jobs: --without-udev \ --without-tools - sed -i '30d' include/libirecovery.h - sed -i '31,43d' include/libirecovery.h - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) make install From c6a0b1b9a71cde2f60341eb02b3ead982397fabb Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:31:20 +0800 Subject: [PATCH 08/20] use all cores --- .github/workflows/build_release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 605fc26..07f332f 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -98,7 +98,7 @@ jobs: ./configure \ --prefix=${BUILD_BASE} \ --static - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build libzip @@ -141,7 +141,7 @@ jobs: -DBUILD_EXAMPLES=OFF \ -DBUILD_DOC=OFF - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build libplist @@ -172,7 +172,7 @@ jobs: PACKAGE_VERSION=${LIBIMOBILEDEVICE__GLUE_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build libirecovery @@ -191,7 +191,7 @@ jobs: --without-udev \ --without-tools - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build wolfssl @@ -221,7 +221,7 @@ jobs: --enable-altcertchains \ --enable-opensslextra - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build openssl @@ -251,7 +251,7 @@ jobs: cd ${BUILD_WORK}/openssl-${OPENSSL_VERSION} CC= CXX= AR= RANLIB= ./Configure no-shared no-tests --cross-compile-prefix=${TRIPLE}- --prefix=${BUILD_BASE} --static -static ${PLATFORM} - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) CC="${CC}" CXX="${CXX}" AR="${AR}" RANLIB="${RANLIB}" + make -j$(nproc) -l$(nproc) CC="${CC}" CXX="${CXX}" AR="${AR}" RANLIB="${RANLIB}" make install_sw DESTDIR="${ROOT}" - name: build tiny-curl @@ -286,7 +286,7 @@ jobs: --enable-libcurl-option \ ${CURL_FLAGS} - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: (not) build libgeneral @@ -320,7 +320,7 @@ jobs: ./autogen.sh \ ${CONFIGURE_FLAGS} - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) + make -j$(nproc) -l$(nproc) make install - name: build tsschecker @@ -342,7 +342,7 @@ jobs: --without-libcrypto \ ${TSSCHECKER_FLAGS} - make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2) \ + make -j$(nproc) -l$(nproc) \ LDFLAGS="-all-static -static ${LDFLAGS}" ${TRIPLE}-strip tsschecker/tsschecker${EXE_SUFFIX} From db63c4237f9b544357c59f62c82153bf5306486f Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:36:18 +0800 Subject: [PATCH 09/20] readline patch --- .github/workflows/build_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 07f332f..198dabc 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -185,6 +185,7 @@ jobs: echo "${LIBIRECOVERY_VERSION}" > ${BUILD_WORK}/libirecovery-master/.tarball-version cd ${BUILD_WORK}/libirecovery-master + sed -i '88,93d' configure.ac PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ --with-dummy \ From 1a9bc60b01196b4a14454d057de0308456c94839 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:38:07 +0800 Subject: [PATCH 10/20] tools patch --- .github/workflows/build_release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 198dabc..d8b4a85 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -186,6 +186,8 @@ jobs: cd ${BUILD_WORK}/libirecovery-master sed -i '88,93d' configure.ac + sed -i '202d' configure.ac + PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ --with-dummy \ From 3560830d80fb75e4abc83d1dac3fdd2d8ed8283c Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:40:45 +0800 Subject: [PATCH 11/20] wip --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index d8b4a85..4ec08ed 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -185,7 +185,7 @@ jobs: echo "${LIBIRECOVERY_VERSION}" > ${BUILD_WORK}/libirecovery-master/.tarball-version cd ${BUILD_WORK}/libirecovery-master - sed -i '88,93d' configure.ac + sed -i '80,95d' configure.ac sed -i '202d' configure.ac PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ From 1afac3b4b4670e2b5286def20fb63f9798dc2743 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:43:13 +0800 Subject: [PATCH 12/20] wip --- .github/workflows/build_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 4ec08ed..3f680b6 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -187,6 +187,7 @@ jobs: cd ${BUILD_WORK}/libirecovery-master sed -i '80,95d' configure.ac sed -i '202d' configure.ac + sed -i 's/ tools//' Makefile.am PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ From b57a3edbde8808fb8776ee39a0620586f035fc22 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:45:45 +0800 Subject: [PATCH 13/20] wip --- .github/workflows/build_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 3f680b6..0902a52 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -187,6 +187,7 @@ jobs: cd ${BUILD_WORK}/libirecovery-master sed -i '80,95d' configure.ac sed -i '202d' configure.ac + sed -i '/tools/d' configure.ac sed -i 's/ tools//' Makefile.am PACKAGE_VERSION=${LIBIRECOVERY_VERSION} ./autogen.sh \ From 78c399675653acb16968947096c499b397e9b6d3 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:52:47 +0800 Subject: [PATCH 14/20] libtatsu --- .github/workflows/build_release.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 0902a52..a8aed51 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -6,14 +6,15 @@ on: env: SSL_LIBRARY: openssl - LIBPLIST_VERSION: 2.3.0 + LIBPLIST_VERSION: 2.6.0 LIBIMOBILEDEVICE__GLUE_VERSION: 1.3.1 LIBIRECOVERY_VERSION: 1.1.0 ZLIB_VERSION: 1.3.1 LIBZIP_VERSION: 1.9.2 WOLFSSL_VERSION: 5.6.3 - OPENSSL_VERSION: 3.1.3 + OPENSSL_VERSION: 3.4.0 LIBCURL_VERSION: 7.79.1 + LIBTATSU_VERSION: 1.0.4 jobs: @@ -149,7 +150,7 @@ jobs: wget -q -nc -P ${BUILD_SOURCE} \ https://github.com/libimobiledevice/libplist/archive/${LIBPLIST_VERSION}.tar.gz tar xf ${BUILD_SOURCE}/${LIBPLIST_VERSION}.tar.gz -C ${BUILD_WORK} - echo "2.3.0" > ${BUILD_WORK}/libplist-${LIBPLIST_VERSION}/.tarball-version + echo "2.6.0" > ${BUILD_WORK}/libplist-${LIBPLIST_VERSION}/.tarball-version cd ${BUILD_WORK}/libplist-${LIBPLIST_VERSION} PACKAGE_VERSION=${LIBPLIST_VERSION} ./autogen.sh \ ${CONFIGURE_FLAGS} \ @@ -159,6 +160,18 @@ jobs: make -j$(nproc) make install + - name: build libtatsu + run: | + wget -q -nc -P ${BUILD_SOURCE} \ + https://github.com/libimobiledevice/libtatsu/archive/${LIBTATSU_VERSION}.tar.gz + tar xf ${BUILD_SOURCE}/${LIBTATSU_VERSION}.tar.gz -C ${BUILD_WORK} + echo "${LIBTATSU_VERSION}" > ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION}/.tarball-version + cd ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION} + PACKAGE_VERSION=${LIBTATSU_VERSION} ./autogen.sh \ + ${CONFIGURE_FLAGS} + make -j$(nproc) + make install + - name: build libimobiledevice-glue run: | wget -q -nc -P ${BUILD_SOURCE} \ From af9af7da59b0f4a1e3c1bc13d015d68339a92152 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:54:57 +0800 Subject: [PATCH 15/20] libtatsu --- .github/workflows/build_release.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index a8aed51..6e3bfbf 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -160,18 +160,6 @@ jobs: make -j$(nproc) make install - - name: build libtatsu - run: | - wget -q -nc -P ${BUILD_SOURCE} \ - https://github.com/libimobiledevice/libtatsu/archive/${LIBTATSU_VERSION}.tar.gz - tar xf ${BUILD_SOURCE}/${LIBTATSU_VERSION}.tar.gz -C ${BUILD_WORK} - echo "${LIBTATSU_VERSION}" > ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION}/.tarball-version - cd ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION} - PACKAGE_VERSION=${LIBTATSU_VERSION} ./autogen.sh \ - ${CONFIGURE_FLAGS} - make -j$(nproc) - make install - - name: build libimobiledevice-glue run: | wget -q -nc -P ${BUILD_SOURCE} \ @@ -307,6 +295,18 @@ jobs: make -j$(nproc) -l$(nproc) make install + - name: build libtatsu + run: | + wget -q -nc -P ${BUILD_SOURCE} \ + https://github.com/libimobiledevice/libtatsu/archive/${LIBTATSU_VERSION}.tar.gz + tar xf ${BUILD_SOURCE}/${LIBTATSU_VERSION}.tar.gz -C ${BUILD_WORK} + echo "${LIBTATSU_VERSION}" > ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION}/.tarball-version + cd ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION} + PACKAGE_VERSION=${LIBTATSU_VERSION} ./autogen.sh \ + ${CONFIGURE_FLAGS} + make -j$(nproc) + make install + - name: (not) build libgeneral run: | wget -q -nc -P ${BUILD_SOURCE} \ From d408a913229cb01f6aeb72af7592df1d4892cc45 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 02:58:26 +0800 Subject: [PATCH 16/20] wip --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 6e3bfbf..d659365 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -12,7 +12,7 @@ env: ZLIB_VERSION: 1.3.1 LIBZIP_VERSION: 1.9.2 WOLFSSL_VERSION: 5.6.3 - OPENSSL_VERSION: 3.4.0 + OPENSSL_VERSION: 3.3.2 LIBCURL_VERSION: 7.79.1 LIBTATSU_VERSION: 1.0.4 From 7e1b503552260d92beff9eddb8662e329dc01e09 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 03:01:09 +0800 Subject: [PATCH 17/20] wip --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index d659365..241b470 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -12,7 +12,7 @@ env: ZLIB_VERSION: 1.3.1 LIBZIP_VERSION: 1.9.2 WOLFSSL_VERSION: 5.6.3 - OPENSSL_VERSION: 3.3.2 + OPENSSL_VERSION: 3.1.7 LIBCURL_VERSION: 7.79.1 LIBTATSU_VERSION: 1.0.4 From bc2660a631e07a0c2765672f6aef59304739e528 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 03:08:48 +0800 Subject: [PATCH 18/20] wip --- tsschecker/main.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/tsschecker/main.c b/tsschecker/main.c index 74e186e..18a9a6f 100644 --- a/tsschecker/main.c +++ b/tsschecker/main.c @@ -342,24 +342,26 @@ int main(int argc, const char * argv[]) { } if (rawFilePath) { - char *buf = NULL; - size_t bufSize = 0; - FILE *f = fopen(rawFilePath, "rb"); - if (!f) - reterror(-100, "[TSSC] failed to read rawfile at \"%s\"\n",rawFilePath); - fseek(f, 0, SEEK_END); - bufSize = ftell(f); - fseek(f, 0, SEEK_SET); - buf = (char*)malloc(bufSize+1); - fread(buf, 1, bufSize, f); - fclose(f); + printf("unsupported"); + return 1; + // char *buf = NULL; + // size_t bufSize = 0; + // FILE *f = fopen(rawFilePath, "rb"); + // if (!f) + // reterror(-100, "[TSSC] failed to read rawfile at \"%s\"\n",rawFilePath); + // fseek(f, 0, SEEK_END); + // bufSize = ftell(f); + // fseek(f, 0, SEEK_SET); + // buf = (char*)malloc(bufSize+1); + // fread(buf, 1, bufSize, f); + // fclose(f); - printf("Sending TSS request:\n%s",buf); - char *rsp = tss_request_send_raw(buf, serverUrl, (int*)&bufSize); + // printf("Sending TSS request:\n%s",buf); + // char *rsp = tss_request_send_raw(buf, serverUrl, (int*)&bufSize); - printf("TSS server returned:\n%s\n",rsp); - free(rsp); - return 0; + // printf("TSS server returned:\n%s\n",rsp); + // free(rsp); + // return 0; } if (devVals.deviceBoard) From 18ce03305449b8868e99814e4cbf36abdf5dd985 Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 03:27:37 +0800 Subject: [PATCH 19/20] wip --- .github/workflows/build_release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 241b470..d2010bc 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -82,7 +82,7 @@ jobs: echo "CFLAGS=-Os -pipe -static -ffunction-sections -fdata-sections -flto" >> $GITHUB_ENV echo "CXXFLAGS=-Os -pipe -static -ffunction-sections -fdata-sections -flto" >> $GITHUB_ENV echo "CPPFLAGS=-I${BUILD_BASE}/include" >> $GITHUB_ENV - echo "LDFLAGS=-Wl,--gc-sections -Wl,-strip-all -L${BUILD_BASE}/lib -L${BUILD_BASE}/lib64" >> $GITHUB_ENV + echo "LDFLAGS=-L${BUILD_BASE}/lib -L${BUILD_BASE}/lib64" >> $GITHUB_ENV echo "PKG_CONFIG_PATH=${BUILD_BASE}/lib/pkgconfig" >> $GITHUB_ENV echo "LD_LIBRARY_PATH=${BUILD_BASE}/lib" >> $GITHUB_ENV @@ -213,7 +213,7 @@ jobs: cd ${BUILD_WORK}/wolfssl-${WOLFSSL_VERSION}-stable ./autogen.sh ./configure \ - ${CONFIGURE_FLAGS} \ + ${CONFIGURE_FLAGS} \ --disable-examples \ --disable-crypttests \ --disable-tls13 \ @@ -361,7 +361,7 @@ jobs: ${TSSCHECKER_FLAGS} make -j$(nproc) -l$(nproc) \ - LDFLAGS="-all-static -static ${LDFLAGS}" + LDFLAGS="-Wl,--gc-sections -Wl,-strip-all -all-static -static ${LDFLAGS}" ${TRIPLE}-strip tsschecker/tsschecker${EXE_SUFFIX} - uses: actions/upload-artifact@v4 From 35a96e00b5d796c7f83f267a65340108a451305f Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 20 Jan 2025 03:36:07 +0800 Subject: [PATCH 20/20] wip --- .github/workflows/build_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index d2010bc..ea8da0a 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -30,7 +30,7 @@ jobs: - mipsel-linux-musl - riscv32-linux-musl - riscv64-linux-musl - - x86_64-w64-mingw32 + # - x86_64-w64-mingw32 env: TRIPLE: ${{ matrix.triple }}