Skip to contentSkip to conversation

x86: quark: Fix build error for quark-based boards

PATCH New Bin Meng 2 participants 9 messages Dec 26, 2016 x86

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/3 x86: quark: Fix build error for quark-based boards

With the conversion to use binman to build x86 boards, Intel Galileo board does not build anymore due to missing ucode entry. In fact ucode is not needed for quark-based boards.

---

 arch/x86/dts/quark-u-boot.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 arch/x86/dts/quark-u-boot.dtsi
arch/x86/dts/quark-u-boot.dtsi new file +17 -0
new file mode 100644
index 0000000..04eb985
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2016, Bin Meng <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#include <u-boot.dtsi>
+
+#ifdef CONFIG_ROM_SIZE
+/ {
+	binman {
+		u-boot-with-ucode-ptr {
+			optional-ucode;
+		};
+	};
+};
+#endif
Signature · 1 line
2.9.2
author
#1 lore raw

PATCH 2/3 x86: Add file names from Kconfig in CMC/FSP/VGA nodes in u-boot.dtsi

Since we already have a bunch of Kconfig options for CMC/FSP/VGA file names, add these from Kconfig in the corresponding dts nodes.

---

 arch/x86/dts/u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/dts/u-boot.dtsi +3 -0
index 724913f..31f0b1a 100644
@@ -36,16 +36,19 @@
 #endif
 #ifdef CONFIG_HAVE_FSP
 		intel-fsp {
+			filename = CONFIG_FSP_FILE;
 			pos = <CONFIG_FSP_ADDR>;
 		};
 #endif
 #ifdef CONFIG_HAVE_CMC
 		intel-cmc {
+			filename = CONFIG_CMC_FILE;
 			pos = <CONFIG_CMC_ADDR>;
 		};
 #endif
 #ifdef CONFIG_HAVE_VGA_BIOS
 		intel-vga {
+			filename = CONFIG_VGA_BIOS_FILE;
 			pos = <CONFIG_VGA_BIOS_ADDR>;
 		};
 #endif
Signature · 1 line
2.9.2
#2 lore raw

PATCH 2/3 x86: Add file names from Kconfig in CMC/FSP/VGA nodes in u-boot.dtsi

Quoted 8 lines · Bin Meng

Since we already have a bunch of Kconfig options for CMC/FSP/VGA file names, add these from Kconfig in the corresponding dts nodes.

---

 arch/x86/dts/u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
author
#3 lore raw

PATCH 2/3 x86: Add file names from Kconfig in CMC/FSP/VGA nodes in u-boot.dtsi

Quoted 11 lines · Simon Glass
Quoted 8 lines · Bin Meng

Since we already have a bunch of Kconfig options for CMC/FSP/VGA file names, add these from Kconfig in the corresponding dts nodes.

---

 arch/x86/dts/u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)

applied to u-boot-x86, thanks!

author
#4 lore raw

PATCH 3/3 binman: Remove hard-coded file name for x86 CMC/FSP/VGA

In reply to Bin Meng

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

---

 tools/binman/etype/intel_cmc.py | 3 ---
 tools/binman/etype/intel_fsp.py | 3 ---
 tools/binman/etype/intel_vga.py | 3 ---
 3 files changed, 9 deletions(-)
tools/binman/etype/intel_cmc.py +0 -3
index 9bce8ae..30676c8 100644
@@ -12,6 +12,3 @@ from blob import Entry_blob
 class Entry_intel_cmc(Entry_blob):
     def __init__(self, image, etype, node):
         Entry_blob.__init__(self, image, etype, node)
-
-    def GetDefaultFilename(self):
-        return 'cmc.bin'
tools/binman/etype/intel_fsp.py +0 -3
index d75be5b..13c9f05 100644
@@ -12,6 +12,3 @@ from blob import Entry_blob
 class Entry_intel_fsp(Entry_blob):
     def __init__(self, image, etype, node):
         Entry_blob.__init__(self, image, etype, node)
-
-    def GetDefaultFilename(self):
-        return 'fsp.bin'
tools/binman/etype/intel_vga.py +0 -3
index d8f270b..6693607 100644
@@ -12,6 +12,3 @@ from blob import Entry_blob
 class Entry_intel_vga(Entry_blob):
     def __init__(self, image, etype, node):
         Entry_blob.__init__(self, image, etype, node)
-
-    def GetDefaultFilename(self):
-        return 'vga.bin'
Signature · 1 line
2.9.2
#5 lore raw

PATCH 3/3 binman: Remove hard-coded file name for x86 CMC/FSP/VGA

Quoted 10 lines · Bin Meng

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

---

 tools/binman/etype/intel_cmc.py | 3 ---
 tools/binman/etype/intel_fsp.py | 3 ---
 tools/binman/etype/intel_vga.py | 3 ---
 3 files changed, 9 deletions(-)
author
#6 lore raw

PATCH 3/3 binman: Remove hard-coded file name for x86 CMC/FSP/VGA

Quoted 7 lines · Simon Glass
Quoted 6 lines · Bin Meng

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

---

Quoted 6 lines
Quoted 4 lines
 tools/binman/etype/intel_cmc.py | 3 ---
 tools/binman/etype/intel_fsp.py | 3 ---
 tools/binman/etype/intel_vga.py | 3 ---
 3 files changed, 9 deletions(-)

applied to u-boot-x86, thanks!

#7 lore raw

PATCH 1/3 x86: quark: Fix build error for quark-based boards

In reply to Bin Meng
Quoted 10 lines · Bin Meng

With the conversion to use binman to build x86 boards, Intel Galileo board does not build anymore due to missing ucode entry. In fact ucode is not needed for quark-based boards.

---

 arch/x86/dts/quark-u-boot.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 arch/x86/dts/quark-u-boot.dtsi
author
#8 lore raw

PATCH 1/3 x86: quark: Fix build error for quark-based boards

Quoted 5 lines · Simon Glass
Quoted 4 lines · Bin Meng

With the conversion to use binman to build x86 boards, Intel Galileo board does not build anymore due to missing ucode entry. In fact ucode is not needed for quark-based boards.

Quoted 8 lines
Quoted 6 lines

---

 arch/x86/dts/quark-u-boot.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 arch/x86/dts/quark-u-boot.dtsi

applied to u-boot-x86, thanks!