Re: [Buildroot] [PATCH 1/3] package/cross-ldd: new package
From: Arnout Vandecappelle <hidden>
Date: 2021-12-16 20:31:29
On 15/12/2021 19:00, Thierry Bultel wrote:
cross-ldd works just as ldd, but supports other architectures. It is needed by dracut, for instance.
I vaguely remember that at some point we considered adding cross-ldd, but instead opted for a different approach. I can't find anything in the archives however. Adam, I suspect this must have been for gobject-introspection, do you remember anything like that?
quoted hunk ↗ jump to hunk
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.mkdiff --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"
We only add Config.in.host options for tools that are expected to be useful in post-install scripts. I don't think that that's the case here though?
quoted hunk ↗ jump to hunk
+ help + ldd drop-in replacement for cross-compilation toolchains. + This is the officially supported version mentioned in the dracut documentationdiff --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
AFAICS there's no reason to use a zip file. Just remove this line and the EXTRACT_CMDS and it should work as well. Regards, Arnout
+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))
_______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot