Add riscv64 Makefile and config changes

Booted on SiFive HiFive Unleashed board with Fedora/RISCV:

Linux testing.riscv.rocks 5.7.0-0.rc7.1.0.riscv64.fc33.riscv64 #1 SMP Sat May 30 06:03:18 UTC 2020 riscv64 riscv64 riscv64 GNU/Linux

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2020-06-01 10:25:58 +03:00
parent f83fa9ad1a
commit d8d46eb3b0
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
148 changed files with 189 additions and 9 deletions

View File

@ -82,7 +82,7 @@ SRPMS:=$(RPM)/SRPMS
SOURCES:=$(RPM)/SOURCES
TESTPATCH:=$(REDHAT)/linux-kernel-test.patch
FILTERDIFF:=/usr/bin/filterdiff -x '*redhat/*' -x '*/.gitignore' -x '*/makefile' -x '*/Makefile'
ARCH_LIST=aarch64 ppc64le s390x x86_64
ARCH_LIST=aarch64 ppc64le s390x x86_64 riscv64
# Make can't match on a regex to match fc31, fc32 so add another check here
# A unified tarball means that the tarball in the srpm contains both the
# upstream sources and redhat patches. A non-unified tarball means that

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/$(PACKAGE_NAME).spec
$(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/$(PACKAGE_NAME).spec
$(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/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target ppc64 --with cross -ba $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target s390x --with cross -ba $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target riscv64 --with cross -ba $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) -ba $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(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/$(PACKAGE_NAME).spec
$(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/$(PACKAGE_NAME).spec
$(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/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target ppc64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target s390x --with cross --without debuginfo -bc $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --target riscv64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(CROSS_RPMFLAGS) --without debuginfo -bc $(RPM)/SOURCES/$(PACKAGE_NAME).spec
$(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

@ -80,6 +80,8 @@ function merge_configs()
echo "# arm64" > $name
elif [ "x$arch" == "xppc64le" ]; then
echo "# powerpc" > $name
elif [ "x$arch" == "xriscv64" ]; then
echo "# riscv" > $name
elif [ "x$arch" == "xs390x" ]; then
echo "# s390" > $name
elif [ "x$arch" == "xarmv7hl" ]; then

View File

@ -29,3 +29,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

@ -101,7 +101,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
@ -158,7 +158,7 @@ get_config_files() # $1 is CONFIG
reconstruct_file() # $1 is CONFIG, $2 a x-coordinate $3 is the y-coordinate
{
_dir=$3
# X-axis: "aarch64" "powerpc64le" "s390x" "x86_64" "s390x zfcpdump"
# X-axis: "aarch64" "powerpc64le" "s390x" "x86_64" "s390x zfcpdump" "riscv64"
case $2 in
0) arch="aarch64";;
1) arch="powerpc64le";;
@ -169,6 +169,7 @@ reconstruct_file() # $1 is CONFIG, $2 a x-coordinate $3 is the y-coordinate
#(4,0) is interpreted as generic/s390x/zfcpdump (4,2)
[ $_dir -eq 0 ] && _dir=2
;;
5) arch="riscv64";;
esac
# Y-axis: debug-arch,debug,generic-arch,generic

View File

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

View File

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

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=y

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_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_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_ISA_C=y

View File

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

View File

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

View File

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

View File

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

View File

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

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