Compare commits

...

5 Commits

Author SHA1 Message Date
David Abdurachmanov 3e6f0c474f
Update riscv config
Two major changes:
- Disable legacy SBI by default
- Enable DA9063 PMIC support (SiFive Unmatched)

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-06-15 16:38:02 +03:00
David Abdurachmanov 21aa58208a
Fix riscv64 defconfig
In the future we want to make sure USB and Ethernet is availble without
kernel modules.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-06-15 16:24:30 +03:00
David Abdurachmanov 61dbd6b72e
Add missing filter-riscv64.sh.fedora
Based on the old files. The comment from the old files:

 12 # Differences from default:
 13 # - Removed mfd and platform (i.e. needed in core)
 14 # - Added message (i.e. not needed in core)
 15 # - Removed mmc (i.e. need mmc in core)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-06-15 16:24:19 +03:00
David Abdurachmanov 606ce30c0e
Add kernel.spec template
New thing is that we enable signing EFI kernel (untested).

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-06-15 16:21:38 +03:00
David Abdurachmanov e83e9d2eba
New riscv64 for kernels 5.14/5.15
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-06-15 16:19:35 +03:00
190 changed files with 258 additions and 15 deletions

View File

@ -89,7 +89,7 @@ SOURCES:=$(RPM)/SOURCES
TESTPATCH:=$(REDHAT)/linux-kernel-test.patch
SPECCHANGELOG:=$(PACKAGE_NAME).changelog-$(RHEL_MAJOR).$(RHEL_MINOR)
CHANGELOG_PREV:=$(PACKAGE_NAME).changelog-$(RHEL_MAJOR).$(shell expr $(RHEL_MINOR) - 1)
ARCH_LIST=aarch64 ppc64le s390x x86_64
ARCH_LIST=aarch64 ppc64le s390x x86_64 riscv64
ifndef DISTRO
ifneq ($(findstring .fc,$(DIST)),)

View File

@ -10,10 +10,13 @@ else ifeq ($(ARCH),powerpc)
CROSS_PACKAGE_LIST += binutils-powerpc64-linux-gnu gcc-powerpc64-linux-gnu
else ifeq ($(ARCH),s390)
CROSS_PACKAGE_LIST += binutils-s390x-linux-gnu gcc-s390x-linux-gnu
else ifeq ($(ARCH),riscv64)
CROSS_PACKAGE_LIST += binutils-riscv64-linux-gnu gcc-riscv64-linux-gnu
else
CROSS_PACKAGE_LIST += binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu
CROSS_PACKAGE_LIST += binutils-powerpc64-linux-gnu gcc-powerpc64-linux-gnu
CROSS_PACKAGE_LIST += binutils-s390x-linux-gnu gcc-s390x-linux-gnu
CROSS_PACKAGE_LIST += binutils-riscv64-linux-gnu gcc-riscv64-linux-gnu
endif
dist-cross-download:
@ -39,13 +42,19 @@ dist-cross-s390x-rpms: dist-cross-download dist-sources
$(CROSS_RPMFLAGS) --target s390x --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "s390x"
dist-cross-riscv64-rpms: dist-cross-download dist-sources
$(REDHAT)/scripts/x86_rngd.sh
$(CROSS_RPMFLAGS) --target riscv64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "riscv64"
dist-cross-all-rpms: dist-cross-download dist-sources
$(REDHAT)/scripts/x86_rngd.sh
$(CROSS_RPMFLAGS) --target aarch64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target ppc64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target s390x --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target riscv64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) -ba $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "aarch64 ppc64 s390x x86_64"
$(REDHAT)/scripts/generate-cross-report.sh "aarch64 ppc64 s390x x86_64 riscv64"
dist-cross-aarch64-build: dist-cross-download dist-sources
$(REDHAT)/scripts/x86_rngd.sh
@ -62,10 +71,16 @@ dist-cross-s390x-build: dist-cross-download dist-sources
$(CROSS_RPMFLAGS) --target s390x --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "s390x"
dist-cross-riscv64-build: dist-cross-download dist-sources
$(REDHAT)/scripts/x86_rngd.sh
$(CROSS_RPMFLAGS) --target riscv64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "riscv64"
dist-cross-all-builds: dist-cross-download dist-sources
$(REDHAT)/scripts/x86_rngd.sh
$(CROSS_RPMFLAGS) --target aarch64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target ppc64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target s390x --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --target riscv64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(CROSS_RPMFLAGS) --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE)
$(REDHAT)/scripts/generate-cross-report.sh "aarch64 ppc64 s390x x86_64"
$(REDHAT)/scripts/generate-cross-report.sh "aarch64 ppc64 s390x x86_64 riscv64"

View File

@ -104,6 +104,8 @@ function merge_configs()
echo "# s390" > "$name";;
"armv7hl")
echo "# arm" > "$name";;
"riscv64")
echo "# riscv64" > "$name";;
*)
echo "# $arch" > "$name";;
esac

View File

@ -25,3 +25,7 @@ armv7hl=generic:generic-arm:generic-arm-armv7:generic-arm-armv7-armv7
armv7hl-debug=generic:generic-arm:generic-arm-armv7:generic-arm-armv7-armv7:debug:debug-arm
armv7hl-lpae=generic:generic-arm:generic-arm-armv7:generic-arm-armv7-lpae
armv7hl-lpae-debug=generic:generic-arm:generic-arm-armv7:generic-arm-armv7-lpae:debug:debug-arm
# riscv64
riscv64=generic:generic-riscv:generic-riscv-riscv64
riscv64-debug=generic:generic-riscv:generic-riscv-riscv64:debug:debug-riscv-riscv64

View File

@ -37,7 +37,8 @@ EVALUATECONFIGS=(1 "Help"
ARCHOPTIONS=(aarch64 ""
powerpc64le ""
s390x ""
x86_64 "")
x86_64 ""
riscv64 "")
usage()
{
@ -78,7 +79,7 @@ read_file() # $1 is the full file path
get_arch_files() # $1 is directory, $2 is CONFIG
{
# The second s390x entry is really s390x/zfcpdump
for arch in "aarch64" "powerpc64le" "s390x" "x86_64" "s390x"
for arch in "aarch64" "powerpc64le" "s390x" "x86_64" "s390x" "riscv64"
do
# Need to special case generic powerpc64 & powerpc64le
# because they have an extra "hop" between them at

View File

@ -0,0 +1 @@
# CONFIG_BATTERY_GOLDFISH is not set

View File

@ -0,0 +1 @@
CONFIG_CGROUP_HUGETLB=y

View File

@ -0,0 +1 @@
CONFIG_CHECKPOINT_RESTORE=y

View File

@ -0,0 +1 @@
CONFIG_CMDLINE=""

View File

@ -0,0 +1 @@
# CONFIG_CMDLINE_BOOL is not set

View File

@ -0,0 +1 @@
# CONFIG_CMODEL_MEDLOW is not set

View File

@ -0,0 +1 @@
CONFIG_COMMON_CLK_PWM=m

View File

@ -0,0 +1 @@
CONFIG_CPUFREQ_DT=m

View File

@ -0,0 +1 @@
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set

View File

@ -0,0 +1 @@
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y

View File

@ -0,0 +1 @@
CONFIG_CRC7=y

View File

@ -0,0 +1 @@
CONFIG_CRC_ITU_T=y

View File

@ -0,0 +1 @@
CONFIG_DMIID=y

View File

@ -0,0 +1 @@
# CONFIG_DRM_PANEL_ARM_VERSATILE is not set

View File

@ -0,0 +1 @@
CONFIG_EFIVAR_FS=y

View File

@ -0,0 +1 @@
# CONFIG_FB_GOLDFISH is not set

View File

@ -0,0 +1 @@
CONFIG_FB_SSD1307=m

View File

@ -0,0 +1 @@
# CONFIG_FLATMEM_MANUAL is not set

View File

@ -0,0 +1 @@
CONFIG_FPU=y

View File

@ -0,0 +1 @@
CONFIG_GOLDFISH=y

View File

@ -0,0 +1 @@
# CONFIG_GOLDFISH_AUDIO is not set

View File

@ -0,0 +1 @@
# CONFIG_GOLDFISH_PIPE is not set

View File

@ -0,0 +1 @@
# CONFIG_GOLDFISH_TTY is not set

View File

@ -0,0 +1 @@
# CONFIG_GPIO_74XX_MMIO is not set

View File

@ -0,0 +1 @@
CONFIG_GPIO_SYSCON=m

View File

@ -0,0 +1 @@
# CONFIG_HVC_RISCV_SBI is not set

View File

@ -0,0 +1 @@
CONFIG_HZ=100

View File

@ -0,0 +1 @@
CONFIG_HZ_100=y

View File

@ -0,0 +1 @@
# CONFIG_HZ_1000 is not set

View File

@ -0,0 +1 @@
CONFIG_I2C=y

View File

@ -0,0 +1 @@
CONFIG_I2C_MUX=m

View File

@ -0,0 +1 @@
CONFIG_INPUT_MATRIXKMAP=m

View File

@ -0,0 +1 @@
CONFIG_INPUT_PWM_BEEPER=m

View File

@ -0,0 +1 @@
# CONFIG_KEYBOARD_BCM is not set

View File

@ -0,0 +1 @@
# CONFIG_KEYBOARD_GOLDFISH_EVENTS is not set

View File

@ -0,0 +1 @@
CONFIG_LEDS_PWM=m

View File

@ -0,0 +1 @@
CONFIG_LEDS_SYSCON=y

View File

@ -0,0 +1 @@
CONFIG_LEDS_TRIGGER_CPU=y

View File

@ -0,0 +1 @@
CONFIG_MFD_CORE=m

View File

@ -0,0 +1 @@
CONFIG_MFD_SYSCON=y

View File

@ -0,0 +1 @@
CONFIG_MMC=y

View File

@ -0,0 +1 @@
CONFIG_MMC_BLOCK=y

View File

@ -0,0 +1 @@
CONFIG_MMC_CQHCI=y

View File

@ -0,0 +1 @@
# CONFIG_MMC_DW_EXYNOS is not set

View File

@ -0,0 +1 @@
# CONFIG_MMC_DW_HI3798CV200 is not set

View File

@ -0,0 +1 @@
# CONFIG_MMC_DW_K3 is not set

View File

@ -0,0 +1 @@
CONFIG_MMC_DW_PCI=m

View File

@ -0,0 +1 @@
CONFIG_MMC_DW_PLTFM=m

View File

@ -0,0 +1 @@
# CONFIG_MMC_GOLDFISH is not set

View File

@ -0,0 +1 @@
CONFIG_MMC_SDHCI=y

View File

@ -0,0 +1 @@
CONFIG_MMC_SDHCI_PLTFM=y

View File

@ -0,0 +1 @@
CONFIG_MMC_SPI=y

View File

@ -0,0 +1 @@
CONFIG_MTD_BLKDEVS=m

View File

@ -0,0 +1 @@
CONFIG_MTD_BLOCK=m

View File

@ -0,0 +1 @@
CONFIG_MTD_CFI=m

View File

@ -0,0 +1 @@
# CONFIG_MTD_CFI_ADV_OPTIONS is not set

View File

@ -0,0 +1 @@
CONFIG_MTD_CFI_AMDSTD=m

View File

@ -0,0 +1 @@
CONFIG_MTD_CFI_INTELEXT=m

View File

@ -0,0 +1 @@
CONFIG_MTD_CFI_STAA=m

View File

@ -0,0 +1 @@
CONFIG_MTD_OF_PARTS=m

View File

@ -0,0 +1 @@
CONFIG_MTD_PHYSMAP=m

View File

@ -0,0 +1 @@
# CONFIG_MTD_PHYSMAP_COMPAT is not set

View File

@ -0,0 +1 @@
# CONFIG_MTD_PHYSMAP_GEMINI is not set

View File

@ -0,0 +1 @@
CONFIG_MTD_PHYSMAP_OF=y

View File

@ -0,0 +1 @@
# CONFIG_MTD_PHYSMAP_VERSATILE is not set

View File

@ -0,0 +1 @@
CONFIG_MTD_SPI_NOR=m

View File

@ -0,0 +1 @@
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set

View File

@ -0,0 +1 @@
# CONFIG_NO_HZ_FULL is not set

View File

@ -0,0 +1 @@
CONFIG_NO_HZ_IDLE=y

View File

@ -0,0 +1 @@
CONFIG_NR_CPUS=32

View File

@ -0,0 +1 @@
CONFIG_OF=y

View File

@ -0,0 +1 @@
CONFIG_OF_GPIO=y

View File

@ -0,0 +1 @@
CONFIG_OF_OVERLAY=y

View File

@ -0,0 +1 @@
# CONFIG_OF_UNITTEST is not set

View File

@ -0,0 +1 @@
CONFIG_PCIE_CADENCE_PLAT_EP=y

View File

@ -0,0 +1 @@
CONFIG_PCIE_XILINX=y

View File

@ -0,0 +1 @@
CONFIG_PCI_HOST_COMMON=y

View File

@ -0,0 +1 @@
CONFIG_PCI_HOST_GENERIC=y

View File

@ -0,0 +1 @@
# CONFIG_PHYS_RAM_BASE_FIXED is not set

View File

@ -0,0 +1 @@
CONFIG_POWER_RESET_GPIO=y

View File

@ -0,0 +1 @@
CONFIG_POWER_RESET_GPIO_RESTART=y

View File

@ -0,0 +1 @@
CONFIG_POWER_RESET_RESTART=y

View File

@ -0,0 +1 @@
CONFIG_POWER_RESET_SYSCON=y

View File

@ -0,0 +1 @@
CONFIG_POWER_RESET_SYSCON_POWEROFF=y

View File

@ -0,0 +1 @@
# CONFIG_PROFILE_ALL_BRANCHES is not set

View File

@ -0,0 +1 @@
CONFIG_PWM_SYSFS=y

View File

@ -0,0 +1 @@
CONFIG_PWRSEQ_EMMC=y

View File

@ -0,0 +1 @@
CONFIG_REGMAP_SPI=m

View File

@ -0,0 +1 @@
CONFIG_REGULATOR=y

View File

@ -0,0 +1 @@
CONFIG_REGULATOR_ANATOP=m

View File

@ -0,0 +1 @@
CONFIG_REGULATOR_PWM=y

View File

@ -0,0 +1 @@
CONFIG_RISCV_BASE_PMU=y

View File

@ -0,0 +1 @@
CONFIG_RISCV_ERRATA_ALTERNATIVE=y

Some files were not shown because too many files have changed in this diff Show More