* updated krdc (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / www / firefox / riscv.patch
blob51991c77356877afa544bb91bbc51c83b5a780c6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/firefox/riscv.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- firefox-81.0.2/third_party/rust/authenticator/src/linux/ioctl_riscv.rs.vanilla (nonexistent)
15 +++ firefox-81.0.2/third_party/rust/authenticator/src/linux/ioctl_riscv.rs 2020-10-16 11:37:13.522007639 +0200
16 @@ -0,0 +1,5 @@
17 +/* automatically generated by rust-bindgen */
19 +pub type __u32 = ::std::os::raw::c_uint;
20 +pub const _HIDIOCGRDESCSIZE: __u32 = 1074022401;
21 +pub const _HIDIOCGRDESC: __u32 = 1342457858;
22 --- firefox-81.0.2/third_party/rust/authenticator/src/linux/ioctl_riscv64.rs.vanilla (nonexistent)
23 +++ firefox-81.0.2/third_party/rust/authenticator/src/linux/ioctl_riscv64.rs 2020-10-16 11:37:13.522007639 +0200
24 @@ -0,0 +1,5 @@
25 +/* automatically generated by rust-bindgen */
27 +pub type __u32 = ::std::os::raw::c_uint;
28 +pub const _HIDIOCGRDESCSIZE: __u32 = 1074022401;
29 +pub const _HIDIOCGRDESC: __u32 = 1342457858;
30 --- firefox-94.0.1/third_party/rust/authenticator/build.rs.vanilla 2021-11-05 13:59:30.986672974 +0100
31 +++ firefox-94.0.1/third_party/rust/authenticator/build.rs 2021-11-05 14:01:27.454678982 +0100
32 @@ -35,6 +35,10 @@
33 "ioctl_powerpc64le.rs"
34 } else if cfg!(all(target_arch = "powerpc64", target_endian = "big")) {
35 "ioctl_powerpc64be.rs"
36 + } else if cfg!(target_arch = "riscv") {
37 + "ioctl_riscv.rs"
38 + } else if cfg!(target_arch = "riscv64") {
39 + "ioctl_riscv64.rs"
40 } else if cfg!(all(target_arch = "arm", target_endian = "little")) {
41 "ioctl_armle.rs"
42 } else if cfg!(all(target_arch = "arm", target_endian = "big")) {
43 --- firefox-94.0.1/third_party/rust/authenticator/src/linux/hidwrapper.rs.vanilla 2021-11-05 13:59:30.983672974 +0100
44 +++ firefox-94.0.1/third_party/rust/authenticator/src/linux/hidwrapper.rs 2021-11-05 14:00:32.606676153 +0100
45 @@ -32,6 +32,12 @@
46 #[cfg(all(target_arch = "powerpc64", target_endian = "big"))]
47 include!("ioctl_powerpc64be.rs");
49 +#[cfg(target_arch = "riscv")]
50 +include!("ioctl_riscv.rs");
52 +#[cfg(target_arch = "riscv64")]
53 +include!("ioctl_riscv64.rs");
55 #[cfg(all(target_arch = "arm", target_endian = "little"))]
56 include!("ioctl_armle.rs");