diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2021-01-25 17:21:04 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-01-26 13:02:59 +0000 |
commit | f24de447904e98fb0a4e524631b246e331dc95d9 (patch) | |
tree | 2f1683ddb7fcb6dd50970bff7780dc1a43067c59 | |
parent | 56ab9265570892d1357dd29cb92c04d4a0ce6d75 (diff) | |
download | meta-raspberrypi-f24de447904e98fb0a4e524631b246e331dc95d9.tar.gz |
linux-raspberrypi: pass dtc flags via KERNEL_DTC_FLAGS
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>
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi-dev.bb | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_5.4.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi-dev.bb b/recipes-kernel/linux/linux-raspberrypi-dev.bb index 9b2b6f3..3872fdb 100644 --- a/recipes-kernel/linux/linux-raspberrypi-dev.bb +++ b/recipes-kernel/linux/linux-raspberrypi-dev.bb | |||
@@ -24,7 +24,7 @@ require linux-raspberrypi.inc | |||
24 | 24 | ||
25 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 25 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
26 | 26 | ||
27 | KERNEL_EXTRA_ARGS += "DTC_FLAGS='-@ -H epapr'" | 27 | KERNEL_DTC_FLAGS += "-@ -H epapr" |
28 | 28 | ||
29 | # Disable version check so that we don't have to edit this recipe every time | 29 | # Disable version check so that we don't have to edit this recipe every time |
30 | # upstream bumps the version | 30 | # upstream bumps the version |
diff --git a/recipes-kernel/linux/linux-raspberrypi_5.4.bb b/recipes-kernel/linux/linux-raspberrypi_5.4.bb index c788818..ba97ed5 100644 --- a/recipes-kernel/linux/linux-raspberrypi_5.4.bb +++ b/recipes-kernel/linux/linux-raspberrypi_5.4.bb | |||
@@ -19,4 +19,4 @@ require linux-raspberrypi.inc | |||
19 | 19 | ||
20 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | 20 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" |
21 | 21 | ||
22 | KERNEL_EXTRA_ARGS += "DTC_FLAGS='-@ -H epapr'" | 22 | KERNEL_DTC_FLAGS += "-@ -H epapr" |