Thread (18 messages) flat view 18 messages, 3 authors, 2021-12-20

[Buildroot] [PATCH 1/3] package/cross-ldd: new package

From: Thierry Bultel <hidden>
Date: 2021-12-15 18:00:33
Subsystem: the rest · Maintainer: Linus Torvalds

cross-ldd works just as ldd, but supports
other architectures. It is needed by dracut, for instance.

Signed-off-by: Thierry Bultel <redacted>
---
 package/Config.in.host           |  1 +
 package/cross-ldd/Config.in.host |  5 +++++
 package/cross-ldd/cross-ldd.mk   | 20 ++++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/cross-ldd/Config.in.host
 create mode 100644 package/cross-ldd/cross-ldd.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index 6e5a5c5fc5..0e8b071a2b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -12,6 +12,7 @@ menu "Host utilities"
 	source "package/checksec/Config.in.host"
 	source "package/cmake/Config.in.host"
 	source "package/cramfs/Config.in.host"
+	source "package/cross-ldd/Config.in.host"
 	source "package/cryptsetup/Config.in.host"
 	source "package/dbus-python/Config.in.host"
 	source "package/dfu-util/Config.in.host"
diff --git a/package/cross-ldd/Config.in.host b/package/cross-ldd/Config.in.host
new file mode 100644
index 0000000000..237af701d2
--- /dev/null
+++ b/package/cross-ldd/Config.in.host
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_HOST_CROSS_LDD
+	bool "cross ldd"
+	help
+	ldd drop-in replacement for cross-compilation toolchains.
+	This is the officially supported version mentioned in the dracut documentation
diff --git a/package/cross-ldd/cross-ldd.mk b/package/cross-ldd/cross-ldd.mk
new file mode 100644
index 0000000000..9326a508bb
--- /dev/null
+++ b/package/cross-ldd/cross-ldd.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# cross-ldd
+#
+################################################################################
+
+CROSS_LDD_VERSION = 6c9c724ebd6a29c279c6e5734e44c07f067808ec
+CROSS_LDD_SOURCE = $(CROSS_LDD_VERSION).zip
+CROSS_LDD_SITE = https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f/archive
+
+define HOST_CROSS_LDD_EXTRACT_CMDS
+	unzip $(HOST_CROSS_LDD_DL_DIR)/$(CROSS_LDD_SOURCE) -d $(@D)
+	find $(@D) -name cross-compile-ldd -exec mv {} $(@D) \;
+endef
+
+define HOST_CROSS_LDD_INSTALL_CMDS
+	install -m 755 $(@D)/cross-compile-ldd $(TARGET_CROSS)ldd
+endef
+
+$(eval $(host-generic-package))
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help