mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-02-04 22:49:38 +00:00
Currently, the do_compile log is cluttered with dtc warnings that should only be printed when compiling with W="123": ... /soc: node has a reg or ranges property, but no unit name /soc/gpu: missing or empty reg/ranges property /soc/firmware/gpio: missing or empty reg/ranges property ... This happens because we pass dtc flags via KERNEL_EXTRA_ARGS directly on the make command line, preventing scripts/Makefile.lib logic from appending flags that silence dtc warnings (all assignments done from within a makefile, to a variable specified on the command line, are ignored). oe-core commit [1] introduced the dedicated KERNEL_DTC_FLAGS variable to pass dtc flags via the environment. Use this variable to get rid of the do_compile log noise. The md5sums of the generated dtbs for raspberrypi3-64 and raspberrypi4-64 do not change with this patch applied. [1] https://github.com/openembedded/openembedded-core/commit/063b5de86624 Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
32 lines
979 B
BlitzBasic
32 lines
979 B
BlitzBasic
python __anonymous() {
|
|
if "linux-raspberrypi-dev" not in d.getVar("PREFERRED_PROVIDER_virtual/kernel"):
|
|
msg = "Skipping linux-raspberrypi-dev as it is not the preferred " + \
|
|
"provider of virtual/kernel."
|
|
raise bb.parse.SkipRecipe(msg)
|
|
}
|
|
|
|
LINUX_VERSION ?= "5.10.y"
|
|
LINUX_RPI_BRANCH ?= "rpi-5.10.y"
|
|
|
|
SRCREV_machine = "${AUTOREV}"
|
|
SRCREV_meta = "${AUTOREV}"
|
|
|
|
KMETA = "kernel-meta"
|
|
|
|
SRC_URI = " \
|
|
git://github.com/raspberrypi/linux.git;name=machine;protocol=git;branch=${LINUX_RPI_BRANCH} \
|
|
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA} \
|
|
file://powersave.cfg \
|
|
file://android-drivers.cfg \
|
|
"
|
|
|
|
require linux-raspberrypi.inc
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
|
|
|
KERNEL_DTC_FLAGS += "-@ -H epapr"
|
|
|
|
# Disable version check so that we don't have to edit this recipe every time
|
|
# upstream bumps the version
|
|
KERNEL_VERSION_SANITY_SKIP = "1"
|