Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.GENTOO.DEV
  • [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarc

    From WANG Xuerui@21:1/5 to All on Mon Aug 30 05:30:01 2021
    From: WANG Xuerui <git@xen0n.name>

    The Linux port currently under review has arch/loongarch, and should
    almost certainly remain that way till merge; meanwhile it's ARCH=loong
    on the Gentoo side, per mailing list discussion[1] and eselect
    adaptation[2]. This architecture is little-endian-only according to the manual[3].

    [1]: https://archives.gentoo.org/gentoo-dev/message/388a4b7428461660e89c8eae8c292f32
    [2]: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=a49477f39d3f000cc2ca57f18aafbd66656aba05
    [3]: https://github.com/loongson/LoongArch-Documentation/blob/2021.08.17/docs/LoongArch-Vol1-EN/basic-integer-instructions/programming-model-of-basic-integer-instructions/endian.adoc

    Signed-off-by: WANG Xuerui <git@xen0n.name>
    ---
    eclass/toolchain-funcs.eclass | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 563d9deef40..77fb304940b 100644
    --- a/eclass/toolchain-funcs.eclass
    +++ b/eclass/toolchain-funcs.eclass
    @@ -675,6 +675,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
    fi
    ;;
    ia64*) echo ia64;;
    + loongarch*) ninj loongarch loong;;
    m68*) echo m68k;;
    metag*) echo metag;;
    microblaze*) echo microblaze;;
    @@ -752,6 +753,7 @@ tc-endian() {
    hppa*) echo big;;
    i?86*) echo little;;
    ia64*) echo little;;
    + loongarch*) echo little;;
    m68*) echo big;;
    mips*l*) echo little;;
    mips*) echo big;;
    --
    2.33.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Tue Dec 14 04:40:02 2021
    On 30 Aug 2021, at 04:25, WANG Xuerui <i.gentoo@xen0n.name> wrote:

    From: WANG Xuerui <git@xen0n.name>

    The Linux port currently under review has arch/loongarch, and should
    almost certainly remain that way till merge; meanwhile it's ARCH=loong
    on the Gentoo side, per mailing list discussion[1] and eselect
    adaptation[2]. This architecture is little-endian-only according to the manual[3].

    [1]: https://archives.gentoo.org/gentoo-dev/message/388a4b7428461660e89c8eae8c292f32
    [2]: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=a49477f39d3f000cc2ca57f18aafbd66656aba05
    [3]: https://github.com/loongson/LoongArch-Documentation/blob/2021.08.17/docs/LoongArch-Vol1-EN/basic-integer-instructions/programming-model-of-basic-integer-instructions/endian.adoc

    Signed-off-by: WANG Xuerui <git@xen0n.name>
    ---
    eclass/toolchain-funcs.eclass | 2 ++
    1 file changed, 2 insertions(+)


    Merged.


    -----BEGIN PGP SIGNATURE-----

    iQGTBAEBCgB9FiEEYOpPv/uDUzOcqtTy9JIoEO6gSDsFAmG4EVJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYw RUE0RkJGRkI4MzUzMzM5Q0FBRDRGMkY0OTIyODEwRUVBMDQ4M0IACgkQ9JIoEO6g SDsI6ggAtB+q+DcXTn7dkgvWdfG9MNauwbu/aINcMAZniPQLXOUkFi81cHOp9hur jqKhjVCLwwyxDS/Q4a8wLkgFxb/ANHxFxrea2aqPBmMrBEaU7BjZidUIiiA49uRZ MjL8bKOK/edlcvOQxRGq9g7XKm/mVyn+7k3aQCvdtaJuqCT450GDwdDU7NL2aESM C1S9/OfsWzm/5mcfotql4lyccFJtH2eKUoAMVAogGv3FcRuULsUPc2/FCwo4c9yK zWQsmpQa/qCed3KaTHfrSAAyr6Y6wPB3PBLTiAEVuhGRYWMuN2LMbR5nj1OKQzUu 6QmqiOA4+9dlbNaZkwdsfrhfK1OCUA==
    =BdB0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • Who's Online

  • Recent Visitors

    • Gwylbert
      Mon May 12 05:32:08 2025
      from Sydney, Nsw via Telnet
    • Centurion
      Mon May 12 05:18:30 2025
      from Berea, Ohio via Telnet
    • Foriest Jan Smith
      Mon May 12 03:34:28 2025
      from Natchitoches, La via SSH
    • Plume
      Mon May 12 02:17:08 2025
      from Uk via SSH
    • Centurion
      Mon May 12 00:44:41 2025
      from Berea, Ohio via Telnet
    • Bob Smith
      Mon May 12 00:15:43 2025
      from Here via Raw
    • Brianm
      Sun May 11 22:42:59 2025
      from Glasgow via Raw
    • Foriest Jan Smith
      Sun May 11 01:11:46 2025
      from Natchitoches, La via SSH
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 475
    Nodes: 16 (2 / 14)
    Uptime: 16:30:09
    Calls: 9,487
    Calls today: 6
    Files: 13,615
    Messages: 6,121,086

© >>> Magnum BBS <<<, 2025