From: Herve Jourdain <herve.jourdain@neuf.fr>
To: yocto@yoctoproject.org
Subject: [meta-raspberrypi] [PATCH] ds1307-rtc-overlay.dtb has been removed from the kernel tree, and most overlays have been moved to the dts/overlays directory
Date: Wed, 17 Jun 2015 10:43:58 +0200 [thread overview]
Message-ID: <009101d0a8d9$c460eb40$4d22c1c0$@neuf.fr> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 4154 bytes --]
Hi,
Actually, the situation is slightly more complex than I initially supposed :
not only were some .dtb deleted, but also most were moved to the < overlays
> subdirectory.
This is true for the kernel after git
739c586c87576fb8ef151b5843ebed76c43a5221:
https://github.com/raspberrypi/linux/commit/739c586c87576fb8ef151b5843ebed76
c43a5221
The following patch is making the whole thing compiling, and seems to
install them in the right places, but I'm not sure I'm creating the
directory needed for compiling the overlays at the best of places.
Anyway, here it goes:
Signed-off-by: herve.jourdain@neuf.fr <mailto:herve.jourdain@neuf.fr>
--- meta-raspberrypi/conf/machine/include/rpi-base.inc 2015-05-19
10:34:22.099500543 +0800
+++ meta-raspberrypi.new/conf/machine/include/rpi-base.inc 2015-06-17
02:34:11.538069350 +0800
@@ -23,18 +23,17 @@
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
\
- ds1307-rtc-overlay.dtb \
- hifiberry-amp-overlay.dtb \
- hifiberry-dac-overlay.dtb \
- hifiberry-dacplus-overlay.dtb \
- hifiberry-digi-overlay.dtb \
- iqaudio-dac-overlay.dtb \
- iqaudio-dacplus-overlay.dtb \
- lirc-rpi-overlay.dtb \
- pcf8523-rtc-overlay.dtb \
- pps-gpio-overlay.dtb \
- w1-gpio-overlay.dtb \
- w1-gpio-pullup-overlay.dtb \
+ overlays/hifiberry-amp-overlay.dtb \
+ overlays/hifiberry-dac-overlay.dtb \
+ overlays/hifiberry-dacplus-overlay.dtb \
+ overlays/hifiberry-digi-overlay.dtb \
+ overlays/i2c-rtc-overlay.dtb \
+ overlays/iqaudio-dac-overlay.dtb \
+ overlays/iqaudio-dacplus-overlay.dtb \
+ overlays/lirc-rpi-overlay.dtb \
+ overlays/pps-gpio-overlay.dtb \
+ overlays/w1-gpio-overlay.dtb \
+ overlays/w1-gpio-pullup-overlay.dtb \
"
KERNEL_IMAGETYPE ?= "Image"
--- meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc
2015-05-19 10:34:22.103500543 +0800
+++ meta-raspberrypi.new/recipes-kernel/linux/linux-raspberrypi.inc
2015-06-17 04:34:03.562361029 +0800
@@ -42,6 +42,9 @@
do_install_prepend() {
install -d ${D}/lib/firmware
+ if [ -n "${KERNEL_DEVICETREE}" ]; then
+ mkdir -p ${B}/arch/${ARCH}/boot/dts/overlays
+ fi
}
do_deploy_append() {
Regards
From: Herve Jourdain [mailto:herve.jourdain@neuf.fr]
Sent: mercredi 17 juin 2015 04:57
To: 'yocto@yoctoproject.org'
Subject: [meta-raspberrypi] ds1307-rtc-overlay.dtb has been removed from the
kernel tree
Hi,
I'm not sure about the formalism of submitting patches to this list, so I
hope you will forgive any misstep.
Recently, the RaspberryPi kernel has removed some "deprecated" DTB overlays
from the kernel tree, causing the meta-raspberrypi layer to fail at compile
time.
The failure message is:
No rule to make target `arch/arm/boot/dts/ds1307-rtc-overlay.dtb'. Stop.
The DTB overlays that have been deleted are:
ds1307-rtc-overlay
pf2127-rtc-overlay
pcf8523-rtc-overlay
pfc8563-rtc-overlay
They've been replaced by: i2c-rtc-overlay
Therefore, the file conf/machine/include/rpi-base.inc must be modified to
accommodate those changes.
The proposed patch is:
--- meta-raspberrypi/conf/machine/include/rpi-base.inc 2015-06-10
12:59:09.069237631 +0800
+++ meta-raspberrypi.new/conf/machine/include/rpi-base.inc 2015-06-17
01:11:58.125869271 +0800
@@ -23,15 +23,14 @@
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
\
- ds1307-rtc-overlay.dtb \
hifiberry-amp-overlay.dtb \
hifiberry-dac-overlay.dtb \
hifiberry-dacplus-overlay.dtb \
hifiberry-digi-overlay.dtb \
+ i2c-rtc-overlay.dtb \
iqaudio-dac-overlay.dtb \
iqaudio-dacplus-overlay.dtb \
lirc-rpi-overlay.dtb \
- pcf8523-rtc-overlay.dtb \
pps-gpio-overlay.dtb \
w1-gpio-overlay.dtb \
w1-gpio-pullup-overlay.dtb \
Signed-off-by: herve.jourdain@neuf.fr <mailto:herve.jourdain@neuf.fr>
Regards
[-- Attachment #1.2: Type: text/html, Size: 15753 bytes --]
[-- Attachment #2: meta-raspberrypi-dtb-changes.patch --]
[-- Type: application/octet-stream, Size: 1582 bytes --]
--- meta-raspberrypi/conf/machine/include/rpi-base.inc 2015-05-19 10:34:22.099500543 +0800
+++ meta-raspberrypi.new/conf/machine/include/rpi-base.inc 2015-06-17 02:34:11.538069350 +0800
@@ -23,18 +23,17 @@
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
\
- ds1307-rtc-overlay.dtb \
- hifiberry-amp-overlay.dtb \
- hifiberry-dac-overlay.dtb \
- hifiberry-dacplus-overlay.dtb \
- hifiberry-digi-overlay.dtb \
- iqaudio-dac-overlay.dtb \
- iqaudio-dacplus-overlay.dtb \
- lirc-rpi-overlay.dtb \
- pcf8523-rtc-overlay.dtb \
- pps-gpio-overlay.dtb \
- w1-gpio-overlay.dtb \
- w1-gpio-pullup-overlay.dtb \
+ overlays/hifiberry-amp-overlay.dtb \
+ overlays/hifiberry-dac-overlay.dtb \
+ overlays/hifiberry-dacplus-overlay.dtb \
+ overlays/hifiberry-digi-overlay.dtb \
+ overlays/i2c-rtc-overlay.dtb \
+ overlays/iqaudio-dac-overlay.dtb \
+ overlays/iqaudio-dacplus-overlay.dtb \
+ overlays/lirc-rpi-overlay.dtb \
+ overlays/pps-gpio-overlay.dtb \
+ overlays/w1-gpio-overlay.dtb \
+ overlays/w1-gpio-pullup-overlay.dtb \
"
KERNEL_IMAGETYPE ?= "Image"
--- meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc 2015-05-19 10:34:22.103500543 +0800
+++ meta-raspberrypi.new/recipes-kernel/linux/linux-raspberrypi.inc 2015-06-17 04:34:03.562361029 +0800
@@ -42,6 +42,9 @@
do_install_prepend() {
install -d ${D}/lib/firmware
+ if [ -n "${KERNEL_DEVICETREE}" ]; then
+ mkdir -p ${B}/arch/${ARCH}/boot/dts/overlays
+ fi
}
do_deploy_append() {
next reply other threads:[~2015-06-17 8:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 8:43 Herve Jourdain [this message]
2015-06-18 6:28 ` [meta-raspberrypi] [PATCH] ds1307-rtc-overlay.dtb has been removed from the kernel tree, and most overlays have been moved to the dts/overlays directory Andrei Gherzan
2015-06-18 8:22 ` Herve Jourdain
2015-06-18 8:33 ` Andrei Gherzan
2015-06-23 18:29 ` Andrei Gherzan
2015-06-24 8:02 ` Herve Jourdain
[not found] ` <CAK18fxHbB9+LaWVj6t46YUdO_Lay=_D9wo4nZv5aZjj5zq+FiQ@mail.gmail.com>
[not found] ` <001301d0ae7a$995ebbb0$cc1c3310$@neuf.fr>
2015-06-24 13:58 ` Andrei Gherzan
2015-06-24 15:33 ` Herve Jourdain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009101d0a8d9$c460eb40$4d22c1c0$@neuf.fr' \
--to=herve.jourdain@neuf.fr \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.