Skip to contentSkip to conversation

efi: Minor tweaks to the EFI app

PATCH Applied Simon Glass 3 participants 17 messages Dec 11, 2024 – Dec 19, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover efi: Minor tweaks to the EFI app

This little series adjusts a few things related to the app:

- Support OF_SEPARATE with 32-bit app
- Use OF_SEPARATE now that it is actually functional
- Fix a bad symbol name for the dtb

With these the apps both seem to function OK, and OF_EMBED is not needed anymore.

Simon Glass (3):
efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing
efi: Support an embedded DTB for the 32-bit app
efi: Switch over to OF_SEPARATE for the app

 Makefile                        | 4 ++--
 arch/x86/lib/elf_ia32_efi.lds   | 5 +++++
 configs/efi-x86_app32_defconfig | 1 -
 configs/efi-x86_app64_defconfig | 1 -
 include/asm-generic/sections.h  | 2 +-
 lib/fdtdec.c                    | 2 +-
 6 files changed, 9 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Makefile +1 -1
index d46ff166a00..cbc0feff279 100644
@@ -1678,7 +1678,7 @@ endif # CONFIG_X86
 
 OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI)
 u-boot-app.efi: u-boot dts/dt.dtb FORCE
-	$(call if_changed,embeddtb)
+	$(if $(CONFIG_OF_SEPARATE),$(call if_changed,embeddtb))
 	$(call if_changed,zobjcopy)
 
 u-boot.bin.o: u-boot.bin FORCE
include/asm-generic/sections.h +1 -1
index 4113ea2a866..5b040d0acd0 100644
@@ -70,7 +70,7 @@ extern char __image_copy_start[], __image_copy_end[];
 extern char __bss_end[];
 extern char __rel_dyn_start[], __rel_dyn_end[];
 extern char _image_binary_end[];
-extern char _dtb[];
+extern char __dtb[];
 
 /*
  * This is the U-Boot entry point - prior to relocation it should be same
lib/fdtdec.c +1 -1
index c1eb1c9f825..a5f55cc6223 100644
@@ -1236,7 +1236,7 @@ static void *fdt_find_separate(void)
 		fdt_blob = (ulong *)_image_binary_end;
 	else
 		fdt_blob = (ulong *)__bss_end;
-#elif defined CONFIG_EFI_APP
+#elif defined CONFIG_EFI_APP && defined CONFIG_OF_SEPARATE
 	/* FDT is in a separate section */
 	fdt_blob = (ulong *)__dtb;
 #else
Signature · 1 line
2.34.1
author Applied
#2 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

#3 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Quoted 15 lines · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")
Quoted 8 lines

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

Since you've picked up several series that no one was objecting to and providing reasonable feedback on and applied them to your own tree, do you plan to squash/rebase them and repost so they can be applied to master / next at some point?

Signature · 1 line
Tom
#4 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Hi Tom,

Quoted 25 lines · Tom Rini
Quoted 22 lines · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Quoted 6 lines
Quoted 1 line

Applied to sjg/master, thanks!

Since you've picked up several series that no one was objecting to and providing reasonable feedback on and applied them to your own tree, do you plan to squash/rebase them and repost so they can be applied to master / next at some point?

The original EFI-app series actually had objections in toto. Did you not see the comments from Heinrich?

I've offered to send pull requests every now and then, to keep things in sync, if that is your goal? But I don't believe I can do that for particular patches/series. It is going to be hard enough for me to just maintain my own tree, let along dealing with your/Linaro tree.

Regards,
SImon

#5 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Quoted 30 lines · Simon Glass

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 23 lines · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

Quoted 7 lines
Quoted 4 lines

Since you've picked up several series that no one was objecting to and providing reasonable feedback on and applied them to your own tree, do you plan to squash/rebase them and repost so they can be applied to master / next at some point?

The original EFI-app series actually had objections in toto. Did you not see the comments from Heinrich?

I assume you mean:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/#3419029
which is a question.

Quoted 4 lines

I've offered to send pull requests every now and then, to keep things in sync, if that is your goal? But I don't believe I can do that for particular patches/series. It is going to be hard enough for me to just maintain my own tree, let along dealing with your/Linaro tree.

I find you calling the mainline project tree "your/Linaro tree" offensive. And I'm again asking you to explain in public what you are doing exactly.

Signature · 1 line
Tom
#6 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Hi Tom,

Quoted 37 lines · Tom Rini
Quoted 35 lines · Simon Glass

Hi Tom,

Quoted 31 lines · Tom Rini
Quoted 15 lines · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")
Quoted 8 lines

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

Since you've picked up several series that no one was objecting to and providing reasonable feedback on and applied them to your own tree, do you plan to squash/rebase them and repost so they can be applied to master / next at some point?

Quoted 6 lines
Quoted 2 lines

The original EFI-app series actually had objections in toto. Did you not see the comments from Heinrich?

I assume you mean:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/#3419029
which is a question.

Apart from the general tone, it was mostly the cover letter.

Quoted 9 lines
Quoted 5 lines

I've offered to send pull requests every now and then, to keep things in sync, if that is your goal? But I don't believe I can do that for particular patches/series. It is going to be hard enough for me to just maintain my own tree, let along dealing with your/Linaro tree.

I find you calling the mainline project tree "your/Linaro tree" offensive. And I'm again asking you to explain in public what you are doing exactly.

I'm sorry you are offended. Please suggest a better name that I can use. Honestly, from my point of view, it feels like a Linaro-controlled tree. There's nothing particularly wrong with that, but I would like the freedom to continue to innovate U-Boot, without Linaro telling me what to do. Does that sound OK to you?

Regards,
Simon

#7 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Quoted 40 lines · Simon Glass

Hi Tom,

Quoted 37 lines · Tom Rini
Quoted 35 lines · Simon Glass

Hi Tom,

Quoted 31 lines · Tom Rini
Quoted 15 lines · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported, it seems worth at least showing how OF_EMBED could be used instead, just for the record.

So make the Makefile rule conditional on OF_SEPARATE and adjust fdtdec to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to avoid a build warning.

With future patches, OF_EMBED will no-longer be used with the EFI app, so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI app")
Quoted 8 lines

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

Since you've picked up several series that no one was objecting to and providing reasonable feedback on and applied them to your own tree, do you plan to squash/rebase them and repost so they can be applied to master / next at some point?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

The original EFI-app series actually had objections in toto. Did you not see the comments from Heinrich?

I assume you mean:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/#3419029
which is a question.

Apart from the general tone, it was mostly the cover letter.

Which is
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/#3418939
and an open question to explain the use case more.

Quoted 9 lines
Quoted 8 lines
Quoted 4 lines

I've offered to send pull requests every now and then, to keep things in sync, if that is your goal? But I don't believe I can do that for particular patches/series. It is going to be hard enough for me to just maintain my own tree, let along dealing with your/Linaro tree.

I find you calling the mainline project tree "your/Linaro tree" offensive. And I'm again asking you to explain in public what you are doing exactly.

Quoted 5 lines

I'm sorry you are offended. Please suggest a better name that I can use. Honestly, from my point of view, it feels like a Linaro-controlled tree. There's nothing particularly wrong with that, but I would like the freedom to continue to innovate U-Boot, without Linaro telling me what to do. Does that sound OK to you?

It's mainline. The tree at https://source.denx.de/u-boot/u-boot is the mainline tree for the Das U-Boot project, and I am the maintainer of that tree and the nominal head of the U-Boot project. If you want to ignore the feedback you have been given by other people to do whatever you like, please don't call it U-Boot. It is not "Linaro" disagreeing with your ideas, it's a number of people. It's most frequently myself (neither I nor my company get any money from Linaro, nor Arm Ltd), Heinrich (employed at Canonical, like you) or Ilias (yes, Linaro).

While I am open to, and am exploring how to formally change the project from the old fashioned "Benevolent Dictator For Life" model to something that reflects modern project management, Wolfgang passed the project hat down to me a long time ago. If you don't like my leadership, moving past the BDFL model and to something else will give you a chance to take the reigns, so to speak.

Signature · 1 line
Tom
#8 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Hi Tom,

[snip]

I'm very happy with your leadership. The project is extremely lucky to have you doing what you do and we all know it.

In my own way I will be able to contribute to the project more effectively than I have done for the last year or two. So let's focus on working together within the constraints that we each have. I'm pretty sure that in a year you will be happy with the result.

No, I have not been paid for U-Boot work for more than 10 years and I doubt that will change anytime soon. A little empathy on your part could go a long way.

Regards,
SImon

#9 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Quoted 11 lines · Simon Glass

Hi Tom,

[snip]

I'm very happy with your leadership. The project is extremely lucky to have you doing what you do and we all know it.

In my own way I will be able to contribute to the project more effectively than I have done for the last year or two. So let's focus on working together within the constraints that we each have. I'm pretty sure that in a year you will be happy with the result.

I am extremely concerned that in a year you'll have a tree both has some useful functionality added to it, and that it's built on top of so many rejected patches as to be little more than a reference point for bringing it to mainline. It will be even more complicated if anyone else is *using* your tree. And the challenges you have explaining what you want and why you want it will further compound the problems.

Quoted 3 lines

No, I have not been paid for U-Boot work for more than 10 years and I doubt that will change anytime soon. A little empathy on your part could go a long way.

I am trying, and I will continue to try to. But I also have to try and be mindful of everyone else volunteering on this project too.

This is why I truly believe the most helpful thing you could do for the health of the U-Boot project is take a step back from coding for a bit and work on communicating. Every big problem that you come back to has a number of people saying you don't understand what they say and you not understanding what they say. I do not think a starting assumption on your part of "I'm right, everyone will ..." is going to lead us to a good place in a year.

Signature · 1 line
Tom
#10 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

In reply to Simon Glass
Quoted 7 lines · Simon Glass

Hi Tom,

[snip]

I'm very happy with your leadership. The project is extremely lucky to have you doing what you do and we all know it.

Quoted 9 lines

In my own way I will be able to contribute to the project more effectively than I have done for the last year or two. So let's focus on working together within the constraints that we each have. I'm pretty sure that in a year you will be happy with the result.

No, I have not been paid for U-Boot work for more than 10 years and I doubt that will change anytime soon. A little empathy on your part could go a long way.

Simon, I have never been paid by my employers to work on U-Boot or a lot of other open source projects I contribute to. I do it in my own time for my own enjoyment. There are many contributors to this project, some are paid to do it, some are volunteers, all people have the same standing as contributors, just like I don't care if someone likes to wear plain t-shirts or Hawaiian shirts they have the same standings.

The expectation that you get special treatment in this or any other community because of the reasons you contribute is not the way Open Source works, or in fact just about any community I am aware of. you are judged on your patches, your non code contributions and your behavior.

#11 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

Quoted 26 lines · Peter Robinson
Quoted 7 lines · Simon Glass

Hi Tom,

[snip]

I'm very happy with your leadership. The project is extremely lucky to have you doing what you do and we all know it.

Quoted 9 lines

In my own way I will be able to contribute to the project more effectively than I have done for the last year or two. So let's focus on working together within the constraints that we each have. I'm pretty sure that in a year you will be happy with the result.

No, I have not been paid for U-Boot work for more than 10 years and I doubt that will change anytime soon. A little empathy on your part could go a long way.

Simon, I have never been paid by my employers to work on U-Boot or a lot of other open source projects I contribute to. I do it in my own time for my own enjoyment. There are many contributors to this project, some are paid to do it, some are volunteers, all people have the same standing as contributors, just like I don't care if someone likes to wear plain t-shirts or Hawaiian shirts they have the same standings.

Quoted 4 lines

The expectation that you get special treatment in this or any other community because of the reasons you contribute is not the way Open Source works, or in fact just about any community I am aware of. you are judged on your patches, your non code contributions and your behavior.

Thanks Peter.

Simon, this is why again, I am asking you in public to explain what exactly you hope to accomplish with your "sjg" branches and to either work with the community, including the feedback you disagree with and move away from touching those subsystems, or to just properly fork the project and go experiment on your own. You are and have long been a valued member of the community, but a community cannot hold when someone says they're going to ignore a number of other people.

Signature · 1 line
Tom
#12 lore raw

Re: [PATCH 1/3] efi: Correct logic for OF_EMBED and OF_SEPARATE co-existing

In reply to Tom Rini
Quoted 55 lines · Tom Rini
Quoted 12 lines · Simon Glass

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Simon Glass

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 1 line · Simon Glass

While we do plan to switch to OF_SEPARATE now it is supported,

it seems

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

worth at least showing how OF_EMBED could be used instead, just

for the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

record.

So make the Makefile rule conditional on OF_SEPARATE and adjust

fdtdec

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

to avoid a build error when OF_EMBED is used.

Finally. the dtb symbol has a double underscore, so update it to

avoid a

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

build warning.

With future patches, OF_EMBED will no-longer be used with the

EFI app,

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

so it is expected that it will eventually stop working.

Fixes 2e7bf25f6bf ("Support separate DTB files with the UEFI

app")

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines

---

 Makefile                       | 2 +-
 include/asm-generic/sections.h | 2 +-
 lib/fdtdec.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Applied to sjg/master, thanks!

Since you've picked up several series that no one was objecting to

and

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

providing reasonable feedback on and applied them to your own

tree, do

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

you plan to squash/rebase them and repost so they can be applied to master / next at some point?

The original EFI-app series actually had objections in toto. Did you not see the comments from Heinrich?

I assume you mean:

https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/#3419029

Quoted 24 lines
Quoted 3 lines
Quoted 1 line

which is a question.

Apart from the general tone, it was mostly the cover letter.

Which is

https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/#3418939
and an open question to explain the use case more.

Quoted 14 lines
Quoted 8 lines
Quoted 4 lines

I've offered to send pull requests every now and then, to keep things in sync, if that is your goal? But I don't believe I can do that for particular patches/series. It is going to be hard enough for me to just maintain my own tree, let along dealing with your/Linaro tree.

I find you calling the mainline project tree "your/Linaro tree" offensive. And I'm again asking you to explain in public what you are doing exactly.

I'm sorry you are offended. Please suggest a better name that I can use. Honestly, from my point of view, it feels like a Linaro-controlled tree. There's nothing particularly wrong with that, but I would like the freedom to continue to innovate U-Boot, without Linaro telling me what to do. Does that sound OK to you?

It's the mainline, there are numerous other vendors that are contributing, there's NXP, ST, TI, plus numerous other volunteer contributors such as myself. The fact that Linaro is contributing a lot at the moment is irrelevant. Contributors to projects wax and wane depending on their own requirements.

Quoted 9 lines

It's mainline. The tree at https://source.denx.de/u-boot/u-boot is the mainline tree for the Das U-Boot project, and I am the maintainer of that tree and the nominal head of the U-Boot project. If you want to ignore the feedback you have been given by other people to do whatever you like, please don't call it U-Boot. It is not "Linaro" disagreeing with your ideas, it's a number of people. It's most frequently myself (neither I nor my company get any money from Linaro, nor Arm Ltd), Heinrich (employed at Canonical, like you) or Ilias (yes, Linaro).

Simon, you are free to fork the project, it's one of the main glorious features of open source software! I was wondering what you were up to when you were replying with applied to messages for patches that were still under review.

What it does not give you the right to do is to use the infrastructure, such as this mailing list, patchwork, CI and what ever else, of the project you're forking. You don't see the many hardware vendors that have forks of the project, which they are well within their rights to do, using the project infrastructure for their forks.

There is nothing OK about what you are doing. The community has the right to know what you are doing purely because of the fact you are using the project's infrastructure. If you're going to fork it you have no requirements to notify if you go off and do it in your own area of the internet.

Peter

#13 lore raw

PATCH 2/3 efi: Support an embedded DTB for the 32-bit app

In reply to Simon Glass

While this is not likely to be used these days, it seems best to keep it in sync with the 64-bit app. Update the linker script to support a separate devicetree.

---

 arch/x86/lib/elf_ia32_efi.lds | 5 +++++
 1 file changed, 5 insertions(+)
arch/x86/lib/elf_ia32_efi.lds +5 -0
index 6d89c1fbd53..37a6c386b81 100644
@@ -87,5 +87,10 @@ SECTIONS
 		*(.eh_frame)
 		*(.note.GNU-stack)
 	}
+
+	.embedded_dtb : {
+		*(.embedded_dtb)
+	}
+
 	.comment 0 : { *(.comment) }
 }
Signature · 1 line
2.34.1
author Applied
#14 lore raw

Re: [PATCH 2/3] efi: Support an embedded DTB for the 32-bit app

While this is not likely to be used these days, it seems best to keep it in sync with the 64-bit app. Update the linker script to support a separate devicetree.

---

 arch/x86/lib/elf_ia32_efi.lds | 5 +++++
 1 file changed, 5 insertions(+)

Applied to sjg/master, thanks!

#15 lore raw

PATCH 3/3 efi: Switch over to OF_SEPARATE for the app

In reply to Simon Glass

Now that we can support a separate devicetree, enable this for the EFI-app builds.

Drop the Makefile-warning exception since we don't need it anymore.

---

 Makefile                        | 2 +-
 configs/efi-x86_app32_defconfig | 1 -
 configs/efi-x86_app64_defconfig | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)
Makefile +1 -1
index cbc0feff279..43966004d5f 100644
@@ -1145,7 +1145,7 @@ all: .binman_stamp
 ifeq ($(CONFIG_DEPRECATED),y)
 	$(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.")
 endif
-ifeq ($(CONFIG_OF_EMBED)$(CONFIG_EFI_APP),y)
+ifeq ($(CONFIG_OF_EMBED),y)
 	@echo >&2 "===================== WARNING ======================"
 	@echo >&2 "CONFIG_OF_EMBED is enabled. This option should only"
 	@echo >&2 "be used for debugging purposes. Please use"
configs/efi-x86_app32_defconfig +0 -1
index c730945f4f9..b20c85f1cff 100644
@@ -31,7 +31,6 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_MAC_PARTITION=y
 CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
-CONFIG_OF_EMBED=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
configs/efi-x86_app64_defconfig +0 -1
index 1831fb2d5a7..0988ad45205 100644
@@ -35,7 +35,6 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_MAC_PARTITION=y
 CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
-CONFIG_OF_EMBED=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
Signature · 1 line
2.34.1
author Applied
#16 lore raw

Re: [PATCH 3/3] efi: Switch over to OF_SEPARATE for the app

Now that we can support a separate devicetree, enable this for the EFI-app builds.

Drop the Makefile-warning exception since we don't need it anymore.

---

 Makefile                        | 2 +-
 configs/efi-x86_app32_defconfig | 1 -
 configs/efi-x86_app64_defconfig | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

Applied to sjg/master, thanks!