[edk2-devel] [PATCH v1] BaseTools: Reduce the LoongArch64 compiler size

Chao Li posted 1 patch 1 year, 4 months ago
Failed in applying to current master (apply log)
BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[edk2-devel] [PATCH v1] BaseTools: Reduce the LoongArch64 compiler size
Posted by Chao Li 1 year, 4 months ago
The LoongArch64 cross compiler size is too large after decompression,
using the new compiler, there is no system library and glibc.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4233

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
---
 BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
index fe9a244853..6ebc93a07c 100644
--- a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
+++ b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
@@ -12,9 +12,9 @@
   "scope": "gcc_loongarch64_unknown_linux",
   "type": "web",
   "name": "gcc_loongarch64_unknown_linux",
-  "source":"https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-6.3-cross-tools-gcc-full.tar.xz",
+  "source":"https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-6.3-cross-tools-c-only.tar.xz",
   "version": "13.0.0",
-  "sha256":"27a43c5bb127794f091d0e75da0003c4d0eec28a958d8f2cc7cd290a6e6133ab",
+  "sha256":"744cbb50c6ef07c96551bddf07a8b85cee3250bb18b6040f6ed051e389514951",
   "compression_type": "tar",
   "internal_path": "/cross-tools/",
   "flags": ["set_shell_var", ],
-- 
2.27.0



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97826): https://edk2.groups.io/g/devel/message/97826
Mute This Topic: https://groups.io/mt/95951703/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] 回复: [PATCH v1] BaseTools: Reduce the LoongArch64 compiler size
Posted by gaoliming via groups.io 1 year, 4 months ago
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: Chao Li <lichao@loongson.cn>
> 发送时间: 2022年12月30日 18:07
> 收件人: devel@edk2.groups.io
> 抄送: Bob Feng <bob.c.feng@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>
> 主题: [PATCH v1] BaseTools: Reduce the LoongArch64 compiler size
> 
> The LoongArch64 cross compiler size is too large after decompression,
> using the new compiler, there is no system library and glibc.
> 
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4233
> 
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen@intel.com>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> index fe9a244853..6ebc93a07c 100644
> --- a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> +++ b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> @@ -12,9 +12,9 @@
>    "scope": "gcc_loongarch64_unknown_linux",
>    "type": "web",
>    "name": "gcc_loongarch64_unknown_linux",
> -
> "source":"https://github.com/loongson/build-tools/releases/download/2022.
> 09.06/loongarch64-clfs-6.3-cross-tools-gcc-full.tar.xz",
> +
> "source":"https://github.com/loongson/build-tools/releases/download/2022.
> 09.06/loongarch64-clfs-6.3-cross-tools-c-only.tar.xz",
>    "version": "13.0.0",
> -
> "sha256":"27a43c5bb127794f091d0e75da0003c4d0eec28a958d8f2cc7cd290
> a6e6133ab",
> +
> "sha256":"744cbb50c6ef07c96551bddf07a8b85cee3250bb18b6040f6ed051e
> 389514951",
>    "compression_type": "tar",
>    "internal_path": "/cross-tools/",
>    "flags": ["set_shell_var", ],
> --
> 2.27.0





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97894): https://edk2.groups.io/g/devel/message/97894
Mute This Topic: https://groups.io/mt/96041809/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v1] BaseTools: Reduce the LoongArch64 compiler size
Posted by Rebecca Cran 1 year, 4 months ago
Thanks! The download has gone from 921 MB to 70 MB, which is much better.

Though, I noticed both files are gz, not xz as the filenames indicate:

Downloads bcran$ file *.tar.xz
loongarch64-clfs-6.3-cross-tools-c-only.tar.xz:   gzip compressed data, from Unix, original size modulo 2^32 197570560
loongarch64-clfs-6.3-cross-tools-gcc-full.tar.xz: gzip compressed data, from Unix, original size modulo 2^32 3332720640

Reviewed-by: Rebecca Cran<rebecca@bsdio.com>

-- 
Rebecca Cran


On 12/30/22 3:06 AM, Chao Li wrote:
> The LoongArch64 cross compiler size is too large after decompression,
> using the new compiler, there is no system library and glibc.
>
> BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=4233
>
> Cc: Bob Feng<bob.c.feng@intel.com>
> Cc: Liming Gao<gaoliming@byosoft.com.cn>
> Cc: Yuwei Chen<yuwei.chen@intel.com>
> Signed-off-by: Chao Li<lichao@loongson.cn>
> ---
>   BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> index fe9a244853..6ebc93a07c 100644
> --- a/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> +++ b/BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
> @@ -12,9 +12,9 @@
>     "scope": "gcc_loongarch64_unknown_linux",
>     "type": "web",
>     "name": "gcc_loongarch64_unknown_linux",
> -  "source":"https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-6.3-cross-tools-gcc-full.tar.xz",
> +  "source":"https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-6.3-cross-tools-c-only.tar.xz",
>     "version": "13.0.0",
> -  "sha256":"27a43c5bb127794f091d0e75da0003c4d0eec28a958d8f2cc7cd290a6e6133ab",
> +  "sha256":"744cbb50c6ef07c96551bddf07a8b85cee3250bb18b6040f6ed051e389514951",
>     "compression_type": "tar",
>     "internal_path": "/cross-tools/",
>     "flags": ["set_shell_var", ],


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97827): https://edk2.groups.io/g/devel/message/97827
Mute This Topic: https://groups.io/mt/95951703/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


回复:Re: [edk2-devel] [PATCH v1] BaseTools: Reduce the LoongArch64compiler size
Posted by Chao Li 1 year, 4 months ago