Source: android-platform-external-boringssl Severity: normal Tags: patch X-Debbugs-Cc: wuruil...@loongson.cn User: debian-loonga...@lists.debian.org Usertags: loong64
Dear Maintainer, android-platform-external-boringssl compiled incorrectly on loongarch, the attached patch added architectural support and compiled successfully. Please enter the attached patch with loongarch support. wuruilong -- System Information: Debian Release: trixie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: loong64 (loongarch64) Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect
Description: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . android-platform-external-boringssl (14.0.0+r11-4) unstable; urgency=medium . * debian/control: Remove android-boringssl package for hurd-*. Author: Roger Shimizu <r...@debian.org> --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>) Bug: <upstream-bugtracker-url> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: (no|not-needed|<patch-forwarded-url>) Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>) Reviewed-By: <name and email of someone who approved/reviewed the patch> Last-Update: 2024-07-01 --- android-platform-external-boringssl-14.0.0+r11.orig/src/crypto/fipsmodule/rand/getrandom_fillin.h +++ android-platform-external-boringssl-14.0.0+r11/src/crypto/fipsmodule/rand/getrandom_fillin.h @@ -34,6 +34,8 @@ #define EXPECTED_NR_getrandom 359 #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 +#elif defined(OPENSSL_LOONG64) +#define EXPECTED_NR_getrandom 278 #endif #if defined(EXPECTED_NR_getrandom) --- android-platform-external-boringssl-14.0.0+r11.orig/src/include/openssl/base.h +++ android-platform-external-boringssl-14.0.0+r11/src/include/openssl/base.h @@ -99,6 +99,9 @@ extern "C" { #elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(_LITTLE_ENDIAN) #define OPENSSL_64_BIT #define OPENSSL_PPC64LE +#elif defined(__loongarch64) +#define OPENSSL_64_BIT +#define OPENSSL_LOONG64 #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS