diff --git a/projects/Amlogic-ce/packages/tools/aml-dtbtools/package.mk b/projects/Amlogic-ce/packages/tools/aml-dtbtools/package.mk index eb02a354a8e..6c404a52af9 100644 --- a/projects/Amlogic-ce/packages/tools/aml-dtbtools/package.mk +++ b/projects/Amlogic-ce/packages/tools/aml-dtbtools/package.mk @@ -3,8 +3,8 @@ # Copyright (C) 2020-present Team CoreELEC (https://coreelec.org) PKG_NAME="aml-dtbtools" -PKG_VERSION="cce100f" -PKG_SHA256="8bcaa83fcc9e85c9c04930e7411447d96a97da0809c5ecd9af91c8b554133c41" +PKG_VERSION="b2ca13ce06627d4e38b3fce56d7aadf077b7bc7d" +PKG_SHA256="12b8cd2c5909aca2a39f743129ea428ab05601350699e4804aec5ef42fcd24ab" PKG_LICENSE="free" PKG_SITE="https://github.com/Wilhansen/aml-dtbtools" PKG_URL="https://github.com/Wilhansen/aml-dtbtools/archive/${PKG_VERSION}.tar.gz" diff --git a/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0001-change-permisson-on-output-file.patch b/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0001-change-permisson-on-output-file.patch index f043d9fbcb0..4a06e849b95 100644 --- a/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0001-change-permisson-on-output-file.patch +++ b/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0001-change-permisson-on-output-file.patch @@ -24,8 +24,8 @@ index 385a03e..3335025 100644 log_info("\nGenerating master DTB... "); -- out_fd = open(output_file, O_WRONLY|O_CREAT | O_TRUNC, S_IRUSR|S_IWUSR); -+ out_fd = open(output_file, O_WRONLY|O_CREAT | O_TRUNC, 0664); +- out_fd = open(output_file, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); ++ out_fd = open(output_file, O_WRONLY|O_CREAT|O_TRUNC, 0664); if (!out_fd < 0) { log_err("Cannot create '%s'\n", output_file); rc = RC_ERROR; diff --git a/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0002-add-gzip-compression-support.patch b/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0002-add-gzip-compression-support.patch index 90a812a8586..eb908c8c36a 100644 --- a/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0002-add-gzip-compression-support.patch +++ b/projects/Amlogic-ce/packages/tools/aml-dtbtools/patches/0002-add-gzip-compression-support.patch @@ -33,13 +33,10 @@ diff --git a/dtbSplit.cpp b/dtbSplit.cpp index c92dea7..b234a34 100644 --- a/dtbSplit.cpp +++ b/dtbSplit.cpp -@@ -34,10 +34,18 @@ - #include - #include - #include -+#include -+ -+#include +@@ -34,10 +34,15 @@ + + #include + +extern "C" { + #include "gzip.h" +} @@ -309,7 +306,7 @@ index 3335025..dcfc76c 100644 @@ -440,7 +512,7 @@ int main(int argc, char **argv) log_info("\nGenerating master DTB... "); - out_fd = open(output_file, O_WRONLY|O_CREAT | O_TRUNC, 0664); + out_fd = open(output_file, O_WRONLY|O_CREAT|O_TRUNC, 0664); - if (!out_fd < 0) { + if (out_fd < 0) { log_err("Cannot create '%s'\n", output_file);