linux-riscv: move common parts between kernel versions in to .inc file

Reduces duplication.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
This commit is contained in:
Mirza Krak
2018-03-20 21:16:29 +00:00
committed by Khem Raj
parent fe8fa317aa
commit 293cdd2029
3 changed files with 30 additions and 54 deletions

View File

@@ -0,0 +1,28 @@
DESCRIPTION = "RISC-V Linux Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SRC_URI = "\
git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \
file://earlyprintk.cfg \
"
LINUX_VERSION_EXTENSION = "-riscv"
PV = "${LINUX_VERSION}+git${SRCPV}"
DEPENDS_append = " libgcc"
KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
KCONFIG_MODE="--alldefconfig"
KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
KERNEL_LD_append = " -no-pie"
COMPATIBLE_MACHINE = "(qemuriscv64)"
KERNEL_FEATURES_remove = "features/debug/printk.scc"

View File

@@ -1,32 +1,6 @@
DESCRIPTION = "RISC-V Linux Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SRC_URI = "\
git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \
file://earlyprintk.cfg \
"
require recipes-kernel/linux/linux-riscv-common.inc
LINUX_VERSION ?= "4.15"
LINUX_VERSION_EXTENSION_append = "-riscv"
BRANCH = "riscv-linux-4.15"
SRCREV = "2b0aa1de45f63535f6d26757aa22b48515289302"
PV = "${LINUX_VERSION}+git${SRCPV}"
DEPENDS_append = " libgcc"
KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
KCONFIG_MODE="--alldefconfig"
KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
KERNEL_LD_append = " -no-pie"
COMPATIBLE_MACHINE = "(qemuriscv64)"
KERNEL_FEATURES_remove = "features/debug/printk.scc"

View File

@@ -1,32 +1,6 @@
DESCRIPTION = "RISC-V Linux Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SRC_URI = "\
git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \
file://earlyprintk.cfg \
"
require recipes-kernel/linux/linux-riscv-common.inc
LINUX_VERSION ?= "4.16-rc5"
LINUX_VERSION_EXTENSION_append = "-riscv"
BRANCH = "riscv-all"
SRCREV = "7f82cffaad50273eedb654b58167c662383eac99"
PV = "${LINUX_VERSION}+git${SRCPV}"
DEPENDS_append = " libgcc"
KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
KCONFIG_MODE="--alldefconfig"
KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
KERNEL_LD_append = " -no-pie"
COMPATIBLE_MACHINE = "(qemuriscv64)"
KERNEL_FEATURES_remove = "features/debug/printk.scc"