From: "Petter Mabäcker" <petter@technux.se>
To: Andrei Gherzan <andrei@gherzan.ro>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [meta-raspberrypi][PATCH 1/5] devicetree: auto-disable dts for old kernels
Date: Mon, 25 May 2015 16:48:43 +0200 [thread overview]
Message-ID: <3acef428c770794ffe6fb81a8ca800d3@technux.se> (raw)
In-Reply-To: <CAK18fxEsdz9SFurpRx7wpxwu1S_EFMzGoO8se-ULxObaPOmmOw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]
2015-05-18 00:46 skrev Andrei Gherzan:
> Hi Petter,
>
>> + #
Check if we are building with device tree support + DTS="${@get_dts(d,
None)}" # Initialize sdcard image file dd if=/dev/zero of=${SDIMG}
bs=1024 count=0 seek=${SDIMG_SIZE} @@ -112,7 +114,7 @@
IMAGE_CMD_rpi-sdimg () { mcopy -i ${WORKDIR}/boot.img -s
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
::uImage ;; *) - if test -n "${KERNEL_DEVICETREE}"; then + if test -n
"${DTS}"; then # Copy board device trees to root folder for DTB in
${DT_ROOT}; do DTB_BASE_NAME=`basename ${DTB} .dtb`
>
> I started to
review these patches and test. I have one concern related
> to this
patch. More specifically the fact that even though you check
> for DTS
now, we are still using DT_ROOT (and co) for the next loops
> which use
KERNEL_DEVICETREE. Maybe a better way to do it would be to
> move
>
DT_ALL = "${@d.getVar('KERNEL_DEVICETREE', True) or ''}"
> DT_OVERLAYS =
"${@oe.utils.str_filter('S+-overlay.dtb$',
> '${DT_ALL}', d)}"
> DT_ROOT
= "${@oe.utils.str_filter_out('S+-overlay.dtb$', '${DT_ALL}', d)}"
> ...
after you define DTS and define these based on DTS variable.
>
>
Regards,
> Andrei
I Agree, it sounds reasonable. I have prepared a new
changeset for this. Have some final testing to do before sending it.
Biggest problem why I didn't fix this in first change was that the
IMAGE_CMD func seems to behave a little different then I thought. I had
problems to use some functionality and expand variables in some
situations, but I think I figured out a way forward...
Regards Petter
Petter Mabäcker
Technux <petter@technux.se>
www.technux.se
[-- Attachment #2: Type: text/html, Size: 2285 bytes --]
next prev parent reply other threads:[~2015-05-25 14:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-08 21:49 [meta-raspberrypi][PATCH 0/5] kernel fixes Petter Mabäcker
2015-05-08 21:49 ` [meta-raspberrypi][PATCH 1/5] devicetree: auto-disable dts for old kernels Petter Mabäcker
2015-05-10 10:16 ` Andrei Gherzan
2015-05-10 14:20 ` Petter Mabäcker
2015-05-10 14:24 ` Andrei Gherzan
2015-05-10 17:07 ` Petter Mabäcker
2015-05-17 22:46 ` Andrei Gherzan
2015-05-25 14:48 ` Petter Mabäcker [this message]
2015-05-08 21:49 ` [meta-raspberrypi][PATCH 2/5] README: fix outdated device tree info Petter Mabäcker
2015-05-08 21:49 ` [meta-raspberrypi][PATCH 3/5] linux-raspberrypi: Add 3.14 support Petter Mabäcker
2015-05-17 22:53 ` Andrei Gherzan
2015-05-08 21:49 ` [meta-raspberrypi][PATCH 4/5] linux-raspberrypi: Drop support for old kernel versions Petter Mabäcker
2015-05-17 22:51 ` Andrei Gherzan
2015-05-08 21:49 ` [meta-raspberrypi][PATCH 5/5] linux-raspberrypi: Update 3.12 branch to latest Petter Mabäcker
2015-05-17 22:53 ` Andrei Gherzan
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=3acef428c770794ffe6fb81a8ca800d3@technux.se \
--to=petter@technux.se \
--cc=andrei@gherzan.ro \
--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.