package/dt-utils: new package
PATCH v2 1/1 package/dt-utils: new package
Add two upstreamable patches for this package to fix uClibc and musl builds.
---
Changes v1 -> v2:
* Added Config.in comment about udev dependency (suggested by Thomas)
* Use SPDX licence code (sugggested by Thomas)
* Add patch for uClibc build (fail noticed by Thomas)
* Add patch for musl build
DEVELOPERS | 1 + package/Config.in | 1 + .../0001-common-Rename-strlcpy-to-DT_strlcpy.patch | 58 ++++++++++++++++++++++ .../0002-common-Include-sys-types.h-header.patch | 38 ++++++++++++++ package/dt-utils/Config.in | 11 ++++ package/dt-utils/dt-utils.mk | 15 ++++++ 6 files changed, 124 insertions(+) create mode 100644 package/dt-utils/0001-common-Rename-strlcpy-to-DT_strlcpy.patch create mode 100644 package/dt-utils/0002-common-Include-sys-types.h-header.patch create mode 100644 package/dt-utils/Config.in create mode 100644 package/dt-utils/dt-utils.mk
DEVELOPERS +1 -0
@@ -1063,6 +1063,7 @@ N: Marcin Niestroj <[email protected]> F: board/grinn/ F: configs/grinn_* F: package/argparse/ +F: package/dt-utils/ F: package/easydbus/ F: package/luaossl/ F: package/rs485conf/
package/Config.in +1 -0
@@ -382,6 +382,7 @@ endmenu source "package/devmem2/Config.in" source "package/dmidecode/Config.in" source "package/dmraid/Config.in" + source "package/dt-utils/Config.in" source "package/dtv-scan-tables/Config.in" source "package/dvb-apps/Config.in" source "package/dvbsnoop/Config.in"
package/dt-utils/0001-common-Rename-strlcpy-to-DT_strlcpy.patch new file +58 -0
58 lines not on this page · raw message
package/dt-utils/0002-common-Include-sys-types.h-header.patch new file +38 -0
@@ -0,0 +1,38 @@ +From b8bc4e83bf447b6330ece54e94a1684d12ecdd0b Mon Sep 17 00:00:00 2001 +From: Marcin Niestroj <[email protected]> +Date: Fri, 23 Jun 2017 12:00:30 +0200 +Subject: [PATCH] common: Include sys/types.h header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Build with musl library fails with following error: + +In file included from src/crypto/sha1.c:21:0: +./src/digest.h:95:10: error: unknown type name ?ulong? + ulong start, ulong size); +... + +Fix that by including sys/types.h header in common.h, so ulong type +is defined with musl library. + +Signed-off-by: Marcin Niestroj <[email protected]> +--- + src/dt/common.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/dt/common.h b/src/dt/common.h +index 992e28f..1425c53 100644 +--- a/src/dt/common.h ++++ b/src/dt/common.h +@@ -13,6 +13,7 @@ + + #include <sys/ioctl.h> + #include <sys/stat.h> ++#include <sys/types.h> + + #include <mtd/mtd-abi.h> + +-- +2.13.1 +
package/dt-utils/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_DT_UTILS + bool "dt-utils" + depends on BR2_PACKAGE_HAS_UDEV + help + Tools for flattened device-tree dumping and barebox state + manipulation. + + https://git.pengutronix.de/cgit/tools/dt-utils/ + +comment "dt-utils needs udev /dev management" + depends on !BR2_PACKAGE_HAS_UDEV
package/dt-utils/dt-utils.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# dt-utils +# +################################################################################ + +DT_UTILS_VERSION = v2017.03.0 +DT_UTILS_SITE = https://git.pengutronix.de/git/tools/dt-utils +DT_UTILS_SITE_METHOD = git +DT_UTILS_LICENSE = GPL-2.0 +DT_UTILS_LICENSE_FILES = COPYING +DT_UTILS_DEPENDENCIES = udev +DT_UTILS_AUTORECONF = YES + +$(eval $(autotools-package))
Signature · 1 line
2.13.1
Thomas Petazzoni
AppliedPATCH v2 1/1 package/dt-utils: new package
Hello,
Quoted 10 lines · Marcin Niestroj
Add two upstreamable patches for this package to fix uClibc and musl builds.
Signed-off-by Marcin Niestroj <[email protected]>---
Changes v1 -> v2:
* Added Config.in comment about udev dependency (suggested by Thomas)
* Use SPDX licence code (sugggested by Thomas)
* Add patch for uClibc build (fail noticed by Thomas)
* Add patch for musl build
Applied to master, thanks. Please submit the two patches you have to the upstream dt-utils project. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com