Add riscv64 support
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
3c9c2963c5
commit
76951f5392
0
Module.kabi_dup_riscv64
Normal file
0
Module.kabi_dup_riscv64
Normal file
0
Module.kabi_riscv64
Normal file
0
Module.kabi_riscv64
Normal file
14
filter-riscv64.sh.fedora
Normal file
14
filter-riscv64.sh.fedora
Normal file
@ -0,0 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
# This is the riscv64 override file for the core/drivers package split. The
|
||||
# module directories listed here and in the generic list in filter-modules.sh
|
||||
# will be moved to the resulting kernel-modules package for this arch.
|
||||
# Anything not listed in those files will be in the kernel-core package.
|
||||
#
|
||||
# Please review the default list in filter-modules.sh before making
|
||||
# modifications to the overrides below. If something should be removed across
|
||||
# all arches, remove it in the default instead of per-arch.
|
||||
|
||||
driverdirs="atm auxdisplay bcma bluetooth firewire fpga infiniband leds media memstick message mtd nfc ntb pcmcia power ssb soundwire staging tty uio w1"
|
||||
|
||||
singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys hwpoison-inject target_core_user sbp_target cxgbit chcr parport_serial regmap-sdw regmap-sdw-mbq arizona-micsupp hid-asus iTCO_wdt rnbd-client rnbd-server mlx5_vdpa spi-altera-dfl nct6775 hid-playstation hid-nintendo asus_wmi_sensors asus_wmi_ec_sensors mlx5-vfio-pci video int3406_thermal nvmem_u-boot-env intel-m10-bmc-pmci intel-m10-bmc-hwmon ptp_dfl_tod pds_vdpa"
|
7967
kernel-riscv64-debug-fedora.config
Normal file
7967
kernel-riscv64-debug-fedora.config
Normal file
File diff suppressed because it is too large
Load Diff
7936
kernel-riscv64-fedora.config
Normal file
7936
kernel-riscv64-fedora.config
Normal file
File diff suppressed because it is too large
Load Diff
28
kernel.spec
28
kernel.spec
@ -180,7 +180,7 @@ Summary: The Linux kernel
|
||||
# This is needed to do merge window version magic
|
||||
%define patchlevel 5
|
||||
# This allows pkg_release to have configurable %%{?dist} tag
|
||||
%define specrelease 0.rc3.20230727git0a8db05b571a.26%{?buildid}%{?dist}
|
||||
%define specrelease 0.rc3.20230727git0a8db05b571a.26%{?buildid}.0.riscv64%{?dist}
|
||||
# This defines the kabi tarball version
|
||||
%define kabiversion 6.5.0
|
||||
|
||||
@ -586,6 +586,14 @@ Summary: The Linux kernel
|
||||
%define kernel_image arch/arm64/boot/vmlinuz.efi
|
||||
%endif
|
||||
|
||||
%ifarch riscv64
|
||||
%define all_arch_configs %{name}-%{specrpmversion}-aarch64*.config
|
||||
%define asmarch riscv
|
||||
%define hdrarch riscv
|
||||
%define make_target Image.gz
|
||||
%define kernel_image arch/riscv/boot/Image.gz
|
||||
%endif
|
||||
|
||||
# Should make listnewconfig fail if there's config options
|
||||
# printed out?
|
||||
%if %{nopatches}
|
||||
@ -685,7 +693,7 @@ Release: %{pkg_release}
|
||||
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
|
||||
# SET %%nobuildarches (ABOVE) INSTEAD
|
||||
%if 0%{?fedora}
|
||||
ExclusiveArch: noarch x86_64 s390x %{arm} aarch64 ppc64le
|
||||
ExclusiveArch: noarch x86_64 s390x %{arm} aarch64 ppc64le riscv64
|
||||
%else
|
||||
ExclusiveArch: noarch i386 i686 x86_64 s390x %{arm} aarch64 ppc64le
|
||||
%endif
|
||||
@ -951,6 +959,8 @@ Source62: %{name}-s390x-fedora.config
|
||||
Source63: %{name}-s390x-debug-fedora.config
|
||||
Source64: %{name}-x86_64-fedora.config
|
||||
Source65: %{name}-x86_64-debug-fedora.config
|
||||
Source700: %{name}-riscv64-fedora.config
|
||||
Source701: %{name}-riscv64-debug-fedora.config
|
||||
|
||||
Source67: filter-x86_64.sh.fedora
|
||||
Source68: filter-armv7hl.sh.fedora
|
||||
@ -958,6 +968,7 @@ Source70: filter-aarch64.sh.fedora
|
||||
Source71: filter-ppc64le.sh.fedora
|
||||
Source72: filter-s390x.sh.fedora
|
||||
Source73: filter-modules.sh.fedora
|
||||
Source702: filter-riscv64.sh.fedora
|
||||
%endif
|
||||
|
||||
Source75: partial-kgcov-snip.config
|
||||
@ -982,11 +993,13 @@ Source201: Module.kabi_aarch64
|
||||
Source202: Module.kabi_ppc64le
|
||||
Source203: Module.kabi_s390x
|
||||
Source204: Module.kabi_x86_64
|
||||
Source205: Module.kabi_riscv64
|
||||
|
||||
Source210: Module.kabi_dup_aarch64
|
||||
Source211: Module.kabi_dup_ppc64le
|
||||
Source212: Module.kabi_dup_s390x
|
||||
Source213: Module.kabi_dup_x86_64
|
||||
Source214: Module.kabi_dup_riscv64
|
||||
|
||||
Source300: kernel-abi-stablelists-%{kabiversion}.tar.bz2
|
||||
Source301: kernel-kabi-dw-%{kabiversion}.tar.bz2
|
||||
@ -2015,7 +2028,7 @@ BuildKernel() {
|
||||
mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
|
||||
%endif
|
||||
|
||||
%ifarch %{arm} aarch64
|
||||
%ifarch %{arm} aarch64 riscv64
|
||||
%{make} ARCH=$Arch dtbs INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
|
||||
%{make} ARCH=$Arch dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
|
||||
cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb
|
||||
@ -2943,7 +2956,7 @@ find $RPM_BUILD_ROOT/usr/include \
|
||||
|
||||
%if %{with_cross_headers}
|
||||
%if 0%{?fedora}
|
||||
HDR_ARCH_LIST='arm arm64 powerpc s390 x86'
|
||||
HDR_ARCH_LIST='arm arm64 powerpc s390 x86 riscv64'
|
||||
%else
|
||||
HDR_ARCH_LIST='arm64 powerpc s390 x86'
|
||||
%endif
|
||||
@ -3439,7 +3452,7 @@ fi\
|
||||
%endif
|
||||
|
||||
%if %{with_kabidw_base}
|
||||
%ifarch x86_64 s390x ppc64 ppc64le aarch64
|
||||
%ifarch x86_64 s390x ppc64 ppc64le aarch64 riscv64
|
||||
%files kernel-kabidw-base-internal
|
||||
%defattr(-,root,root)
|
||||
/kabidw-base/%{_target_cpu}/*
|
||||
@ -3608,7 +3621,7 @@ fi\
|
||||
%ghost /%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?3:+%{3}}\
|
||||
/lib/modules/%{KVERREL}%{?3:+%{3}}/.vmlinuz.hmac \
|
||||
%ghost /%{image_install_path}/.vmlinuz-%{KVERREL}%{?3:+%{3}}.hmac \
|
||||
%ifarch %{arm} aarch64\
|
||||
%ifarch %{arm} aarch64 riscv64\
|
||||
/lib/modules/%{KVERREL}%{?3:+%{3}}/dtb \
|
||||
%ghost /%{image_install_path}/dtb-%{KVERREL}%{?3:+%{3}} \
|
||||
%endif\
|
||||
@ -3740,6 +3753,9 @@ fi\
|
||||
#
|
||||
#
|
||||
%changelog
|
||||
* Fri Jul 28 2023 David Abdurachmanov <davidlt@rivosinc.com> [6.5.0-0.rc3.0a8db05b571a.26.el127.0.riscv64]
|
||||
- Add support for riscv64
|
||||
|
||||
* Thu Jul 27 2023 Fedora Kernel Team <kernel-team@fedoraproject.org> [6.5.0-0.rc3.0a8db05b571a.26.el127]
|
||||
- redhat/configs: Disable FIREWIRE for RHEL (Prarit Bhargava)
|
||||
- Linux v6.5.0-0.rc3.0a8db05b571a
|
||||
|
Loading…
x
Reference in New Issue
Block a user