From f9497a8b747f2a166c575071bbb8cbb8188d27ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Tue, 12 Nov 2024 11:43:49 +0100 Subject: [PATCH] meta-lxatac-software: rkdeveloptool: Add recipe for version 1.32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rkdeveloptool enables communication with the Boot ROM of various Rockchip SoCs. It allows uploading software, writing/reading memory and resetting the CPU/running code. Signed-off-by: Leonard Göhrs --- ...ile-disable-format-truncation-errors.patch | 29 +++++++++++++++++++ .../rkdeveloptool/rkdeveloptool_1.32.bb | 19 ++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool/0001-Makefile-disable-format-truncation-errors.patch create mode 100644 meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool_1.32.bb diff --git a/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool/0001-Makefile-disable-format-truncation-errors.patch b/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool/0001-Makefile-disable-format-truncation-errors.patch new file mode 100644 index 00000000..5caa8558 --- /dev/null +++ b/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool/0001-Makefile-disable-format-truncation-errors.patch @@ -0,0 +1,29 @@ +From 99795f8cc8137fef62ca72707df972bf7c787027 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= +Date: Tue, 12 Nov 2024 11:32:52 +0100 +Subject: [PATCH] Makefile: disable format-truncation errors +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The build fails with current compilers due to format-truncation errors. +Ignore them for now. + +Signed-off-by: Leonard Göhrs +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 1b6385d..81aebf6 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -3,7 +3,7 @@ + SUBDIRS = + DIST_SUBDIRS = cfg + +-AM_CPPFLAGS = -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE $(LIBUSB1_CFLAGS) ++AM_CPPFLAGS = -Wall -Werror -Wno-format-truncation -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE $(LIBUSB1_CFLAGS) + + bin_PROGRAMS = rkdeveloptool + rkdeveloptool_SOURCES = main.cpp \ diff --git a/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool_1.32.bb b/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool_1.32.bb new file mode 100644 index 00000000..dff1e25f --- /dev/null +++ b/meta-lxatac-software/recipes-devtools/rkdeveloptool/rkdeveloptool_1.32.bb @@ -0,0 +1,19 @@ +SUMMARY = "Rockchip Development Tool" +DESCRIPTION = "Communicate with the Rockchip Boot ROM to upload new software \ + read/write to memory locations and reset the device." +HOMEPAGE = "https://github.com/rockchip-linux/rkdeveloptool" +SECTION = "devel" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://license.txt;md5=ea9445d9cc03d508cf6bb769d15a54ef" + +SRC_URI = "git://github.com/rockchip-linux/rkdeveloptool.git;protocol=https;branch=master \ + file://0001-Makefile-disable-format-truncation-errors.patch \ + " + +SRCREV = "46bb4c073624226c3f05b37b9ecc50bbcf543f5a" + +S = "${WORKDIR}/git" + +DEPENDS = "libusb1 udev" + +inherit autotools pkgconfig