All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames
@ 2017-03-30 10:58 Stefan Roese
  2017-03-30 10:58 ` [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi Stefan Roese
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Stefan Roese @ 2017-03-30 10:58 UTC (permalink / raw)
  To: u-boot

This introduces two Kconfig options to enable board specific filenames
for the Intel binary blobs to be used to generate the SPI flash image.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
---
 arch/x86/Kconfig | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index dfdd7564ea..6ce127a23c 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -316,6 +316,22 @@ config X86_RAMTEST
 	  to work correctly. It is not exhaustive but can save time by
 	  detecting obvious failures.
 
+config FLASH_DESCRIPTOR_FILE
+	string "Flash descriptor binary filename"
+	depends on HAVE_INTEL_ME
+	default "descriptor.bin"
+	help
+	  The filename of the file to use as flash descriptor in the
+	  board directory.
+
+config INTEL_ME_FILE
+	string "Intel Management Engine binary filename"
+	depends on HAVE_INTEL_ME
+	default "me.bin"
+	help
+	  The filename of the file to use as Intel Management Engine in the
+	  board directory.
+
 config HAVE_FSP
 	bool "Add an Firmware Support Package binary"
 	depends on !EFI
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi
  2017-03-30 10:58 [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Stefan Roese
@ 2017-03-30 10:58 ` Stefan Roese
  2017-03-31 15:45   ` Bin Meng
  2017-03-30 10:58 ` [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me Stefan Roese
  2017-03-31 15:45 ` [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Bin Meng
  2 siblings, 1 reply; 11+ messages in thread
From: Stefan Roese @ 2017-03-30 10:58 UTC (permalink / raw)
  To: u-boot

Since we now have the file names configurable via Kconfig for the flash
descriptor and intel-me files, add these from Kconfig in the corresponding
dts nodes.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
---
 arch/x86/dts/u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi
index 69c1c1d498..a4321d33de 100644
--- a/arch/x86/dts/u-boot.dtsi
+++ b/arch/x86/dts/u-boot.dtsi
@@ -17,8 +17,10 @@
 		size = <CONFIG_ROM_SIZE>;
 #ifdef CONFIG_HAVE_INTEL_ME
 		intel-descriptor {
+			filename = CONFIG_FLASH_DESCRIPTOR_FILE;
 		};
 		intel-me {
+			filename = CONFIG_INTEL_ME_FILE;
 		};
 #endif
 #ifdef CONFIG_SPL
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me
  2017-03-30 10:58 [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Stefan Roese
  2017-03-30 10:58 ` [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi Stefan Roese
@ 2017-03-30 10:58 ` Stefan Roese
  2017-03-31 15:45   ` Bin Meng
  2017-03-31 15:45 ` [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Bin Meng
  2 siblings, 1 reply; 11+ messages in thread
From: Stefan Roese @ 2017-03-30 10:58 UTC (permalink / raw)
  To: u-boot

Now that we have added file names from Kconfig in x86 u-boot.dtsi,
update binman to avoid using hard-coded names.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
---
 tools/binman/etype/intel_descriptor.py | 3 ---
 tools/binman/etype/intel_me.py         | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/tools/binman/etype/intel_descriptor.py b/tools/binman/etype/intel_descriptor.py
index 7f4ea0b21b..6435749e7c 100644
--- a/tools/binman/etype/intel_descriptor.py
+++ b/tools/binman/etype/intel_descriptor.py
@@ -37,9 +37,6 @@ class Entry_intel_descriptor(Entry_blob):
         Entry_blob.__init__(self, image, etype, node)
         self._regions = []
 
-    def GetDefaultFilename(self):
-        return 'descriptor.bin'
-
     def GetPositions(self):
         pos = self.data.find(FD_SIGNATURE)
         if pos == -1:
diff --git a/tools/binman/etype/intel_me.py b/tools/binman/etype/intel_me.py
index 45ab50c1ec..5e1c7993b7 100644
--- a/tools/binman/etype/intel_me.py
+++ b/tools/binman/etype/intel_me.py
@@ -12,6 +12,3 @@ from blob import Entry_blob
 class Entry_intel_me(Entry_blob):
     def __init__(self, image, etype, node):
         Entry_blob.__init__(self, image, etype, node)
-
-    def GetDefaultFilename(self):
-        return 'me.bin'
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames
  2017-03-30 10:58 [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Stefan Roese
  2017-03-30 10:58 ` [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi Stefan Roese
  2017-03-30 10:58 ` [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me Stefan Roese
@ 2017-03-31 15:45 ` Bin Meng
  2017-04-05  4:13   ` Bin Meng
  2 siblings, 1 reply; 11+ messages in thread
From: Bin Meng @ 2017-03-31 15:45 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
> This introduces two Kconfig options to enable board specific filenames
> for the Intel binary blobs to be used to generate the SPI flash image.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  arch/x86/Kconfig | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi
  2017-03-30 10:58 ` [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi Stefan Roese
@ 2017-03-31 15:45   ` Bin Meng
  2017-04-05  4:13     ` Bin Meng
  0 siblings, 1 reply; 11+ messages in thread
From: Bin Meng @ 2017-03-31 15:45 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
> Since we now have the file names configurable via Kconfig for the flash
> descriptor and intel-me files, add these from Kconfig in the corresponding
> dts nodes.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  arch/x86/dts/u-boot.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me
  2017-03-30 10:58 ` [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me Stefan Roese
@ 2017-03-31 15:45   ` Bin Meng
  2017-04-01  4:22     ` Simon Glass
  2017-04-05  4:14     ` Bin Meng
  0 siblings, 2 replies; 11+ messages in thread
From: Bin Meng @ 2017-03-31 15:45 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
> Now that we have added file names from Kconfig in x86 u-boot.dtsi,
> update binman to avoid using hard-coded names.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  tools/binman/etype/intel_descriptor.py | 3 ---
>  tools/binman/etype/intel_me.py         | 3 ---
>  2 files changed, 6 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me
  2017-03-31 15:45   ` Bin Meng
@ 2017-04-01  4:22     ` Simon Glass
  2017-04-05  4:14       ` Bin Meng
  2017-04-05  4:14     ` Bin Meng
  1 sibling, 1 reply; 11+ messages in thread
From: Simon Glass @ 2017-04-01  4:22 UTC (permalink / raw)
  To: u-boot

Hi,

On 31 March 2017 at 09:45, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
>> Now that we have added file names from Kconfig in x86 u-boot.dtsi,
>> update binman to avoid using hard-coded names.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> ---
>>  tools/binman/etype/intel_descriptor.py | 3 ---
>>  tools/binman/etype/intel_me.py         | 3 ---
>>  2 files changed, 6 deletions(-)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Please do check that the tests still work (binman -t).

Regards,
Simon

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames
  2017-03-31 15:45 ` [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Bin Meng
@ 2017-04-05  4:13   ` Bin Meng
  0 siblings, 0 replies; 11+ messages in thread
From: Bin Meng @ 2017-04-05  4:13 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 31, 2017 at 11:45 PM, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
>> This introduces two Kconfig options to enable board specific filenames
>> for the Intel binary blobs to be used to generate the SPI flash image.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/x86/Kconfig | 16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

applied to u-boot-x86, thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi
  2017-03-31 15:45   ` Bin Meng
@ 2017-04-05  4:13     ` Bin Meng
  0 siblings, 0 replies; 11+ messages in thread
From: Bin Meng @ 2017-04-05  4:13 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 31, 2017 at 11:45 PM, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
>> Since we now have the file names configurable via Kconfig for the flash
>> descriptor and intel-me files, add these from Kconfig in the corresponding
>> dts nodes.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/x86/dts/u-boot.dtsi | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

applied to u-boot-x86, thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me
  2017-03-31 15:45   ` Bin Meng
  2017-04-01  4:22     ` Simon Glass
@ 2017-04-05  4:14     ` Bin Meng
  1 sibling, 0 replies; 11+ messages in thread
From: Bin Meng @ 2017-04-05  4:14 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 31, 2017 at 11:45 PM, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
>> Now that we have added file names from Kconfig in x86 u-boot.dtsi,
>> update binman to avoid using hard-coded names.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> ---
>>  tools/binman/etype/intel_descriptor.py | 3 ---
>>  tools/binman/etype/intel_me.py         | 3 ---
>>  2 files changed, 6 deletions(-)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

applied to u-boot-x86, thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me
  2017-04-01  4:22     ` Simon Glass
@ 2017-04-05  4:14       ` Bin Meng
  0 siblings, 0 replies; 11+ messages in thread
From: Bin Meng @ 2017-04-05  4:14 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Sat, Apr 1, 2017 at 12:22 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi,
>
> On 31 March 2017 at 09:45, Bin Meng <bmeng.cn@gmail.com> wrote:
>> On Thu, Mar 30, 2017 at 6:58 PM, Stefan Roese <sr@denx.de> wrote:
>>> Now that we have added file names from Kconfig in x86 u-boot.dtsi,
>>> update binman to avoid using hard-coded names.
>>>
>>> Signed-off-by: Stefan Roese <sr@denx.de>
>>> Cc: Bin Meng <bmeng.cn@gmail.com>
>>> Cc: Simon Glass <sjg@chromium.org>
>>> ---
>>>  tools/binman/etype/intel_descriptor.py | 3 ---
>>>  tools/binman/etype/intel_me.py         | 3 ---
>>>  2 files changed, 6 deletions(-)
>>>
>>
>> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
>
> Please do check that the tests still work (binman -t).
>

Patch posted @ http://patchwork.ozlabs.org/patch/747091/

Regards,
Bin

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-05  4:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30 10:58 [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Stefan Roese
2017-03-30 10:58 ` [U-Boot] [PATCH 2/3] x86: Add file names from Kconfig in descriptor/intel-me nodes in u-boot.dtsi Stefan Roese
2017-03-31 15:45   ` Bin Meng
2017-04-05  4:13     ` Bin Meng
2017-03-30 10:58 ` [U-Boot] [PATCH 3/3] binman: Remove hard-coded file name for x86 flash-descriptor & intel-me Stefan Roese
2017-03-31 15:45   ` Bin Meng
2017-04-01  4:22     ` Simon Glass
2017-04-05  4:14       ` Bin Meng
2017-04-05  4:14     ` Bin Meng
2017-03-31 15:45 ` [U-Boot] [PATCH 1/3] x86: Kconfig: Add options to configure the descriptor.bin / me.bin filenames Bin Meng
2017-04-05  4:13   ` Bin Meng

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.