From: Devarsh Thakkar <devarsht@ti.com>
To: Martin Stolpe <martinstolpe@gmail.com>,
"Ivan T. Ivanov" <iivanov@suse.de>
Cc: <u-boot@lists.denx.de>, Francois Berder <fberder@outlook.fr>,
Matthias Brugger <mbrugger@suse.com>,
Nikhil M Jain <n-jain1@ti.com>,
Peter Robinson <pbrobinson@gmail.com>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/1] rpi: Fix build error when CONFIG_VIDEO is disabled for Raspberry Pi
Date: Tue, 24 Sep 2024 12:08:48 +0530 [thread overview]
Message-ID: <e27aef89-8038-9099-58ed-b927cce54579@ti.com> (raw)
In-Reply-To: <CAPHZmLbcfMVOydp9jCY0mWKdKPePBp+3rfttMyKbHT-CbB7kjA@mail.gmail.com>
Hi Martin, Ivan
On 24/09/24 11:56, Martin Stolpe wrote:
> Hi,
>
> Am Fr., 20. Sept. 2024 um 10:10 Uhr schrieb Ivan T. Ivanov <iivanov@suse.de
>> :
>
>> Hi,
>>
>> On 09-20 08:32, Martin Stolpe wrote:
>>>
>>> When the CONFIG_VIDEO option is set to disabled for Raspberry Pi devices
>>> the build will fail with the following error message:
>>> "undefined reference to `fdt_simplefb_enable_and_mem_rsv'."
>>>
Thanks for the patch.
>>> Signed-off-by: Martin Stolpe <martin.stolpe@gmail.com>
>>> ---
>>>
>>> board/raspberrypi/rpi/rpi.c | 2 +-
>>> boot/fdt_simplefb.c | 2 +-
>>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
>>> index ab5ea85cf9..bc49708f85 100644
>>> --- a/board/raspberrypi/rpi/rpi.c
>>> +++ b/board/raspberrypi/rpi/rpi.c
>>> @@ -572,7 +572,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
>>> node = fdt_node_offset_by_compatible(blob, -1,
>> "simple-framebuffer");
>>> if (node < 0)
>>> fdt_simplefb_add_node(blob);
>>> - else
>>> + else if (IS_ENABLED(CONFIG_VIDEO))
>>> fdt_simplefb_enable_and_mem_rsv(blob);
>>
>> I think there is one more user of this function which end of same
>> situation stm32mp1.
>>
>
> Would it make sense to replace the config option CONFIG_FDT_SIMPLEFB with
> CONFIG_VIDEO? CONFIG_FDT_SIMPLEFB is only used in the Raspberry Pi default
> configurations but in no other board configuration and I don't see it being
> used in the code besides in stm32mp1.c.
>
CONFIG_FDT_SIMPLEFB is only used in splash-screen context which in-turn
depends on CONFIG_VIDEO. So CONFIG_FDT_SIMPLEFB is in a way dependent on
CONFIG_VIDEO. We had fixed similar issue in past in vendor tree and by making
CONFIG_FDT_SIMPLEFB dependent on CONFIG_VIDEO using below set of patches [1]
which I was planning to post upstream too.
Kindly let me know If these patches look good to you and fix your problem too,
I can post same set of patches to upstream too.
[1] :
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=1199800505f11f2162030cb641c6d0c9276d5c9c
[2] :
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=5b4b8eac243cbd86286ff2cf57ca0469c4d86345
Regards
Devarsh
> Regards
> Martin
>
next prev parent reply other threads:[~2024-09-24 6:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 6:32 [PATCH 0/1] rpi: Fix compilation when CONFIG_VIDEO is disabled Martin Stolpe
2024-09-20 6:32 ` [PATCH 1/1] rpi: Fix build error when CONFIG_VIDEO is disabled for Raspberry Pi Martin Stolpe
2024-09-20 8:16 ` Ivan T. Ivanov
2024-09-24 6:26 ` Martin Stolpe
2024-09-24 6:38 ` Devarsh Thakkar [this message]
2024-09-26 12:26 ` Martin Stolpe
2024-09-26 16:45 ` Devarsh Thakkar
2024-10-07 12:54 ` Martin Stolpe
2024-10-07 13:02 ` Devarsh Thakkar
2024-10-11 12:22 ` Martin Stolpe
2024-10-11 12:33 ` Peter Robinson
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=e27aef89-8038-9099-58ed-b927cce54579@ti.com \
--to=devarsht@ti.com \
--cc=fberder@outlook.fr \
--cc=iivanov@suse.de \
--cc=martinstolpe@gmail.com \
--cc=mbrugger@suse.com \
--cc=n-jain1@ti.com \
--cc=pbrobinson@gmail.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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.