initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,742 @@
|
||||
From ee11fed43e2bd029f71af1e72ab9bb5652f5fc54 Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
Date: Wed, 29 Jul 2015 20:32:59 +0300
|
||||
Subject: [PATCH] Revert "arch: Make board selection choices optional"
|
||||
|
||||
This reverts commit a26cd04920dc069fd6e91abb785426cf6c29f45f.
|
||||
|
||||
Reverted commit caused an issue with "make oldconfig" - default prompt
|
||||
for target selection was set as No that lead to missing platform
|
||||
selection by automated scripts like that:
|
||||
------------------>8------------------
|
||||
"yes "" | make oldconfig" on defconfig
|
||||
------------------>8------------------
|
||||
|
||||
And that lead to build failure:
|
||||
------------------>8------------------
|
||||
$ make
|
||||
scripts/kconfig/conf --silentoldconfig Kconfig
|
||||
CHK include/config.h
|
||||
UPD include/config.h
|
||||
GEN include/autoconf.mk
|
||||
In file included from ./include/common.h:18:0:
|
||||
include/config.h:5:22: fatal error: configs/.h: No such file or directory
|
||||
#include <configs/.h>
|
||||
^
|
||||
compilation terminated.
|
||||
scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed
|
||||
make[1]: *** [include/autoconf.mk] Error 1
|
||||
------------------>8------------------
|
||||
|
||||
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
---
|
||||
arch/arc/Kconfig | 1 -
|
||||
arch/arm/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/exynos/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/mx5/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/mx6/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap3/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap4/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap5/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/rmobile/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/s5pc1xx/Kconfig | 1 -
|
||||
arch/arm/mach-at91/Kconfig | 1 -
|
||||
arch/arm/mach-bcm283x/Kconfig | 1 -
|
||||
arch/arm/mach-davinci/Kconfig | 1 -
|
||||
arch/arm/mach-integrator/Kconfig | 2 --
|
||||
arch/arm/mach-keystone/Kconfig | 1 -
|
||||
arch/arm/mach-kirkwood/Kconfig | 1 -
|
||||
arch/arm/mach-nomadik/Kconfig | 1 -
|
||||
arch/arm/mach-orion5x/Kconfig | 1 -
|
||||
arch/arm/mach-socfpga/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra114/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra124/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra20/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra30/Kconfig | 1 -
|
||||
arch/arm/mach-zynq/Kconfig | 1 -
|
||||
arch/avr32/Kconfig | 1 -
|
||||
arch/blackfin/Kconfig | 1 -
|
||||
arch/m68k/Kconfig | 1 -
|
||||
arch/microblaze/Kconfig | 1 -
|
||||
arch/mips/Kconfig | 1 -
|
||||
arch/nds32/Kconfig | 1 -
|
||||
arch/nios2/Kconfig | 1 -
|
||||
arch/openrisc/Kconfig | 1 -
|
||||
arch/powerpc/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc512x/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc5xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc5xxx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc8260/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc83xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc85xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc86xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc8xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/ppc4xx/Kconfig | 1 -
|
||||
arch/sh/Kconfig | 1 -
|
||||
arch/sparc/Kconfig | 1 -
|
||||
board/amcc/canyonlands/Kconfig | 1 -
|
||||
board/coreboot/Kconfig | 1 -
|
||||
board/dbau1x00/Kconfig | 1 -
|
||||
board/google/Kconfig | 1 -
|
||||
board/intel/Kconfig | 1 -
|
||||
board/micronas/vct/Kconfig | 1 -
|
||||
board/seco/Kconfig | 2 --
|
||||
board/sunxi/Kconfig | 1 -
|
||||
53 files changed, 55 deletions(-)
|
||||
|
||||
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
|
||||
index 925e312..640cda8 100644
|
||||
--- a/arch/arc/Kconfig
|
||||
+++ b/arch/arc/Kconfig
|
||||
@@ -129,7 +129,6 @@ config ARC_CACHE_LINE_SHIFT
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_TB100
|
||||
bool "Support tb100"
|
||||
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
||||
index 9908b43..8eeb46c 100644
|
||||
--- a/arch/arm/Kconfig
|
||||
+++ b/arch/arm/Kconfig
|
||||
@@ -64,7 +64,6 @@ config SEMIHOSTING
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config ARCH_AT91
|
||||
bool "Atmel AT91"
|
||||
diff --git a/arch/arm/cpu/armv7/exynos/Kconfig b/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
index 4a7d82f..f2fe748 100644
|
||||
--- a/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_EXYNOS
|
||||
|
||||
choice
|
||||
prompt "EXYNOS board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SMDKV310
|
||||
select SUPPORT_SPL
|
||||
diff --git a/arch/arm/cpu/armv7/mx5/Kconfig b/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
index 9f250c6..2d6c0ce 100644
|
||||
--- a/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
@@ -12,7 +12,6 @@ config MX53
|
||||
|
||||
choice
|
||||
prompt "MX5 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_USBARMORY
|
||||
bool "Support USB armory"
|
||||
diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
index 10908c4..662596f 100644
|
||||
--- a/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
@@ -27,7 +27,6 @@ config MX6SX
|
||||
|
||||
choice
|
||||
prompt "MX6 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SECOMX6
|
||||
bool "Support secomx6 boards"
|
||||
diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
index b32a6b0..cc82c50 100644
|
||||
--- a/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP34XX
|
||||
|
||||
choice
|
||||
prompt "OMAP3 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_AM3517_EVM
|
||||
bool "AM3517 EVM"
|
||||
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
index df27ea1..eccf897 100644
|
||||
--- a/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP44XX
|
||||
|
||||
choice
|
||||
prompt "OMAP4 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_DUOVERO
|
||||
bool "OMAP4430 Gumstix Duovero"
|
||||
diff --git a/arch/arm/cpu/armv7/omap5/Kconfig b/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
index 20c3bd9..aca862d 100644
|
||||
--- a/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP54XX
|
||||
|
||||
choice
|
||||
prompt "OMAP5 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_CM_T54
|
||||
bool "CompuLab CM-T54"
|
||||
diff --git a/arch/arm/cpu/armv7/rmobile/Kconfig b/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
index ef56286..638b63d 100644
|
||||
--- a/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
@@ -2,7 +2,6 @@ if RMOBILE
|
||||
|
||||
choice
|
||||
prompt "Renesus ARM SoCs board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ARMADILLO_800EVA
|
||||
bool "armadillo 800 eva board"
|
||||
diff --git a/arch/arm/cpu/armv7/s5pc1xx/Kconfig b/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
index 792ef59..65cc9eb 100644
|
||||
--- a/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_S5PC1XX
|
||||
|
||||
choice
|
||||
prompt "S5PC1XX board select"
|
||||
- optional
|
||||
|
||||
config TARGET_S5P_GONI
|
||||
bool "S5P Goni board"
|
||||
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
|
||||
index bbf4228..5dc2cb2 100644
|
||||
--- a/arch/arm/mach-at91/Kconfig
|
||||
+++ b/arch/arm/mach-at91/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_AT91
|
||||
|
||||
choice
|
||||
prompt "Atmel AT91 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_AT91RM9200EK
|
||||
bool "Atmel AT91RM9200 evaluation kit"
|
||||
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
|
||||
index 2315a13..d40f505 100644
|
||||
--- a/arch/arm/mach-bcm283x/Kconfig
|
||||
+++ b/arch/arm/mach-bcm283x/Kconfig
|
||||
@@ -3,7 +3,6 @@ menu "Broadcom BCM283X family"
|
||||
|
||||
choice
|
||||
prompt "Broadcom BCM283X board select"
|
||||
- optional
|
||||
|
||||
config TARGET_RPI
|
||||
bool "Raspberry Pi"
|
||||
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
|
||||
index e6cb390..3ef55d3 100644
|
||||
--- a/arch/arm/mach-davinci/Kconfig
|
||||
+++ b/arch/arm/mach-davinci/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_DAVINCI
|
||||
|
||||
choice
|
||||
prompt "DaVinci board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ENBW_CMC
|
||||
bool "EnBW CMC board"
|
||||
diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig
|
||||
index c54d69d..8ffc544 100644
|
||||
--- a/arch/arm/mach-integrator/Kconfig
|
||||
+++ b/arch/arm/mach-integrator/Kconfig
|
||||
@@ -3,7 +3,6 @@ menu "Integrator Options"
|
||||
|
||||
choice
|
||||
prompt "Integrator platform select"
|
||||
- optional
|
||||
|
||||
config ARCH_INTEGRATOR_AP
|
||||
bool "Support Integrator/AP platform"
|
||||
@@ -19,7 +18,6 @@ config ARCH_CINTEGRATOR
|
||||
|
||||
choice
|
||||
prompt "Integrator core module select"
|
||||
- optional
|
||||
|
||||
config CM720T
|
||||
bool "Core Module for ARM720T"
|
||||
diff --git a/arch/arm/mach-keystone/Kconfig b/arch/arm/mach-keystone/Kconfig
|
||||
index 67f1a33..134ae87 100644
|
||||
--- a/arch/arm/mach-keystone/Kconfig
|
||||
+++ b/arch/arm/mach-keystone/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_KEYSTONE
|
||||
|
||||
choice
|
||||
prompt "TI Keystone board select"
|
||||
- optional
|
||||
|
||||
config TARGET_K2HK_EVM
|
||||
bool "TI Keystone 2 Kepler/Hawking EVM"
|
||||
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
|
||||
index 1261885..45c6687 100644
|
||||
--- a/arch/arm/mach-kirkwood/Kconfig
|
||||
+++ b/arch/arm/mach-kirkwood/Kconfig
|
||||
@@ -2,7 +2,6 @@ if KIRKWOOD
|
||||
|
||||
choice
|
||||
prompt "Marvell Kirkwood board select"
|
||||
- optional
|
||||
|
||||
config TARGET_OPENRD
|
||||
bool "Marvell OpenRD Board"
|
||||
diff --git a/arch/arm/mach-nomadik/Kconfig b/arch/arm/mach-nomadik/Kconfig
|
||||
index ba72a41..265f336 100644
|
||||
--- a/arch/arm/mach-nomadik/Kconfig
|
||||
+++ b/arch/arm/mach-nomadik/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_NOMADIK
|
||||
|
||||
choice
|
||||
prompt "Nomadik board select"
|
||||
- optional
|
||||
|
||||
config NOMADIK_NHK8815
|
||||
bool "ST 8815 Nomadik Hardware Kit"
|
||||
diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig
|
||||
index 7644b8d..291c511 100644
|
||||
--- a/arch/arm/mach-orion5x/Kconfig
|
||||
+++ b/arch/arm/mach-orion5x/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ORION5X
|
||||
|
||||
choice
|
||||
prompt "Marvell Orion board select"
|
||||
- optional
|
||||
|
||||
config TARGET_EDMINIV2
|
||||
bool "LaCie Ethernet Disk mini V2"
|
||||
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
|
||||
index e46c348..204efca 100644
|
||||
--- a/arch/arm/mach-socfpga/Kconfig
|
||||
+++ b/arch/arm/mach-socfpga/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_SOCFPGA
|
||||
|
||||
choice
|
||||
prompt "Altera SOCFPGA board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SOCFPGA_ARRIA5
|
||||
bool "Altera SOCFPGA Arria V"
|
||||
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
|
||||
index 54bd648..ef77c84 100644
|
||||
--- a/arch/arm/mach-tegra/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA
|
||||
|
||||
choice
|
||||
prompt "Tegra SoC select"
|
||||
- optional
|
||||
|
||||
config TEGRA20
|
||||
bool "Tegra20 family"
|
||||
diff --git a/arch/arm/mach-tegra/tegra114/Kconfig b/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
index 1047b92..31012bc 100644
|
||||
--- a/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA114
|
||||
|
||||
choice
|
||||
prompt "Tegra114 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_DALMORE
|
||||
bool "NVIDIA Tegra114 Dalmore evaluation board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra124/Kconfig b/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
index f3324ff..86c1301 100644
|
||||
--- a/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA124
|
||||
|
||||
choice
|
||||
prompt "Tegra124 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_JETSON_TK1
|
||||
bool "NVIDIA Tegra124 Jetson TK1 board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra20/Kconfig b/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
index 1bb8dff..7f09f81 100644
|
||||
--- a/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA20
|
||||
|
||||
choice
|
||||
prompt "Tegra20 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_HARMONY
|
||||
bool "NVIDIA Tegra20 Harmony evaluation board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra30/Kconfig b/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
index e78331e..3abdc7b 100644
|
||||
--- a/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA30
|
||||
|
||||
choice
|
||||
prompt "Tegra30 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_APALIS_T30
|
||||
bool "Toradex Apalis T30 board"
|
||||
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
|
||||
index 1de5b07..6b0e295 100644
|
||||
--- a/arch/arm/mach-zynq/Kconfig
|
||||
+++ b/arch/arm/mach-zynq/Kconfig
|
||||
@@ -10,7 +10,6 @@ config ZYNQ_CUSTOM_INIT
|
||||
|
||||
choice
|
||||
prompt "Xilinx Zynq board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ZYNQ_ZED
|
||||
bool "Zynq ZedBoard"
|
||||
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig
|
||||
index eb33774..801b9cc 100644
|
||||
--- a/arch/avr32/Kconfig
|
||||
+++ b/arch/avr32/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_ATNGW100
|
||||
bool "Support atngw100"
|
||||
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
|
||||
index 0a2fb4d..31913fe 100644
|
||||
--- a/arch/blackfin/Kconfig
|
||||
+++ b/arch/blackfin/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_BCT_BRETTL2
|
||||
bool "Support bct-brettl2"
|
||||
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
|
||||
index 26509b7..69cb0f7 100644
|
||||
--- a/arch/m68k/Kconfig
|
||||
+++ b/arch/m68k/Kconfig
|
||||
@@ -114,7 +114,6 @@ config M548x
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_M52277EVB
|
||||
bool "Support M52277EVB"
|
||||
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
|
||||
index 077b2a7..6f419f0 100644
|
||||
--- a/arch/microblaze/Kconfig
|
||||
+++ b/arch/microblaze/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_MICROBLAZE_GENERIC
|
||||
bool "Support microblaze-generic"
|
||||
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
|
||||
index 7f7e258..87b94ac 100644
|
||||
--- a/arch/mips/Kconfig
|
||||
+++ b/arch/mips/Kconfig
|
||||
@@ -10,7 +10,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_QEMU_MIPS
|
||||
bool "Support qemu-mips"
|
||||
diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig
|
||||
index 98b0282..81b0a01 100644
|
||||
--- a/arch/nds32/Kconfig
|
||||
+++ b/arch/nds32/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_ADP_AG101
|
||||
bool "Support adp-ag101"
|
||||
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
|
||||
index 8ae7f6e..b3be7b5 100644
|
||||
--- a/arch/nios2/Kconfig
|
||||
+++ b/arch/nios2/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_NIOS2_GENERIC
|
||||
bool "Support nios2-generic"
|
||||
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
|
||||
index 11014d1..4d62b4c 100644
|
||||
--- a/arch/openrisc/Kconfig
|
||||
+++ b/arch/openrisc/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_OPENRISC_GENERIC
|
||||
bool "Support openrisc-generic"
|
||||
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
|
||||
index 3b3f446..8e5a3e2 100644
|
||||
--- a/arch/powerpc/Kconfig
|
||||
+++ b/arch/powerpc/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "CPU select"
|
||||
- optional
|
||||
|
||||
config MPC512X
|
||||
bool "MPC512X"
|
||||
diff --git a/arch/powerpc/cpu/mpc512x/Kconfig b/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
index 53450ae..a0f0ede 100644
|
||||
--- a/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_PDM360NG
|
||||
bool "Support pdm360ng"
|
||||
diff --git a/arch/powerpc/cpu/mpc5xx/Kconfig b/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
index 5275447..aad4a7c 100644
|
||||
--- a/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_CMI_MPC5XX
|
||||
bool "Support cmi_mpc5xx"
|
||||
diff --git a/arch/powerpc/cpu/mpc5xxx/Kconfig b/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
index 5d49228..eec9d7d 100644
|
||||
--- a/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_A3M071
|
||||
bool "Support a3m071"
|
||||
diff --git a/arch/powerpc/cpu/mpc8260/Kconfig b/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
index e93732d..55941c8 100644
|
||||
--- a/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_KM82XX
|
||||
bool "Support km82xx"
|
||||
diff --git a/arch/powerpc/cpu/mpc83xx/Kconfig b/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
index 3fb901f..88a3bd6 100644
|
||||
--- a/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_MPC8308_P1M
|
||||
bool "Support mpc8308_p1m"
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
index 3e8d0b1..aff5fdb 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_SBC8548
|
||||
bool "Support sbc8548"
|
||||
diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
index fe1859d..14e8b1a 100644
|
||||
--- a/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_SBC8641D
|
||||
bool "Support sbc8641d"
|
||||
diff --git a/arch/powerpc/cpu/mpc8xx/Kconfig b/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
index 79cee35..e8bcbe9 100644
|
||||
--- a/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_TQM823L
|
||||
bool "Support TQM823L"
|
||||
diff --git a/arch/powerpc/cpu/ppc4xx/Kconfig b/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
index 10b86e0..4d5954a 100644
|
||||
--- a/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_CSB272
|
||||
bool "Support csb272"
|
||||
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
|
||||
index 6ac22af..ff8f5b5 100644
|
||||
--- a/arch/sh/Kconfig
|
||||
+++ b/arch/sh/Kconfig
|
||||
@@ -29,7 +29,6 @@ config SH_32BIT
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_RSK7203
|
||||
bool "RSK+ 7203"
|
||||
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
|
||||
index 04dc08f..2df09b2 100644
|
||||
--- a/arch/sparc/Kconfig
|
||||
+++ b/arch/sparc/Kconfig
|
||||
@@ -14,7 +14,6 @@ config LEON3
|
||||
|
||||
choice
|
||||
prompt "Board select"
|
||||
- optional
|
||||
|
||||
config TARGET_GRSIM_LEON2
|
||||
bool "GRSIM simulating a LEON2 board"
|
||||
diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig
|
||||
index a655dbc..ef66ad4 100644
|
||||
--- a/board/amcc/canyonlands/Kconfig
|
||||
+++ b/board/amcc/canyonlands/Kconfig
|
||||
@@ -11,7 +11,6 @@ config SYS_CONFIG_NAME
|
||||
|
||||
choice BOARD_TYPE
|
||||
prompt "Select which board to build for"
|
||||
- optional
|
||||
|
||||
config CANYONLANDS
|
||||
bool "Glacier"
|
||||
diff --git a/board/coreboot/Kconfig b/board/coreboot/Kconfig
|
||||
index ede6065..dc9b70f 100644
|
||||
--- a/board/coreboot/Kconfig
|
||||
+++ b/board/coreboot/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_COREBOOT
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_COREBOOT
|
||||
bool "coreboot"
|
||||
diff --git a/board/dbau1x00/Kconfig b/board/dbau1x00/Kconfig
|
||||
index b813adb..1286e45 100644
|
||||
--- a/board/dbau1x00/Kconfig
|
||||
+++ b/board/dbau1x00/Kconfig
|
||||
@@ -13,7 +13,6 @@ menu "dbau1x00 board options"
|
||||
|
||||
choice
|
||||
prompt "Select au1x00 SoC type"
|
||||
- optional
|
||||
|
||||
config DBAU1100
|
||||
bool "Select AU1100"
|
||||
diff --git a/board/google/Kconfig b/board/google/Kconfig
|
||||
index e9559c9..302f68e 100644
|
||||
--- a/board/google/Kconfig
|
||||
+++ b/board/google/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_GOOGLE
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_CHROMEBOOK_LINK
|
||||
bool "Chromebook link"
|
||||
diff --git a/board/intel/Kconfig b/board/intel/Kconfig
|
||||
index 3d9ecf0..7fe21b9 100644
|
||||
--- a/board/intel/Kconfig
|
||||
+++ b/board/intel/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_INTEL
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_CROWNBAY
|
||||
bool "Crown Bay"
|
||||
diff --git a/board/micronas/vct/Kconfig b/board/micronas/vct/Kconfig
|
||||
index c518079..288a1ae 100644
|
||||
--- a/board/micronas/vct/Kconfig
|
||||
+++ b/board/micronas/vct/Kconfig
|
||||
@@ -13,7 +13,6 @@ menu "vct board options"
|
||||
|
||||
choice
|
||||
prompt "Board variant"
|
||||
- optional
|
||||
|
||||
config VCT_PLATINUM
|
||||
bool "Enable VCT_PLATINUM"
|
||||
diff --git a/board/seco/Kconfig b/board/seco/Kconfig
|
||||
index af16697..dcb1ac8 100644
|
||||
--- a/board/seco/Kconfig
|
||||
+++ b/board/seco/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TARGET_SECOMX6
|
||||
|
||||
choice
|
||||
prompt "SECO i.MX6 Board variant"
|
||||
- optional
|
||||
|
||||
config SECOMX6_Q7
|
||||
bool "Q7"
|
||||
@@ -17,7 +16,6 @@ endchoice
|
||||
|
||||
choice
|
||||
prompt "SECO i.MX6 SoC variant"
|
||||
- optional
|
||||
|
||||
config SECOMX6Q
|
||||
bool "i.MX6Q"
|
||||
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
|
||||
index 2a1cd3c..808de26 100644
|
||||
--- a/board/sunxi/Kconfig
|
||||
+++ b/board/sunxi/Kconfig
|
||||
@@ -18,7 +18,6 @@ config SUNXI_GEN_SUN6I
|
||||
|
||||
choice
|
||||
prompt "Sunxi SoC Variant"
|
||||
- optional
|
||||
|
||||
config MACH_SUN4I
|
||||
bool "sun4i (Allwinner A10)"
|
||||
--
|
||||
2.4.3
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 7c8d81605302e7d7fdd3e7d8eb69302bddc64a2c Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
Date: Fri, 16 Sep 2016 12:12:26 +0300
|
||||
Subject: [PATCH] arc: Use -mcpu=XXX instead of obsolete -marcXXX
|
||||
|
||||
With newer ARC tools old way of CPU specification gets obsolete,
|
||||
so we're switching to newer and more common way of setting "-mcpu".
|
||||
|
||||
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
---
|
||||
arch/arc/config.mk | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/arch/arc/config.mk b/arch/arc/config.mk
|
||||
index 7c974f0..13676bd 100644
|
||||
--- a/arch/arc/config.mk
|
||||
+++ b/arch/arc/config.mk
|
||||
@@ -31,15 +31,15 @@ CONFIG_MMU = 1
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARC750D
|
||||
-PLATFORM_CPPFLAGS += -marc700
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arc700
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARC770D
|
||||
-PLATFORM_CPPFLAGS += -marc700 -mlock -mswape
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARCEM6
|
||||
-PLATFORM_CPPFLAGS += -marcem
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arcem
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARCHS34
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 7c8d81605302e7d7fdd3e7d8eb69302bddc64a2c Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
Date: Fri, 16 Sep 2016 12:12:26 +0300
|
||||
Subject: [PATCH] arc: Use -mcpu=XXX instead of obsolete -marcXXX
|
||||
|
||||
With newer ARC tools old way of CPU specification gets obsolete,
|
||||
so we're switching to newer and more common way of setting "-mcpu".
|
||||
|
||||
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
---
|
||||
arch/arc/config.mk | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/arch/arc/config.mk b/arch/arc/config.mk
|
||||
index 7c974f0..13676bd 100644
|
||||
--- a/arch/arc/config.mk
|
||||
+++ b/arch/arc/config.mk
|
||||
@@ -31,15 +31,15 @@ CONFIG_MMU = 1
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARC750D
|
||||
-PLATFORM_CPPFLAGS += -marc700
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arc700
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARC770D
|
||||
-PLATFORM_CPPFLAGS += -marc700 -mlock -mswape
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARCEM6
|
||||
-PLATFORM_CPPFLAGS += -marcem
|
||||
+PLATFORM_CPPFLAGS += -mcpu=arcem
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CPU_ARCHS34
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,585 @@
|
||||
config BR2_TARGET_UBOOT
|
||||
bool "U-Boot"
|
||||
help
|
||||
Build "Das U-Boot" Boot Monitor
|
||||
|
||||
https://www.denx.de/wiki/U-Boot
|
||||
|
||||
if BR2_TARGET_UBOOT
|
||||
choice
|
||||
prompt "Build system"
|
||||
default BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG if BR2_TARGET_UBOOT_LATEST_VERSION
|
||||
default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
bool "Kconfig"
|
||||
help
|
||||
Select this option if you use a recent U-Boot version (2015.04
|
||||
or newer), so that we use the Kconfig build system.
|
||||
|
||||
config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
bool "Legacy"
|
||||
help
|
||||
Select this option if you use an old U-Boot (older than
|
||||
2015.04), so that we use the old build system.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
config BR2_TARGET_UBOOT_BOARDNAME
|
||||
string "U-Boot board name"
|
||||
help
|
||||
One of U-Boot supported boards to be built.
|
||||
This will be suffixed with _config to meet U-Boot standard
|
||||
naming. See boards.cfg in U-Boot source code for the list of
|
||||
available configurations.
|
||||
endif
|
||||
|
||||
choice
|
||||
prompt "U-Boot Version"
|
||||
help
|
||||
Select the specific U-Boot version you want to use
|
||||
|
||||
config BR2_TARGET_UBOOT_LATEST_VERSION
|
||||
bool "2021.10"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
bool "Custom version"
|
||||
help
|
||||
This option allows to use a specific official versions
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
bool "Custom Mercurial repository"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_SVN
|
||||
bool "Custom Subversion repository"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
|
||||
string "U-Boot version"
|
||||
depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
|
||||
string "URL of custom U-Boot tarball"
|
||||
depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
|
||||
string "URL of custom repository"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
|
||||
string "Custom repository version"
|
||||
help
|
||||
Revision to use in the typical format used by
|
||||
Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_VERSION
|
||||
string
|
||||
default "2021.10" if BR2_TARGET_UBOOT_LATEST_VERSION
|
||||
default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
|
||||
|
||||
config BR2_TARGET_UBOOT_PATCH
|
||||
string "Custom U-Boot patches"
|
||||
default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != "" # legacy
|
||||
help
|
||||
A space-separated list of patches to apply to U-Boot.
|
||||
Each patch can be described as an URL, a local file path,
|
||||
or a directory. In the case of a directory, all files
|
||||
matching *.patch in the directory will be applied.
|
||||
|
||||
Most users may leave this empty
|
||||
|
||||
if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
choice
|
||||
prompt "U-Boot configuration"
|
||||
default BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
|
||||
config BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
bool "Using an in-tree board defconfig file"
|
||||
|
||||
config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
bool "Using a custom board (def)config file"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
|
||||
string "Board defconfig"
|
||||
depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
help
|
||||
Name of the board for which U-Boot should be built, without
|
||||
the _defconfig suffix.
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
|
||||
string "Configuration file path"
|
||||
depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
help
|
||||
Path to the U-Boot configuration file.
|
||||
|
||||
config BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES
|
||||
string "Additional configuration fragment files"
|
||||
help
|
||||
A space-separated list of configuration fragment files,
|
||||
that will be merged to the main U-Boot configuration file.
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_DTC
|
||||
bool "U-Boot needs dtc"
|
||||
select BR2_PACKAGE_HOST_DTC
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires the Device Tree compiler to be available.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYTHON
|
||||
bool
|
||||
|
||||
choice
|
||||
bool "U-Boot needs host Python"
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYTHON_NONE
|
||||
bool "no"
|
||||
depends on !BR2_TARGET_UBOOT_NEEDS_PYTHON
|
||||
help
|
||||
Select this option if U-Boot does not need any
|
||||
host python to build.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYTHON2
|
||||
bool "python 2.x"
|
||||
help
|
||||
Select this option if U-Boot needs a host Python 2.x
|
||||
interpreter. This is the case for some U-Boot
|
||||
configurations, prior to U-Boot 2020.01.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYTHON3
|
||||
bool "python 3.x"
|
||||
help
|
||||
Select this option if U-Boot needs a host Python 3.x
|
||||
interpreter. This is the case for some U-Boot
|
||||
configurations, after U-Boot 2020.01.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
|
||||
bool "U-Boot needs pylibfdt"
|
||||
select BR2_TARGET_UBOOT_NEEDS_PYTHON
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires the Python libfdt library to be available.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS
|
||||
bool "U-Boot needs pyelftools"
|
||||
select BR2_TARGET_UBOOT_NEEDS_PYTHON
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires the Python pyelftools library to be available.
|
||||
This is used by some rockchip SOCs for elf parsing.
|
||||
For example: rk3399 soc boards.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_OPENSSL
|
||||
bool "U-Boot needs OpenSSL"
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires OpenSSL to be available on the host. This is
|
||||
typically the case when the board configuration has
|
||||
CONFIG_FIT_SIGNATURE enabled.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_LZOP
|
||||
bool "U-Boot needs lzop"
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires lzop to be available on the host. This is typically
|
||||
the case when the board configuration has CONFIG_SPL_LZO
|
||||
enabled.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_ATF_BL31
|
||||
bool "U-Boot needs ATF BL31"
|
||||
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
|
||||
depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
|
||||
select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
|
||||
help
|
||||
Some specific platforms (such as Allwinner A64/H5)
|
||||
encapsulate the BL31 part of ATF inside U-Boot. This option
|
||||
makes sure ATF gets built prior to U-Boot, and that the BL31
|
||||
variable pointing to ATF's BL31 binary, is passed during the
|
||||
Buildroot build.
|
||||
|
||||
choice
|
||||
prompt "U-Boot ATF BL31 format"
|
||||
default BR2_TARGET_UBOOT_NEEDS_ATF_BL31_BIN
|
||||
depends on BR2_TARGET_UBOOT_NEEDS_ATF_BL31
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_ATF_BL31_BIN
|
||||
bool "bl31.bin"
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF
|
||||
bool "bl31.elf"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_OPENSBI
|
||||
bool "U-Boot needs OpenSBI"
|
||||
depends on BR2_TARGET_OPENSBI
|
||||
help
|
||||
Some RISC-V platforms (such as SiFive HiFive Unleashed)
|
||||
encapsulate the OpenSBI firmware image inside U-Boot.
|
||||
This option makes sure OpenSBI gets built prior to U-Boot,
|
||||
and that the OpenSBI variable pointing to OpenSBI binary,
|
||||
is passed during the Buildroot build.
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE
|
||||
bool "U-Boot needs firmware-imx"
|
||||
depends on BR2_PACKAGE_FIRMWARE_IMX
|
||||
depends on BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW || \
|
||||
BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW
|
||||
help
|
||||
Some i.MX8 platforms (such as i.MX8 M, i.MX 8M Mini, i.MX 8M
|
||||
Nano) encapsulate NXP specific firmware (DDR, HDMI) inside
|
||||
U-Boot.
|
||||
This option makes sure that the i.MX firmwares are copied into
|
||||
the U-Boot source directory.
|
||||
|
||||
menu "U-Boot binary format"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_AIS
|
||||
bool "u-boot.ais"
|
||||
help
|
||||
AIS (Application Image Script) is a format defined by TI.
|
||||
It is required to load code/data on OMAP-L1 processors.
|
||||
u-boot.ais contains U-Boot with the SPL support.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_BIN
|
||||
bool "u-boot.bin"
|
||||
default y
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_DTB
|
||||
bool "u-boot.dtb"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_DTB_BIN
|
||||
bool "u-boot-dtb.bin"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
|
||||
bool "u-boot-nand.bin"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_ELF
|
||||
bool "u-boot.elf"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_IMG
|
||||
bool "u-boot.img"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
||||
bool "u-boot-dtb.img"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_IMX
|
||||
bool "u-boot.imx"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_DTB_IMX
|
||||
bool "u-boot-dtb.imx"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_ITB
|
||||
bool "u-boot.itb"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_KWB
|
||||
bool "u-boot.kwb (Marvell)"
|
||||
depends on BR2_arm
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND
|
||||
bool "u-boot.nand (Freescale i.MX28)"
|
||||
depends on BR2_arm
|
||||
help
|
||||
This is Freescale i.MX28 BootStream format (.sb), with a
|
||||
header for booting from a NAND flash.
|
||||
|
||||
U-Boot includes an mxsboot tool to generate this format,
|
||||
starting from 2011.12.
|
||||
|
||||
There are two possibilities when preparing an image writable
|
||||
to NAND flash:
|
||||
1) The NAND was not written at all yet or the BCB (Boot
|
||||
Control Blocks) is broken. In this case, the NAND image
|
||||
'u-boot.nand' needs to written.
|
||||
2) The NAND flash was already written with a good BCB. This
|
||||
applies after 'u-boot.nand' was correctly written. There is no
|
||||
need to write the BCB again. In this case, the bootloader can
|
||||
be upgraded by writing 'u-boot.sb'.
|
||||
|
||||
To satisfy both cases, the 'u-boot.nand' image obtained from
|
||||
mxsboot as well as the U-Boot make target 'u-boot.sb' are
|
||||
copied to the binaries directory.
|
||||
|
||||
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
||||
|
||||
if BR2_TARGET_UBOOT_FORMAT_NAND
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
|
||||
int "NAND page size"
|
||||
default 2048
|
||||
help
|
||||
The NAND page size of the targets NAND flash in bytes as a
|
||||
decimal integer value.
|
||||
|
||||
The value provided here is passed to the -w option of mxsboot.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
|
||||
int "NAND OOB size"
|
||||
default 64
|
||||
help
|
||||
The NAND OOB size of the targets NAND flash in bytes as a
|
||||
decimal integer value.
|
||||
|
||||
The value provided here is passed to the -o option of mxsboot.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
|
||||
int "NAND erase size"
|
||||
default 131072
|
||||
help
|
||||
The NAND eraseblock size of the targets NAND flash in bytes as
|
||||
a decimal integer value.
|
||||
|
||||
The value provided here is passed to the -e option of mxsboot.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_SB
|
||||
bool "u-boot.sb (Freescale i.MX28)"
|
||||
depends on BR2_arm
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_SD
|
||||
bool "u-boot.sd (Freescale i.MX28)"
|
||||
depends on BR2_arm
|
||||
help
|
||||
This is Freescale i.MX28 SB format, with a header for booting
|
||||
from an SD card.
|
||||
|
||||
U-Boot includes an mxsboot tool to generate this format,
|
||||
starting from 2011.12.
|
||||
|
||||
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_STM32
|
||||
bool "u-boot.stm32"
|
||||
depends on BR2_arm
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
||||
bool "Custom (specify below)"
|
||||
help
|
||||
On some platforms, the standard U-Boot binary is not called
|
||||
u-boot.bin, but u-boot<something>.bin. If this is your case,
|
||||
you should select this option and specify the correct name(s)
|
||||
in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
|
||||
string "U-Boot binary format: custom names"
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
||||
help
|
||||
In case the U-Boot binary for the target platform is not among
|
||||
the default names, one or more custom names can be listed
|
||||
here.
|
||||
Use space to separate multiple names.
|
||||
Example:
|
||||
u-boot_magic.bin
|
||||
|
||||
endmenu
|
||||
|
||||
config BR2_TARGET_UBOOT_OMAP_IFT
|
||||
bool "produce a .ift signed image (OMAP)"
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_BIN
|
||||
depends on BR2_arm || BR2_armeb
|
||||
select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
|
||||
help
|
||||
Use gpsign to produce an image of u-boot.bin signed with
|
||||
a Configuration Header for booting on OMAP processors.
|
||||
This allows U-Boot to boot without the need for an
|
||||
intermediate bootloader (e.g. x-loader) if it is written
|
||||
on the first sector of the boot medium.
|
||||
This only works for some media, such as NAND. Check your
|
||||
chip documentation for details. You might also want to
|
||||
read the documentation of gpsign, the tool that generates
|
||||
the .ift image, at:
|
||||
https://github.com/nmenon/omap-u-boot-utils/blob/master/README
|
||||
|
||||
if BR2_TARGET_UBOOT_OMAP_IFT
|
||||
|
||||
config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
|
||||
string "gpsign Configuration Header config file"
|
||||
help
|
||||
The Configuration Header (CH) config file defines the
|
||||
desired content of the CH for the signed image.
|
||||
It usually contains external RAM settings and
|
||||
possibly other external devices initialization.
|
||||
The omap-u-boot-utils software contains example
|
||||
configuration files for some boards:
|
||||
https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_SPL
|
||||
bool "Install U-Boot SPL binary image"
|
||||
depends on !BR2_TARGET_XLOADER
|
||||
help
|
||||
Install the U-Boot SPL binary image to the images
|
||||
directory.
|
||||
SPL is a first stage bootloader loaded into internal
|
||||
memory in charge of enabling and configuring the
|
||||
external memory (DDR), and load the u-boot program
|
||||
into DDR.
|
||||
|
||||
config BR2_TARGET_UBOOT_SPL_NAME
|
||||
string "U-Boot SPL/TPL binary image name(s)"
|
||||
default "spl/u-boot-spl.bin"
|
||||
depends on BR2_TARGET_UBOOT_SPL
|
||||
help
|
||||
A space-separated list of SPL/TPL binaries, generated during
|
||||
u-boot build. For most platform SPL name is spl/u-boot-spl.bin
|
||||
and TPL name is tpl/u-boot-tpl.bin but not always. SPL name is
|
||||
MLO on OMAP and SPL on i.MX6 for example.
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQ_IMAGE
|
||||
bool "Generate image for Xilinx Zynq"
|
||||
depends on BR2_arm
|
||||
depends on BR2_TARGET_UBOOT_SPL
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
||||
help
|
||||
Generate the BOOT.BIN file from U-Boot's SPL. The image
|
||||
boots the Xilinx Zynq chip without any FPGA bitstream.
|
||||
A bitstream can be loaded by the U-Boot. The SPL searchs
|
||||
for u-boot-dtb.img file so this U-Boot format is required
|
||||
to be set.
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQMP
|
||||
bool "Boot on the Xilinx ZynqMP SoCs"
|
||||
depends on BR2_aarch64
|
||||
help
|
||||
Enable options specific to the Xilinx ZynqMP family of SoCs.
|
||||
|
||||
if BR2_TARGET_UBOOT_ZYNQMP
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQMP_PMUFW
|
||||
string "PMU firmware location"
|
||||
depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
help
|
||||
Location of a PMU firmware binary.
|
||||
|
||||
If not empty, instructs the U-Boot build process to generate
|
||||
a boot.bin (to be loaded by the ZynqMP boot ROM) containing
|
||||
both the U-Boot SPL and the PMU firmware in the
|
||||
Xilinx-specific boot format.
|
||||
|
||||
The value can be an absolute or relative path, and will be
|
||||
used directly from where it is located, or an URI
|
||||
(e.g. http://...), and it will be downloaded and used from
|
||||
the download directory.
|
||||
|
||||
If empty, the generated boot.bin will not contain a PMU
|
||||
firmware.
|
||||
|
||||
This feature requires U-Boot >= 2018.07.
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQMP_PM_CFG
|
||||
string "PMU configuration location"
|
||||
depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
help
|
||||
Location of a PMU configuration file.
|
||||
|
||||
If not empty, Buildroot will convert the PMU configuration
|
||||
file into a loadable blob and pass it to U-Boot. The blob gets
|
||||
embedded into the U-Boot SPL and is used to configure the PMU
|
||||
during board initialization.
|
||||
|
||||
Unlike the PMU firmware, the PMU configuration file is unique
|
||||
to each board configuration. A PMU configuration file can be
|
||||
generated by building your Xilinx SDK BSP. It can be found in
|
||||
the BSP source, for example at
|
||||
./psu_cortexa53_0/libsrc/xilpm_v2_4/src/pm_cfg_obj.c
|
||||
|
||||
Leave this option empty if your PMU firmware has a hard-coded
|
||||
configuration object or you are loading it by any other means.
|
||||
|
||||
This feature requires U-Boot >= v2019.10.
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQMP_PSU_INIT_FILE
|
||||
string "Custom psu_init_gpl file"
|
||||
depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
help
|
||||
On ZynqMP the booloader is responsible for some basic
|
||||
initializations, such as enabling peripherals and
|
||||
configuring pinmuxes. The psu_init_gpl.c file (and,
|
||||
optionally, psu_init_gpl.h) contains the code for such
|
||||
initializations.
|
||||
|
||||
Although U-Boot contains psu_init_gpl.c files for some
|
||||
boards, each of them describes only one specific
|
||||
configuration. Users of a different board, or needing a
|
||||
different configuration, can generate custom files using the
|
||||
Xilinx development tools.
|
||||
|
||||
Set this variable to the path to your psu_init_gpl.c file
|
||||
(e.g. "board/myboard/psu_init_gpl.c"). psu_init_gpl.h, if
|
||||
needed, should be in the same directory. U-Boot will build
|
||||
and link the user-provided file instead of the built-in one.
|
||||
|
||||
Leave empty to use the files provided by U-Boot.
|
||||
|
||||
This feature requires commit
|
||||
6da4f67ad09cd8b311d77b2b04e557b7ef65b56c from upstream
|
||||
U-Boot, available from versions after 2018.07.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC
|
||||
bool "CRC image for Altera SoC FPGA (mkpimage)"
|
||||
depends on BR2_arm
|
||||
depends on BR2_TARGET_UBOOT_SPL || BR2_TARGET_UBOOT_FORMAT_DTB_BIN
|
||||
help
|
||||
Pass the U-Boot image through the mkpimage tool to enable
|
||||
booting on the Altera SoC FPGA based platforms.
|
||||
|
||||
On some platforms, it's the SPL that needs to be passed
|
||||
through mkpimage. On some other platforms there is no SPL
|
||||
because the internal SRAM is big enough to store the full
|
||||
U-Boot. In this case, it's directly the full U-Boot image
|
||||
that is passed through mkpimage.
|
||||
|
||||
If BR2_TARGET_UBOOT_SPL is enabled then
|
||||
BR2_TARGET_UBOOT_SPL_NAME is converted by mkpimage using
|
||||
header version 0.
|
||||
|
||||
Otherwise the full u-boot-dtb.bin is converted using
|
||||
mkpimage header version 1.
|
||||
|
||||
In either case the resulting file will be given a .crc
|
||||
extension.
|
||||
|
||||
if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_DTS_PATH
|
||||
string "Device Tree Source file paths"
|
||||
help
|
||||
Space-separated list of paths to device tree source files
|
||||
that will be copied to arch/ARCH/dts/ before starting the
|
||||
build.
|
||||
|
||||
To use this device tree source file, the U-Boot configuration
|
||||
file must refer to it.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS
|
||||
string "Custom make options"
|
||||
help
|
||||
List of custom make options passed at build time. Can be
|
||||
used for example to pass a DEVICE_TREE= value.
|
||||
|
||||
endif # BR2_TARGET_UBOOT
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 cde723e19262e646f2670d25e5ec4b1b368490de950d4e26275a988c36df0bd4 u-boot-2021.10.tar.bz2
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 Licenses/gpl-2.0.txt
|
||||
@@ -0,0 +1,537 @@
|
||||
################################################################################
|
||||
#
|
||||
# uboot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))
|
||||
UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
|
||||
|
||||
UBOOT_LICENSE = GPL-2.0+
|
||||
ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y)
|
||||
UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
|
||||
endif
|
||||
UBOOT_CPE_ID_VENDOR = denx
|
||||
UBOOT_CPE_ID_PRODUCT = u-boot
|
||||
|
||||
UBOOT_INSTALL_IMAGES = YES
|
||||
|
||||
# u-boot 2020.01+ needs make 4.0+
|
||||
UBOOT_DEPENDENCIES = host-pkgconf $(BR2_MAKE_HOST_DEPENDENCY)
|
||||
UBOOT_MAKE = $(BR2_MAKE)
|
||||
|
||||
ifeq ($(UBOOT_VERSION),custom)
|
||||
# Handle custom U-Boot tarballs as specified by the configuration
|
||||
UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION))
|
||||
UBOOT_SITE = $(patsubst %/,%,$(dir $(UBOOT_TARBALL)))
|
||||
UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL))
|
||||
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
|
||||
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
||||
UBOOT_SITE_METHOD = git
|
||||
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)
|
||||
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
||||
UBOOT_SITE_METHOD = hg
|
||||
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
|
||||
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
||||
UBOOT_SITE_METHOD = svn
|
||||
else
|
||||
# Handle stable official U-Boot versions
|
||||
UBOOT_SITE = https://ftp.denx.de/pub/u-boot
|
||||
UBOOT_SOURCE = u-boot-$(UBOOT_VERSION).tar.bz2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT)$(BR2_TARGET_UBOOT_LATEST_VERSION),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_BIN),y)
|
||||
UBOOT_BINS += u-boot.bin
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB),y)
|
||||
UBOOT_BINS += u-boot.dtb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_ELF),y)
|
||||
UBOOT_BINS += u-boot
|
||||
# To make elf usable for debuging on ARC use special target
|
||||
ifeq ($(BR2_arc),y)
|
||||
UBOOT_MAKE_TARGET += mdbtrick
|
||||
endif
|
||||
endif
|
||||
|
||||
# Call 'make all' unconditionally
|
||||
UBOOT_MAKE_TARGET += all
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_KWB),y)
|
||||
UBOOT_BINS += u-boot.kwb
|
||||
UBOOT_MAKE_TARGET += u-boot.kwb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_AIS),y)
|
||||
UBOOT_BINS += u-boot.ais
|
||||
UBOOT_MAKE_TARGET += u-boot.ais
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
|
||||
UBOOT_BINS += u-boot-nand.bin
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMG),y)
|
||||
UBOOT_BINS += u-boot-dtb.img
|
||||
UBOOT_MAKE_TARGET += u-boot-dtb.img
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMX),y)
|
||||
UBOOT_BINS += u-boot-dtb.imx
|
||||
UBOOT_MAKE_TARGET += u-boot-dtb.imx
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_BIN),y)
|
||||
UBOOT_BINS += u-boot-dtb.bin
|
||||
UBOOT_MAKE_TARGET += u-boot-dtb.bin
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMG),y)
|
||||
UBOOT_BINS += u-boot.img
|
||||
UBOOT_MAKE_TARGET += u-boot.img
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_ITB),y)
|
||||
UBOOT_BINS += u-boot.itb
|
||||
UBOOT_MAKE_TARGET += u-boot.itb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMX),y)
|
||||
UBOOT_BINS += u-boot.imx
|
||||
UBOOT_MAKE_TARGET += u-boot.imx
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
|
||||
UBOOT_BINS += u-boot.sb
|
||||
UBOOT_MAKE_TARGET += u-boot.sb
|
||||
# mxsimage needs OpenSSL
|
||||
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
|
||||
# BootStream (.sb) is generated by U-Boot, we convert it to SD format
|
||||
UBOOT_BINS += u-boot.sd
|
||||
UBOOT_MAKE_TARGET += u-boot.sb
|
||||
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y)
|
||||
UBOOT_BINS += u-boot.nand
|
||||
UBOOT_MAKE_TARGET += u-boot.sb
|
||||
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_STM32),y)
|
||||
UBOOT_BINS += u-boot.stm32
|
||||
UBOOT_MAKE_TARGET += u-boot.stm32
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
|
||||
UBOOT_BINS += $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_OMAP_IFT),y)
|
||||
UBOOT_BINS += u-boot.bin
|
||||
UBOOT_BIN_IFT = u-boot.bin.ift
|
||||
endif
|
||||
|
||||
# The kernel calls AArch64 'arm64', but U-Boot calls it just 'arm', so
|
||||
# we have to special case it. Similar for i386/x86_64 -> x86
|
||||
ifeq ($(KERNEL_ARCH),arm64)
|
||||
UBOOT_ARCH = arm
|
||||
else ifneq ($(filter $(KERNEL_ARCH),i386 x86_64),)
|
||||
UBOOT_ARCH = x86
|
||||
else
|
||||
UBOOT_ARCH = $(KERNEL_ARCH)
|
||||
endif
|
||||
|
||||
UBOOT_MAKE_OPTS += \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
ARCH=$(UBOOT_ARCH) \
|
||||
HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
|
||||
HOSTLDFLAGS="$(HOST_LDFLAGS)" \
|
||||
$(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS))
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31),y)
|
||||
UBOOT_DEPENDENCIES += arm-trusted-firmware
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF),y)
|
||||
UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.elf
|
||||
define UBOOT_COPY_ATF_FIRMWARE
|
||||
cp $(BINARIES_DIR)/bl31.elf $(@D)/
|
||||
endef
|
||||
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
|
||||
else
|
||||
UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin
|
||||
define UBOOT_COPY_ATF_FIRMWARE
|
||||
cp $(BINARIES_DIR)/bl31.bin $(@D)/
|
||||
endef
|
||||
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y)
|
||||
UBOOT_DEPENDENCIES += opensbi
|
||||
UBOOT_MAKE_OPTS += OPENSBI=$(BINARIES_DIR)/fw_dynamic.bin
|
||||
endif
|
||||
|
||||
# Mainline U-Boot versions can create the i.MX specific boot images
|
||||
# and need some NXP firmware blobs.
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE),y)
|
||||
UBOOT_DEPENDENCIES += firmware-imx
|
||||
UBOOT_IMX_FW_FILES = \
|
||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \
|
||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \
|
||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin)
|
||||
|
||||
define UBOOT_COPY_IMX_FW_FILES
|
||||
$(foreach fw,$(UBOOT_IMX_FW_FILES),\
|
||||
cp $(BINARIES_DIR)/$(fw) $(@D)/
|
||||
)
|
||||
endef
|
||||
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_FW_FILES
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
|
||||
UBOOT_DEPENDENCIES += host-dtc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON2),y)
|
||||
UBOOT_DEPENDENCIES += host-python host-python-setuptools
|
||||
else ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y)
|
||||
UBOOT_DEPENDENCIES += host-python3 host-python3-setuptools
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
|
||||
UBOOT_DEPENDENCIES += host-swig
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON2),y)
|
||||
UBOOT_DEPENDENCIES += host-python-pyelftools
|
||||
else ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y)
|
||||
UBOOT_DEPENDENCIES += host-python3-pyelftools
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSSL),y)
|
||||
UBOOT_DEPENDENCIES += host-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_LZOP),y)
|
||||
UBOOT_DEPENDENCIES += host-lzop
|
||||
endif
|
||||
|
||||
# prior to u-boot 2013.10 the license info was in COPYING. Copy it so
|
||||
# legal-info finds it
|
||||
define UBOOT_COPY_OLD_LICENSE_FILE
|
||||
if [ -f $(@D)/COPYING ]; then \
|
||||
$(INSTALL) -m 0644 -D $(@D)/COPYING $(@D)/Licenses/gpl-2.0.txt; \
|
||||
fi
|
||||
endef
|
||||
|
||||
UBOOT_POST_EXTRACT_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
|
||||
UBOOT_POST_RSYNC_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
|
||||
|
||||
ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
|
||||
define UBOOT_XTENSA_OVERLAY_EXTRACT
|
||||
$(call arch-xtensa-overlay-extract,$(@D),u-boot)
|
||||
endef
|
||||
UBOOT_POST_EXTRACT_HOOKS += UBOOT_XTENSA_OVERLAY_EXTRACT
|
||||
UBOOT_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
endif
|
||||
|
||||
# Analogous code exists in linux/linux.mk. Basically, the generic
|
||||
# package infrastructure handles downloading and applying remote
|
||||
# patches. Local patches are handled depending on whether they are
|
||||
# directories or files.
|
||||
UBOOT_PATCHES = $(call qstrip,$(BR2_TARGET_UBOOT_PATCH))
|
||||
UBOOT_PATCH = $(filter ftp://% http://% https://%,$(UBOOT_PATCHES))
|
||||
|
||||
define UBOOT_APPLY_LOCAL_PATCHES
|
||||
for p in $(filter-out ftp://% http://% https://%,$(UBOOT_PATCHES)) ; do \
|
||||
if test -d $$p ; then \
|
||||
$(APPLY_PATCHES) $(@D) $$p \*.patch || exit 1 ; \
|
||||
else \
|
||||
$(APPLY_PATCHES) $(@D) `dirname $$p` `basename $$p` || exit 1; \
|
||||
fi \
|
||||
done
|
||||
endef
|
||||
UBOOT_POST_PATCH_HOOKS += UBOOT_APPLY_LOCAL_PATCHES
|
||||
|
||||
# Fixup inclusion of libfdt headers, which can fail in older u-boot versions
|
||||
# when libfdt-devel is installed system-wide.
|
||||
# The core change is equivalent to upstream commit
|
||||
# e0d20dc1521e74b82dbd69be53a048847798a90a (first in v2018.03). However, the fixup
|
||||
# is complicated by the fact that the underlying u-boot code changed multiple
|
||||
# times in history:
|
||||
# - The directory scripts/dtc/libfdt only exists since upstream commit
|
||||
# c0e032e0090d6541549b19cc47e06ccd1f302893 (first in v2017.11). For earlier
|
||||
# versions, create a dummy scripts/dtc/libfdt directory with symlinks for the
|
||||
# fdt-related files. This allows to use the same -I<path> option for both
|
||||
# cases.
|
||||
# - The variable 'srctree' used to be called 'SRCTREE' before upstream commit
|
||||
# 01286329b27b27eaeda045b469d41b1d9fce545a (first in v2014.04).
|
||||
# - The original location for libfdt, 'lib/libfdt/', used to be simply
|
||||
# 'libfdt' before upstream commit 0de71d507157c4bd4fddcd3a419140d2b986eed2
|
||||
# (first in v2010.06). Make the 'lib' part optional in the substitution to
|
||||
# handle this.
|
||||
define UBOOT_FIXUP_LIBFDT_INCLUDE
|
||||
$(Q)if [ ! -d $(@D)/scripts/dtc/libfdt ]; then \
|
||||
mkdir -p $(@D)/scripts/dtc/libfdt; \
|
||||
cd $(@D)/scripts/dtc/libfdt; \
|
||||
ln -s ../../../include/fdt.h .; \
|
||||
ln -s ../../../include/libfdt*.h .; \
|
||||
ln -s ../../../lib/libfdt/libfdt_internal.h .; \
|
||||
fi
|
||||
$(Q)$(SED) \
|
||||
's%-I\ *\$$(srctree)/lib/libfdt%-I$$(srctree)/scripts/dtc/libfdt%; \
|
||||
s%-I\ *\$$(SRCTREE)\(/lib\)\?/libfdt%-I$$(SRCTREE)/scripts/dtc/libfdt%' \
|
||||
$(@D)/tools/Makefile
|
||||
endef
|
||||
UBOOT_POST_PATCH_HOOKS += UBOOT_FIXUP_LIBFDT_INCLUDE
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
define UBOOT_CONFIGURE_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||
$(UBOOT_BOARD_NAME)_config
|
||||
endef
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y)
|
||||
UBOOT_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG))_defconfig
|
||||
else ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
|
||||
UBOOT_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE))
|
||||
endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
|
||||
UBOOT_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES))
|
||||
UBOOT_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
|
||||
|
||||
# UBOOT_MAKE_OPTS overrides HOSTCC / HOSTLDFLAGS to allow the build to
|
||||
# find our host-openssl. However, this triggers a bug in the kconfig
|
||||
# build script that causes it to build with /usr/include/ncurses.h
|
||||
# (which is typically wchar) but link with
|
||||
# $(HOST_DIR)/lib/libncurses.so (which is not). We don't actually
|
||||
# need any host-package for kconfig, so remove the HOSTCC/HOSTLDFLAGS
|
||||
# override again. In addition, host-ccache is not ready at kconfig
|
||||
# time, so use HOSTCC_NOCCACHE.
|
||||
UBOOT_KCONFIG_OPTS = $(UBOOT_MAKE_OPTS) HOSTCC="$(HOSTCC_NOCCACHE)" HOSTLDFLAGS=""
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
UBOOT_CUSTOM_DTS_PATH = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_DTS_PATH))
|
||||
|
||||
define UBOOT_BUILD_CMDS
|
||||
$(if $(UBOOT_CUSTOM_DTS_PATH),
|
||||
cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/
|
||||
)
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig" \
|
||||
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||
$(UBOOT_MAKE_TARGET)
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
|
||||
$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
||||
$(@D)/tools/mxsboot \
|
||||
-w $(BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE) \
|
||||
-o $(BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE) \
|
||||
-e $(BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE) \
|
||||
nand $(@D)/u-boot.sb $(@D)/u-boot.nand)
|
||||
endef
|
||||
|
||||
define UBOOT_BUILD_OMAP_IFT
|
||||
$(HOST_DIR)/bin/gpsign -f $(@D)/u-boot.bin \
|
||||
-c $(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG))
|
||||
endef
|
||||
|
||||
define UBOOT_INSTALL_IMAGES_CMDS
|
||||
$(foreach f,$(UBOOT_BINS), \
|
||||
cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
|
||||
)
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
||||
cp -dpf $(@D)/u-boot.sb $(BINARIES_DIR))
|
||||
$(if $(BR2_TARGET_UBOOT_SPL),
|
||||
$(foreach f,$(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME)), \
|
||||
cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
|
||||
)
|
||||
)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_ZYNQMP),y)
|
||||
|
||||
UBOOT_ZYNQMP_PMUFW = $(call qstrip,$(BR2_TARGET_UBOOT_ZYNQMP_PMUFW))
|
||||
|
||||
ifneq ($(findstring ://,$(UBOOT_ZYNQMP_PMUFW)),)
|
||||
UBOOT_EXTRA_DOWNLOADS += $(UBOOT_ZYNQMP_PMUFW)
|
||||
BR_NO_CHECK_HASH_FOR += $(notdir $(UBOOT_ZYNQMP_PMUFW))
|
||||
UBOOT_ZYNQMP_PMUFW_PATH = $(UBOOT_DL_DIR)/$(notdir $(UBOOT_ZYNQMP_PMUFW))
|
||||
else ifneq ($(UBOOT_ZYNQMP_PMUFW),)
|
||||
UBOOT_ZYNQMP_PMUFW_PATH = $(shell readlink -f $(UBOOT_ZYNQMP_PMUFW))
|
||||
endif
|
||||
|
||||
define UBOOT_ZYNQMP_KCONFIG_PMUFW
|
||||
$(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_PATH)")
|
||||
endef
|
||||
|
||||
UBOOT_ZYNQMP_PM_CFG = $(call qstrip,$(BR2_TARGET_UBOOT_ZYNQMP_PM_CFG))
|
||||
ifneq ($(UBOOT_ZYNQMP_PM_CFG),)
|
||||
UBOOT_ZYNQMP_PM_CFG_BIN = $(UBOOT_DIR)/pm_cfg_obj.bin
|
||||
define UBOOT_ZYNQMP_KCONFIG_PM_CFG
|
||||
$(call KCONFIG_SET_OPT,CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE,"$(UBOOT_ZYNQMP_PM_CFG_BIN)", \
|
||||
$(@D)/.config)
|
||||
endef
|
||||
|
||||
define UBOOT_ZYNQMP_PM_CFG_CONVERT
|
||||
$(UBOOT_DIR)/tools/zynqmp_pm_cfg_obj_convert.py \
|
||||
"$(UBOOT_ZYNQMP_PM_CFG)" \
|
||||
"$(UBOOT_ZYNQMP_PM_CFG_BIN)"
|
||||
endef
|
||||
UBOOT_PRE_BUILD_HOOKS += UBOOT_ZYNQMP_PM_CFG_CONVERT
|
||||
endif
|
||||
|
||||
UBOOT_ZYNQMP_PSU_INIT = $(call qstrip,$(BR2_TARGET_UBOOT_ZYNQMP_PSU_INIT_FILE))
|
||||
UBOOT_ZYNQMP_PSU_INIT_PATH = $(shell readlink -f $(UBOOT_ZYNQMP_PSU_INIT))
|
||||
|
||||
ifneq ($(UBOOT_ZYNQMP_PSU_INIT),)
|
||||
define UBOOT_ZYNQMP_KCONFIG_PSU_INIT
|
||||
$(call KCONFIG_SET_OPT,CONFIG_XILINX_PS_INIT_FILE,"$(UBOOT_ZYNQMP_PSU_INIT_PATH)")
|
||||
endef
|
||||
endif
|
||||
|
||||
endif # BR2_TARGET_UBOOT_ZYNQMP
|
||||
|
||||
define UBOOT_INSTALL_OMAP_IFT_IMAGE
|
||||
cp -dpf $(@D)/$(UBOOT_BIN_IFT) $(BINARIES_DIR)/
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_OMAP_IFT),y)
|
||||
ifeq ($(BR_BUILDING),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG)),)
|
||||
$(error No gpsign config file. Check your BR2_TARGET_UBOOT_OMAP_IFT_CONFIG setting)
|
||||
endif
|
||||
ifeq ($(wildcard $(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG))),)
|
||||
$(error gpsign config file $(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG) not found. Check your BR2_TARGET_UBOOT_OMAP_IFT_CONFIG setting)
|
||||
endif
|
||||
endif
|
||||
UBOOT_DEPENDENCIES += host-omap-u-boot-utils
|
||||
UBOOT_POST_BUILD_HOOKS += UBOOT_BUILD_OMAP_IFT
|
||||
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_INSTALL_OMAP_IFT_IMAGE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_ZYNQ_IMAGE),y)
|
||||
define UBOOT_GENERATE_ZYNQ_IMAGE
|
||||
$(HOST_DIR)/bin/python2 \
|
||||
$(HOST_DIR)/bin/zynq-boot-bin.py \
|
||||
-u $(@D)/$(firstword $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))) \
|
||||
-o $(BINARIES_DIR)/BOOT.BIN
|
||||
endef
|
||||
UBOOT_DEPENDENCIES += host-zynq-boot-bin
|
||||
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_GENERATE_ZYNQ_IMAGE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_SPL),y)
|
||||
UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES = $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))
|
||||
UBOOT_CRC_ALTERA_SOCFPGA_HEADER_VERSION = 0
|
||||
else
|
||||
UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES = u-boot-dtb.bin
|
||||
UBOOT_CRC_ALTERA_SOCFPGA_HEADER_VERSION = 1
|
||||
endif
|
||||
define UBOOT_CRC_ALTERA_SOCFPGA_IMAGE
|
||||
$(foreach f,$(UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES), \
|
||||
$(HOST_DIR)/bin/mkpimage \
|
||||
-v $(UBOOT_CRC_ALTERA_SOCFPGA_HEADER_VERSION) \
|
||||
-o $(BINARIES_DIR)/$(notdir $(call qstrip,$(f))).crc \
|
||||
$(@D)/$(call qstrip,$(f))
|
||||
)
|
||||
endef
|
||||
UBOOT_DEPENDENCIES += host-mkpimage
|
||||
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_CRC_ALTERA_SOCFPGA_IMAGE
|
||||
endif
|
||||
|
||||
define UBOOT_KCONFIG_FIXUP_CMDS
|
||||
$(UBOOT_ZYNQMP_KCONFIG_PMUFW)
|
||||
$(UBOOT_ZYNQMP_KCONFIG_PM_CFG)
|
||||
$(UBOOT_ZYNQMP_KCONFIG_PSU_INIT)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT)$(BR_BUILDING),yy)
|
||||
|
||||
#
|
||||
# Check U-Boot board name (for legacy) or the defconfig/custom config
|
||||
# file options (for kconfig)
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
ifeq ($(UBOOT_BOARD_NAME),)
|
||||
$(error No U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting)
|
||||
endif # UBOOT_BOARD_NAME
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG)),)
|
||||
$(error No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_BOARD_DEFCONFIG
|
||||
endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE)),)
|
||||
$(error No board configuration file specified, check your BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
|
||||
endif # BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
#
|
||||
# Check custom version option
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_VERSION),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE)),)
|
||||
$(error No custom U-Boot version specified. Check your BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
|
||||
#
|
||||
# Check custom tarball option
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_TARBALL),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION)),)
|
||||
$(error No custom U-Boot tarball specified. Check your BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
|
||||
#
|
||||
# Check Git/Mercurial repo options
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT)$(BR2_TARGET_UBOOT_CUSTOM_HG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)),)
|
||||
$(error No custom U-Boot repository URL specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_URL setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_URL
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION)),)
|
||||
$(error No custom U-Boot repository version specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_VERSION
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
|
||||
endif # BR2_TARGET_UBOOT && BR_BUILDING
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
UBOOT_DEPENDENCIES += \
|
||||
$(BR2_BISON_HOST_DEPENDENCY) \
|
||||
$(BR2_FLEX_HOST_DEPENDENCY)
|
||||
$(eval $(generic-package))
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
UBOOT_MAKE_ENV = $(TARGET_MAKE_ENV)
|
||||
# Starting with 2021.10, the kconfig in uboot calls the cross-compiler
|
||||
# to check its capabilities. So we need the toolchain before we can
|
||||
# call the configurators.
|
||||
UBOOT_KCONFIG_DEPENDENCIES += \
|
||||
toolchain \
|
||||
$(BR2_MAKE_HOST_DEPENDENCY) \
|
||||
$(BR2_BISON_HOST_DEPENDENCY) \
|
||||
$(BR2_FLEX_HOST_DEPENDENCY)
|
||||
$(eval $(kconfig-package))
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
Reference in New Issue
Block a user