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

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

From: Arnout Vandecappelle <hidden>
Date: 2021-12-17 17:54:18


On 17/12/2021 11:10, Thierry Bultel wrote:
+    help
quoted
quoted
+    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
 AFAICS there's no reason to use a zip file. Just remove this line and the 
EXTRACT_CMDS and it should work as well.
Hi,
Unfortunately, this is not that simple, I cannot find a simply way to download a 
single flat file,
because the download system makes a strong assumption that it is a tar file.
  Yes, but why is that a problem?

  This works:

CROSS_LDD_VERSION = 6c9c724ebd6a29c279c6e5734e44c07f067808ec
CROSS_LDD_SOURCE = $(CROSS_LDD_VERSION).tar.gz
CROSS_LDD_SITE = 
https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f/archive

So indeed I was wrong about just removing the line. But a tarball works just fine.

  Regards,
  Arnout
my best option seems to be something like:


CROSS_LDD_VERSION = 6c9c724ebd6a29c279c6e5734e44c07f067808ec
CROSS_LDD_SOURCE = $(CROSS_LDD_VERSION)/cross-compile-ldd

CROSS_LDD_SITE = 
https://gist.githubusercontent.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f/raw 


define HOST_CROSS_LDD_EXTRACT_CMDS
     # Single file, no extract needed
     cp $(HOST_CROSS_LDD_DL_DIR)/cross-compile-ldd $(@D)
endef

Regards,
Thierry
quoted
 Regards,
 Arnout 
_______________________________________________
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