From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH 1/2] Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation. Date: Mon, 19 Jul 2021 12:11:42 +0100 Message-ID: <2F80C1B3-B4C2-4628-AE0B-6961EEBDDAF6@ipfire.org> In-Reply-To: <30032033-282a-9354-a117-de23d79ef2e8@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1952254927816673192==" List-Id: --===============1952254927816673192== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Holger, > On 15 Jul 2021, at 20:32, Holger Sunke wrote: >=20 > I guess I have to build ipfire for each different arch to get the log files= as source for the root files. Yes, that would be the easiest way. For most packages this is not requires as= the list of installed files is identical but compilers and other architectur= e-specific package tends to require this extra work. > How do you build ipfire for all the archs? Do you use some kind of VMs? You can do either that or use qemu-user-static. This will emulate the other a= rchitecture for you instead. So you would install qemu-user-static (https://packages.debian.org/buster/qem= u-user-static) or whatever the equivalent is in our your distribution of choi= ce and then run these commands: Erase the old build: ./make.sh clean Download a toolchain for the target architecture: ./make.sh =E2=80=94-target=3Daarch64 gettoolchain And then you run the build: ./make.sh =E2=80=94-target=3Daarch64 build You can then do this for armv6l in next, too. The emulated build will take a little bit longer due to the emulation. Let me know if this has worked. Best, -Michael >=20 > Kind regards >=20 > Holger >=20 >=20 >=20 > On 08.06.21 18:54, Michael Tremer wrote: >> Hello Holger, >> This patch looks good so far, but the root files are missing. >> Do you know what those are? >> Otherwise this would be mergeable. >> Best, >> -Michael >>> On 6 Jun 2021, at 18:48, Holger Sunke wrote: >>>=20 >>> --- >>> lfs/Config | 8 ++++++++ >>> lfs/go | 9 ++++++--- >>> 2 files changed, 14 insertions(+), 3 deletions(-) >>>=20 >>> diff --git a/lfs/Config b/lfs/Config >>> index 7d98e303b..c8be227a1 100644 >>> --- a/lfs/Config >>> +++ b/lfs/Config >>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>> GOARCH =3D arm64 >>> endif >>>=20 >>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>> + GOARCH =3D armv6l >>> +endif >>> + >>> +ifeq "$(BUILD_ARCH)" "i586" >>> + GOARCH =3D 386 >>> +endif >>> + >>> #########################################################################= ###### >>> # Common Macro Definitions >>> #########################################################################= ###### >>> diff --git a/lfs/go b/lfs/go >>> index 6ebb37080..487ad8486 100644 >>> --- a/lfs/go >>> +++ b/lfs/go >>> @@ -28,10 +28,10 @@ VER =3D 1.15.4 >>>=20 >>> THISAPP =3D go-$(VER) >>> DL_FILE =3D go$(VER).$(GOOS)-$(GOARCH).tar.gz >>> -DL_FROM =3D $(URL_IPFIRE) >>> +DL_FROM =3D https://golang.org/dl/ >>> DIR_APP =3D $(DIR_SRC)/go >>> TARGET =3D $(DIR_INFO)/$(THISAPP) >>> -SUP_ARCH =3D x86_64 >>> +SUP_ARCH =3D x86_64 i586 aarch64 armv5tel >>>=20 >>> #########################################################################= ###### >>> # Top-level Rules >>> @@ -41,7 +41,10 @@ objects =3D $(DL_FILE) >>>=20 >>> $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) >>>=20 >>> -$(DL_FILE)_MD5 =3D 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 =3D 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-386.tar.gz_MD5 =3D 8d1c3539c88710273f61b0c810b7448c >>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 =3D b1846fb093f0261707bda44e158bc5be >>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 =3D cf04e0d84de6cbb7d224be1f42a83f02 >>>=20 >>> install : $(TARGET) >>>=20 >>> --=20 >>> 2.30.2 >>>=20 --===============1952254927816673192==--