Compare commits

...

3 Commits

Author SHA1 Message Date
Patrick Vogelaar 1b09c385fb Add sanity check for LTS Kernel 2022-10-27 22:08:39 +02:00
Patrick Vogelaar 5c4a9a58c8 Changes from review 2022-10-27 22:07:32 +02:00
Patrick Vogelaar fef2f480c3 Use the new Linux kernel maintenance concept 2022-10-19 21:00:58 +02:00
6 changed files with 92 additions and 4 deletions

View File

@ -22,12 +22,20 @@ python check_coreos_sanity_eventhandler() {
"systemd is not set as `INIT_MANAGER`. "
"Using SystemD is mandatory on CoreOS based distribution"
)
if e.data.getVar("TCLIBC") != "glibc":
bb.fatal(
"glibc is not set as `TCLIBC`. "
"Using glibc is mandatory on CoreOS based distribution"
)
virtKernel = e.data.getVar('PREFERRED_PROVIDER_virtual/kernel')
if "lts" not in virtKernel:
bb.warn(
"No LTS Linux Kernel used. "
"It is highly recommended to use a LTS version. "
"Currently used provider is: %s_%s" % (virtKernel, e.data.getVar('PREFERRED_VERSION_' + virtKernel))
)
return
}

View File

@ -56,3 +56,8 @@ SDK_VERSION = "${DISTRO_VERSION}"
SDK_VERSION[vardepvalue] = "${SDK_VERSION}"
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}"
# Linux Kernel Configuration
# ==============================================================================
PREFERRED_PROVIDER_virtual/kernel ?= "linux-coreos-lts"
PREFERRED_VERSION_linux-coreos-lts ?= "5.15"

View File

@ -0,0 +1,18 @@
CONFIG_NET_DSA_MV88E6XXX=m
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_FTDI_SIO=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_NET_DSA=m
CONFIG_SENSORS_PWM_FAN=y
CONFIG_GPIO_SYSFS=y
CONFIG_SFP=y
CONFIG_MARVELL_PHY=y
CONFIG_MARVELL_10G_PHY=y
CONFIG_SENSORS_MCP3021=y
CONFIG_EEPROM_AT24=y
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_ACPI_CPPC_CPUFREQ=y
CONFIG_ARM_ARMADA_8K_CPUFREQ=y

View File

@ -0,0 +1,26 @@
DESCRIPTION = "Linux kernel for various boards using CoreOS"
COMPATIBLE_MACHINE = "cn913x"
inherit kernel
SRC_URI = "git://git@bitbucket.gad.local:7999/ico/belden-linux-stable.git;branch=linux-6.0.y;protocol=ssh \
file://cn913x_additions.cfg \
"
SRCREV ?= "d52f0d36932957910ac54206f5ff7645308fa519"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
S = "${WORKDIR}/git"
#If a KERNEL_DEFCONFIG is specified, the defconfig specified in SRC_URI will be overwritten!
do_configure:append(){
if [ "${KERNEL_DEFCONFIG}" != "" ]; then
oe_runmake ${KERNEL_DEFCONFIG}
fi
configs="${@" ".join(find_cfgs(d))}"
if [ ! -z "${configs}" ]; then
${S}/scripts/kconfig/merge_config.sh -m -O ${WORKDIR}/build ${WORKDIR}/build/.config ${WORKDIR}/*.cfg
fi
}

View File

@ -0,0 +1,26 @@
DESCRIPTION = "Linux kernel for various boards using CoreOS"
COMPATIBLE_MACHINE = "cn913x"
inherit kernel
SRC_URI = "git://git@bitbucket.gad.local:7999/ico/belden-linux-stable.git;branch=linux-5.15.y;protocol=ssh \
file://cn913x_additions.cfg \
"
SRCREV ?= "db87c63be6014625b5e06fa65ce24e29d3756507"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
S = "${WORKDIR}/git"
#If a KERNEL_DEFCONFIG is specified, the defconfig specified in SRC_URI will be overwritten!
do_configure:append(){
if [ "${KERNEL_DEFCONFIG}" != "" ]; then
oe_runmake ${KERNEL_DEFCONFIG}
fi
configs="${@" ".join(find_cfgs(d))}"
if [ ! -z "${configs}" ]; then
${S}/scripts/kconfig/merge_config.sh -m -O ${WORKDIR}/build ${WORKDIR}/build/.config ${WORKDIR}/*.cfg
fi
}

View File

@ -23,15 +23,20 @@ UBOOT_LOADADDRESS = "0x7000000"
# Kernel configuration
# ******************************************************************************
PREFERRED_PROVIDER_virtual/kernel ?= "linux-coreos-lts"
PREFERRED_VERSION_linux-coreos-lts ?= "5.15"
# uncomment to have the latest stable
# PREFERRED_PROVIDER_virtual/kernel ?= "linux-coreos-dev"
# PREFERRED_VERSION_linux-coreos-dev ?= "6.0"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-netmodule"
PREFERRED_VERSION_linux-netmodule ?= "git-5.15-solidrun"
PREFERRED_VERSION_trusted_firmware_a ?= "2.3-solidrun"
KERNEL_IMAGETYPE = "Image"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
KERNEL_DEFCONFIG ?= "cn9130-netmodule_defconfig"
#KERNEL_DEFCONFIG ?= "cn9130-netmodule_defconfig"
KERNEL_DEFCONFIG ?= "defconfig"
# By default we compile all supported cn913x devicetree. The devicetree to use
# is then set for each machine with the KERNEL_DEVICETREE_TO_USE variable