2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2008-03-11 19:26:07 +01:00
|
|
|
#
|
2013-06-06 23:54:12 +02:00
|
|
|
# uboot
|
2008-03-11 19:26:07 +01:00
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
.mk files: bulk aligment and whitespace cleanup of assignments
The Buildroot coding style defines one space around make assignments and
does not align the assignment symbols.
This patch does a bulk fix of offending packages. The package
infrastructures (or more in general assignments to calculated variable
names, like $(2)_FOO) are not touched.
Alignment of line continuation characters (\) is kept as-is.
The sed command used to do this replacement is:
find * -name "*.mk" | xargs sed -i \
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#'
Brief explanation of this command:
^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line
\([?:+]\?=\) any assignment character =, :=, ?=, +=
\([^\\]\+\) any string not containing a line continuation
\([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a
line continuation character
\(\s*\\\) optional whitespace, followed by a line
continuation character
Hence, the first subexpression handles empty assignments, the second
handles regular assignments, the third handles regular assignments with
line continuation, and the fourth empty assignments with line
continuation.
This expression was tested on following test text: (initial tab not
included)
FOO = spaces before
FOO = spaces before and after
FOO = tab before
FOO = tab and spaces before
FOO = tab after
FOO = tab and spaces after
FOO = spaces and tab after
FOO = \
FOO = bar \
FOO = bar space \
FOO = \
GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse
FOO += spaces before
FOO ?= spaces before and after
FOO :=
FOO =
FOO =
FOO =
FOO =
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C
AT91BOOTSTRAP3_DEFCONFIG = \
AXEL_DISABLE_I18N=--i18n=0
After this bulk change, following manual fixups were done:
- fix line continuation alignment in cegui06 and spice (the sed
expression leaves the number of whitespace between the value and line
continuation character intact, but the whitespace before that could have
changed, causing misalignment.
- qt5base was reverted, as this package uses extensive alignment which
actually makes the code more readable.
Finally, the end result was manually reviewed.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Cc: Yann E. Morin <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
|
|
|
UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))
|
2011-07-11 22:46:09 +02:00
|
|
|
UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
|
2011-07-05 21:54:07 +02:00
|
|
|
|
2017-03-30 15:43:32 +02:00
|
|
|
UBOOT_LICENSE = GPL-2.0+
|
2020-02-05 15:48:40 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y)
|
2014-01-21 14:26:16 +01:00
|
|
|
UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
|
2020-02-05 15:48:40 +01:00
|
|
|
endif
|
2020-12-04 16:46:01 +01:00
|
|
|
UBOOT_CPE_ID_VENDOR = denx
|
2021-01-18 18:41:51 +01:00
|
|
|
UBOOT_CPE_ID_PRODUCT = u-boot
|
2012-08-18 11:25:40 +02:00
|
|
|
|
2011-07-11 22:46:09 +02:00
|
|
|
UBOOT_INSTALL_IMAGES = YES
|
2009-01-02 12:18:09 +01:00
|
|
|
|
2020-02-03 21:20:20 +01:00
|
|
|
# u-boot 2020.01+ needs make 4.0+
|
2021-07-15 23:29:17 +02:00
|
|
|
UBOOT_DEPENDENCIES = host-pkgconf $(BR2_MAKE_HOST_DEPENDENCY)
|
2020-08-04 21:00:05 +02:00
|
|
|
UBOOT_MAKE = $(BR2_MAKE)
|
2020-02-03 21:20:20 +01:00
|
|
|
|
2022-06-23 16:00:25 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_TARBALL),y)
|
2010-06-12 13:18:04 +02:00
|
|
|
# Handle custom U-Boot tarballs as specified by the configuration
|
2011-07-11 22:46:09 +02:00
|
|
|
UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION))
|
.mk files: bulk aligment and whitespace cleanup of assignments
The Buildroot coding style defines one space around make assignments and
does not align the assignment symbols.
This patch does a bulk fix of offending packages. The package
infrastructures (or more in general assignments to calculated variable
names, like $(2)_FOO) are not touched.
Alignment of line continuation characters (\) is kept as-is.
The sed command used to do this replacement is:
find * -name "*.mk" | xargs sed -i \
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#'
Brief explanation of this command:
^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line
\([?:+]\?=\) any assignment character =, :=, ?=, +=
\([^\\]\+\) any string not containing a line continuation
\([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a
line continuation character
\(\s*\\\) optional whitespace, followed by a line
continuation character
Hence, the first subexpression handles empty assignments, the second
handles regular assignments, the third handles regular assignments with
line continuation, and the fourth empty assignments with line
continuation.
This expression was tested on following test text: (initial tab not
included)
FOO = spaces before
FOO = spaces before and after
FOO = tab before
FOO = tab and spaces before
FOO = tab after
FOO = tab and spaces after
FOO = spaces and tab after
FOO = \
FOO = bar \
FOO = bar space \
FOO = \
GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse
FOO += spaces before
FOO ?= spaces before and after
FOO :=
FOO =
FOO =
FOO =
FOO =
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C
AT91BOOTSTRAP3_DEFCONFIG = \
AXEL_DISABLE_I18N=--i18n=0
After this bulk change, following manual fixups were done:
- fix line continuation alignment in cegui06 and spice (the sed
expression leaves the number of whitespace between the value and line
continuation character intact, but the whitespace before that could have
changed, causing misalignment.
- qt5base was reverted, as this package uses extensive alignment which
actually makes the code more readable.
Finally, the end result was manually reviewed.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Cc: Yann E. Morin <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
|
|
|
UBOOT_SITE = $(patsubst %/,%,$(dir $(UBOOT_TARBALL)))
|
|
|
|
UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL))
|
2011-07-11 22:46:12 +02:00
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
|
.mk files: bulk aligment and whitespace cleanup of assignments
The Buildroot coding style defines one space around make assignments and
does not align the assignment symbols.
This patch does a bulk fix of offending packages. The package
infrastructures (or more in general assignments to calculated variable
names, like $(2)_FOO) are not touched.
Alignment of line continuation characters (\) is kept as-is.
The sed command used to do this replacement is:
find * -name "*.mk" | xargs sed -i \
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#'
Brief explanation of this command:
^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line
\([?:+]\?=\) any assignment character =, :=, ?=, +=
\([^\\]\+\) any string not containing a line continuation
\([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a
line continuation character
\(\s*\\\) optional whitespace, followed by a line
continuation character
Hence, the first subexpression handles empty assignments, the second
handles regular assignments, the third handles regular assignments with
line continuation, and the fourth empty assignments with line
continuation.
This expression was tested on following test text: (initial tab not
included)
FOO = spaces before
FOO = spaces before and after
FOO = tab before
FOO = tab and spaces before
FOO = tab after
FOO = tab and spaces after
FOO = spaces and tab after
FOO = \
FOO = bar \
FOO = bar space \
FOO = \
GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse
FOO += spaces before
FOO ?= spaces before and after
FOO :=
FOO =
FOO =
FOO =
FOO =
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C
AT91BOOTSTRAP3_DEFCONFIG = \
AXEL_DISABLE_I18N=--i18n=0
After this bulk change, following manual fixups were done:
- fix line continuation alignment in cegui06 and spice (the sed
expression leaves the number of whitespace between the value and line
continuation character intact, but the whitespace before that could have
changed, causing misalignment.
- qt5base was reverted, as this package uses extensive alignment which
actually makes the code more readable.
Finally, the end result was manually reviewed.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Cc: Yann E. Morin <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
|
|
|
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
2011-07-11 22:46:12 +02:00
|
|
|
UBOOT_SITE_METHOD = git
|
2013-09-02 22:07:55 +02:00
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)
|
.mk files: bulk aligment and whitespace cleanup of assignments
The Buildroot coding style defines one space around make assignments and
does not align the assignment symbols.
This patch does a bulk fix of offending packages. The package
infrastructures (or more in general assignments to calculated variable
names, like $(2)_FOO) are not touched.
Alignment of line continuation characters (\) is kept as-is.
The sed command used to do this replacement is:
find * -name "*.mk" | xargs sed -i \
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#'
Brief explanation of this command:
^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line
\([?:+]\?=\) any assignment character =, :=, ?=, +=
\([^\\]\+\) any string not containing a line continuation
\([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a
line continuation character
\(\s*\\\) optional whitespace, followed by a line
continuation character
Hence, the first subexpression handles empty assignments, the second
handles regular assignments, the third handles regular assignments with
line continuation, and the fourth empty assignments with line
continuation.
This expression was tested on following test text: (initial tab not
included)
FOO = spaces before
FOO = spaces before and after
FOO = tab before
FOO = tab and spaces before
FOO = tab after
FOO = tab and spaces after
FOO = spaces and tab after
FOO = \
FOO = bar \
FOO = bar space \
FOO = \
GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse
FOO += spaces before
FOO ?= spaces before and after
FOO :=
FOO =
FOO =
FOO =
FOO =
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C
AT91BOOTSTRAP3_DEFCONFIG = \
AXEL_DISABLE_I18N=--i18n=0
After this bulk change, following manual fixups were done:
- fix line continuation alignment in cegui06 and spice (the sed
expression leaves the number of whitespace between the value and line
continuation character intact, but the whitespace before that could have
changed, causing misalignment.
- qt5base was reverted, as this package uses extensive alignment which
actually makes the code more readable.
Finally, the end result was manually reviewed.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Cc: Yann E. Morin <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
|
|
|
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
2013-09-02 22:07:55 +02:00
|
|
|
UBOOT_SITE_METHOD = hg
|
2016-03-29 19:22:57 +02:00
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
|
|
|
|
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
|
|
|
UBOOT_SITE_METHOD = svn
|
2010-06-12 13:18:04 +02:00
|
|
|
else
|
|
|
|
# Handle stable official U-Boot versions
|
2020-06-04 20:55:48 +02:00
|
|
|
UBOOT_SITE = https://ftp.denx.de/pub/u-boot
|
.mk files: bulk aligment and whitespace cleanup of assignments
The Buildroot coding style defines one space around make assignments and
does not align the assignment symbols.
This patch does a bulk fix of offending packages. The package
infrastructures (or more in general assignments to calculated variable
names, like $(2)_FOO) are not touched.
Alignment of line continuation characters (\) is kept as-is.
The sed command used to do this replacement is:
find * -name "*.mk" | xargs sed -i \
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#'
-e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#'
Brief explanation of this command:
^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line
\([?:+]\?=\) any assignment character =, :=, ?=, +=
\([^\\]\+\) any string not containing a line continuation
\([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a
line continuation character
\(\s*\\\) optional whitespace, followed by a line
continuation character
Hence, the first subexpression handles empty assignments, the second
handles regular assignments, the third handles regular assignments with
line continuation, and the fourth empty assignments with line
continuation.
This expression was tested on following test text: (initial tab not
included)
FOO = spaces before
FOO = spaces before and after
FOO = tab before
FOO = tab and spaces before
FOO = tab after
FOO = tab and spaces after
FOO = spaces and tab after
FOO = \
FOO = bar \
FOO = bar space \
FOO = \
GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse
FOO += spaces before
FOO ?= spaces before and after
FOO :=
FOO =
FOO =
FOO =
FOO =
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C
AT91BOOTSTRAP3_DEFCONFIG = \
AXEL_DISABLE_I18N=--i18n=0
After this bulk change, following manual fixups were done:
- fix line continuation alignment in cegui06 and spice (the sed
expression leaves the number of whitespace between the value and line
continuation character intact, but the whitespace before that could have
changed, causing misalignment.
- qt5base was reverted, as this package uses extensive alignment which
actually makes the code more readable.
Finally, the end result was manually reviewed.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Cc: Yann E. Morin <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
|
|
|
UBOOT_SOURCE = u-boot-$(UBOOT_VERSION).tar.bz2
|
2015-05-02 11:05:01 +02:00
|
|
|
endif
|
2017-03-21 01:07:07 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT)$(BR2_TARGET_UBOOT_LATEST_VERSION),y)
|
|
|
|
BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
|
2010-06-12 13:18:04 +02:00
|
|
|
endif
|
2009-01-03 16:50:38 +01:00
|
|
|
|
2016-09-02 14:26:26 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_BIN),y)
|
|
|
|
UBOOT_BINS += u-boot.bin
|
|
|
|
endif
|
|
|
|
|
2021-06-16 07:03:39 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB),y)
|
|
|
|
UBOOT_BINS += u-boot.dtb
|
|
|
|
endif
|
|
|
|
|
2013-05-16 01:12:02 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_ELF),y)
|
2016-09-02 14:26:26 +02:00
|
|
|
UBOOT_BINS += u-boot
|
2016-05-27 19:51:41 +02:00
|
|
|
# To make elf usable for debuging on ARC use special target
|
|
|
|
ifeq ($(BR2_arc),y)
|
2016-09-02 14:26:26 +02:00
|
|
|
UBOOT_MAKE_TARGET += mdbtrick
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-10-07 20:30:34 +02:00
|
|
|
# Call 'make all' unconditionally
|
|
|
|
UBOOT_MAKE_TARGET += all
|
|
|
|
|
2016-09-02 14:26:26 +02:00
|
|
|
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
|
2016-10-07 20:30:34 +02:00
|
|
|
UBOOT_MAKE_TARGET += u-boot-dtb.img
|
2016-09-02 14:26:26 +02:00
|
|
|
endif
|
|
|
|
|
2018-07-05 21:24:29 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMX),y)
|
|
|
|
UBOOT_BINS += u-boot-dtb.imx
|
|
|
|
UBOOT_MAKE_TARGET += u-boot-dtb.imx
|
|
|
|
endif
|
|
|
|
|
2017-02-13 14:59:33 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_BIN),y)
|
|
|
|
UBOOT_BINS += u-boot-dtb.bin
|
|
|
|
UBOOT_MAKE_TARGET += u-boot-dtb.bin
|
|
|
|
endif
|
|
|
|
|
2016-09-02 14:26:26 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMG),y)
|
|
|
|
UBOOT_BINS += u-boot.img
|
|
|
|
UBOOT_MAKE_TARGET += u-boot.img
|
|
|
|
endif
|
|
|
|
|
2019-12-03 22:36:22 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_ITB),y)
|
|
|
|
UBOOT_BINS += u-boot.itb
|
|
|
|
UBOOT_MAKE_TARGET += u-boot.itb
|
|
|
|
endif
|
|
|
|
|
2016-09-02 14:26:26 +02:00
|
|
|
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
|
2016-05-20 06:57:24 +02:00
|
|
|
# mxsimage needs OpenSSL
|
|
|
|
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
2016-09-02 14:26:26 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
|
2015-03-22 14:25:14 +01:00
|
|
|
# BootStream (.sb) is generated by U-Boot, we convert it to SD format
|
2016-09-02 14:26:26 +02:00
|
|
|
UBOOT_BINS += u-boot.sd
|
|
|
|
UBOOT_MAKE_TARGET += u-boot.sb
|
2016-05-20 06:57:24 +02:00
|
|
|
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
2016-09-02 14:26:26 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y)
|
|
|
|
UBOOT_BINS += u-boot.nand
|
|
|
|
UBOOT_MAKE_TARGET += u-boot.sb
|
2016-05-20 06:57:24 +02:00
|
|
|
UBOOT_DEPENDENCIES += host-elftosb host-openssl
|
2016-09-02 14:26:26 +02:00
|
|
|
endif
|
|
|
|
|
2020-10-07 16:49:42 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_STM32),y)
|
|
|
|
UBOOT_BINS += u-boot.stm32
|
|
|
|
UBOOT_MAKE_TARGET += u-boot.stm32
|
|
|
|
endif
|
|
|
|
|
2016-09-02 14:26:26 +02:00
|
|
|
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
|
2010-07-26 16:14:41 +02:00
|
|
|
endif
|
2009-01-06 15:16:27 +01:00
|
|
|
|
2015-10-12 20:53:16 +02:00
|
|
|
# The kernel calls AArch64 'arm64', but U-Boot calls it just 'arm', so
|
2015-11-15 20:55:32 +01:00
|
|
|
# we have to special case it. Similar for i386/x86_64 -> x86
|
core: introduce NORMALIZED_ARCH as non-kernel replacement for KERNEL_ARCH
The variable 'KERNEL_ARCH' is actually a normalized version of
'ARCH'/'BR2_ARCH'. For example, 'arcle' and 'arceb' both become 'arc', just
as all powerpc variants become 'powerpc'.
It is presumably called 'KERNEL_ARCH' because the Linux kernel is typically
the first place where support for a new architecture is added, and thus is
the entity that defines the normalized name.
However, the term 'KERNEL_ARCH' can also be interpreted as 'the architecture
used by the kernel', which need not be exactly the same as 'the normalized
name for a certain arch'. In particular, for cases where a 64-bit
architecture is running a 64-bit kernel but 32-bit userspace. Examples
include:
* aarch64 architecture, with aarch64 kernel and 32-bit (ARM) userspace
* x86_64 architecture, with x86_64 kernel and 32-bit (i386) userspace
In such cases, the 'architecture used by the kernel' needs to refer to the
64-bit name (aarch64, x86_64), whereas all userspace applications need to
refer the, potentially normalized, 32-bit name.
This means that there need to be two different variables:
KERNEL_ARCH: the architecture used by the kernel
NORMALIZED_ARCH: the normalized name for the current userspace architecture
At this moment, both will actually have the same content. But a subsequent
patch will add basic support for situations described above, in which
KERNEL_ARCH may become overwritten to the 64-bit architecture, while
NORMALIZED_ARCH needs to remain the same (32-bit) case.
This commit replaces use of KERNEL_ARCH where actually the userspace arch is
needed. Places that use KERNEL_ARCH in combination with building of kernel
modules are not touched.
There may be cases where a package builds both a kernel module as userspace,
in which case it may need to know about both KERNEL_ARCH and
NORMALIZED_ARCH, for the case where they differ. But this is to be fixed on
a per-need basis.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
[Arnout: Also rename BR2_KERNEL_ARCH to BR2_NORMALIZED_ARCH]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-15 21:03:00 +01:00
|
|
|
ifeq ($(NORMALIZED_ARCH),arm64)
|
2015-10-12 20:53:16 +02:00
|
|
|
UBOOT_ARCH = arm
|
core: introduce NORMALIZED_ARCH as non-kernel replacement for KERNEL_ARCH
The variable 'KERNEL_ARCH' is actually a normalized version of
'ARCH'/'BR2_ARCH'. For example, 'arcle' and 'arceb' both become 'arc', just
as all powerpc variants become 'powerpc'.
It is presumably called 'KERNEL_ARCH' because the Linux kernel is typically
the first place where support for a new architecture is added, and thus is
the entity that defines the normalized name.
However, the term 'KERNEL_ARCH' can also be interpreted as 'the architecture
used by the kernel', which need not be exactly the same as 'the normalized
name for a certain arch'. In particular, for cases where a 64-bit
architecture is running a 64-bit kernel but 32-bit userspace. Examples
include:
* aarch64 architecture, with aarch64 kernel and 32-bit (ARM) userspace
* x86_64 architecture, with x86_64 kernel and 32-bit (i386) userspace
In such cases, the 'architecture used by the kernel' needs to refer to the
64-bit name (aarch64, x86_64), whereas all userspace applications need to
refer the, potentially normalized, 32-bit name.
This means that there need to be two different variables:
KERNEL_ARCH: the architecture used by the kernel
NORMALIZED_ARCH: the normalized name for the current userspace architecture
At this moment, both will actually have the same content. But a subsequent
patch will add basic support for situations described above, in which
KERNEL_ARCH may become overwritten to the 64-bit architecture, while
NORMALIZED_ARCH needs to remain the same (32-bit) case.
This commit replaces use of KERNEL_ARCH where actually the userspace arch is
needed. Places that use KERNEL_ARCH in combination with building of kernel
modules are not touched.
There may be cases where a package builds both a kernel module as userspace,
in which case it may need to know about both KERNEL_ARCH and
NORMALIZED_ARCH, for the case where they differ. But this is to be fixed on
a per-need basis.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
[Arnout: Also rename BR2_KERNEL_ARCH to BR2_NORMALIZED_ARCH]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-15 21:03:00 +01:00
|
|
|
else ifneq ($(filter $(NORMALIZED_ARCH),i386 x86_64),)
|
2015-11-15 20:55:32 +01:00
|
|
|
UBOOT_ARCH = x86
|
2015-10-12 20:53:16 +02:00
|
|
|
else
|
core: introduce NORMALIZED_ARCH as non-kernel replacement for KERNEL_ARCH
The variable 'KERNEL_ARCH' is actually a normalized version of
'ARCH'/'BR2_ARCH'. For example, 'arcle' and 'arceb' both become 'arc', just
as all powerpc variants become 'powerpc'.
It is presumably called 'KERNEL_ARCH' because the Linux kernel is typically
the first place where support for a new architecture is added, and thus is
the entity that defines the normalized name.
However, the term 'KERNEL_ARCH' can also be interpreted as 'the architecture
used by the kernel', which need not be exactly the same as 'the normalized
name for a certain arch'. In particular, for cases where a 64-bit
architecture is running a 64-bit kernel but 32-bit userspace. Examples
include:
* aarch64 architecture, with aarch64 kernel and 32-bit (ARM) userspace
* x86_64 architecture, with x86_64 kernel and 32-bit (i386) userspace
In such cases, the 'architecture used by the kernel' needs to refer to the
64-bit name (aarch64, x86_64), whereas all userspace applications need to
refer the, potentially normalized, 32-bit name.
This means that there need to be two different variables:
KERNEL_ARCH: the architecture used by the kernel
NORMALIZED_ARCH: the normalized name for the current userspace architecture
At this moment, both will actually have the same content. But a subsequent
patch will add basic support for situations described above, in which
KERNEL_ARCH may become overwritten to the 64-bit architecture, while
NORMALIZED_ARCH needs to remain the same (32-bit) case.
This commit replaces use of KERNEL_ARCH where actually the userspace arch is
needed. Places that use KERNEL_ARCH in combination with building of kernel
modules are not touched.
There may be cases where a package builds both a kernel module as userspace,
in which case it may need to know about both KERNEL_ARCH and
NORMALIZED_ARCH, for the case where they differ. But this is to be fixed on
a per-need basis.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
[Arnout: Also rename BR2_KERNEL_ARCH to BR2_NORMALIZED_ARCH]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-15 21:03:00 +01:00
|
|
|
UBOOT_ARCH = $(NORMALIZED_ARCH)
|
2015-10-12 20:53:16 +02:00
|
|
|
endif
|
2009-01-03 16:50:38 +01:00
|
|
|
|
2011-07-11 22:46:09 +02:00
|
|
|
UBOOT_MAKE_OPTS += \
|
2015-10-04 14:28:49 +02:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
2016-05-20 06:57:24 +02:00
|
|
|
ARCH=$(UBOOT_ARCH) \
|
2018-03-01 21:54:29 +01:00
|
|
|
HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
|
2019-04-26 17:19:46 +02:00
|
|
|
HOSTLDFLAGS="$(HOST_LDFLAGS)" \
|
|
|
|
$(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS))
|
2011-07-05 21:54:07 +02:00
|
|
|
|
2017-12-03 22:48:07 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31),y)
|
|
|
|
UBOOT_DEPENDENCIES += arm-trusted-firmware
|
2018-11-11 22:39:42 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF),y)
|
|
|
|
UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.elf
|
2021-09-10 16:09:27 +02:00
|
|
|
define UBOOT_COPY_ATF_FIRMWARE
|
|
|
|
cp $(BINARIES_DIR)/bl31.elf $(@D)/
|
|
|
|
endef
|
|
|
|
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
|
2018-11-11 22:39:42 +01:00
|
|
|
else
|
2017-12-03 22:48:07 +01:00
|
|
|
UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin
|
2021-09-10 16:09:27 +02:00
|
|
|
define UBOOT_COPY_ATF_FIRMWARE
|
|
|
|
cp $(BINARIES_DIR)/bl31.bin $(@D)/
|
|
|
|
endef
|
|
|
|
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
|
2017-12-03 22:48:07 +01:00
|
|
|
endif
|
2018-11-11 22:39:42 +01:00
|
|
|
endif
|
2017-12-03 22:48:07 +01:00
|
|
|
|
2020-01-19 01:28:05 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE),y)
|
|
|
|
UBOOT_DEPENDENCIES += optee-os
|
|
|
|
UBOOT_MAKE_OPTS += TEE=$(BINARIES_DIR)/tee.elf
|
|
|
|
endif
|
|
|
|
|
2021-01-11 10:01:11 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y)
|
|
|
|
UBOOT_DEPENDENCIES += opensbi
|
|
|
|
UBOOT_MAKE_OPTS += OPENSBI=$(BINARIES_DIR)/fw_dynamic.bin
|
|
|
|
endif
|
|
|
|
|
2021-09-12 07:09:06 +02:00
|
|
|
# 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) \
|
2021-12-11 19:34:12 +01:00
|
|
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \
|
|
|
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin)
|
2021-09-12 07:09:06 +02:00
|
|
|
|
|
|
|
define UBOOT_COPY_IMX_FW_FILES
|
|
|
|
$(foreach fw,$(UBOOT_IMX_FW_FILES),\
|
|
|
|
cp $(BINARIES_DIR)/$(fw) $(@D)/
|
|
|
|
)
|
|
|
|
endef
|
2021-09-14 21:27:42 +02:00
|
|
|
UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_FW_FILES
|
2021-09-12 07:09:06 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-03 21:44:13 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
|
|
|
|
UBOOT_DEPENDENCIES += host-dtc
|
|
|
|
endif
|
|
|
|
|
2022-02-11 09:17:26 +01:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y)
|
2022-02-12 13:46:33 +01:00
|
|
|
UBOOT_DEPENDENCIES += host-python3 host-python-setuptools
|
boot/uboot: support building U-Boot with Python 3.x
U-Boot versions newer than 2020.01 use Python 3.x instead of Python
2.x in various scripts.
We already had the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT and
BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS options, but depending on the U-Boot
version, we now need to indicate if Python 2.x or Python 3.x should be
used.
In addition, it turns out that some U-Boot configurations need a
Python interpreter, without needing pylibfdt or pyelftools. Some of
our defconfigs were abusing the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT option
to make sure a Python interpreter was built.
To solve this issue, we introduce a choice, that let the users specify
what, if any, host python version is needed. The default is 'no', to
preserve the previous behaviour, unless any of the pylibfdt or the
pyelftools options is enabled, in which case we hide the 'no' option,
and use python 2 by default. This dfault is guaranteed by the order of
options in the choice.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr:
- explicitly make the choice a bool
- make BR2_TARGET_UBOOT_NEEDS_PYTHON a blind option
- introduce the 'no' option in the choice
- reword the commit log accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-05-02 23:28:08 +02:00
|
|
|
endif
|
|
|
|
|
2017-07-12 21:29:03 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
|
boot/uboot: support building U-Boot with Python 3.x
U-Boot versions newer than 2020.01 use Python 3.x instead of Python
2.x in various scripts.
We already had the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT and
BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS options, but depending on the U-Boot
version, we now need to indicate if Python 2.x or Python 3.x should be
used.
In addition, it turns out that some U-Boot configurations need a
Python interpreter, without needing pylibfdt or pyelftools. Some of
our defconfigs were abusing the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT option
to make sure a Python interpreter was built.
To solve this issue, we introduce a choice, that let the users specify
what, if any, host python version is needed. The default is 'no', to
preserve the previous behaviour, unless any of the pylibfdt or the
pyelftools options is enabled, in which case we hide the 'no' option,
and use python 2 by default. This dfault is guaranteed by the order of
options in the choice.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr:
- explicitly make the choice a bool
- make BR2_TARGET_UBOOT_NEEDS_PYTHON a blind option
- introduce the 'no' option in the choice
- reword the commit log accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-05-02 23:28:08 +02:00
|
|
|
UBOOT_DEPENDENCIES += host-swig
|
2017-07-12 21:29:03 +02:00
|
|
|
endif
|
|
|
|
|
2019-04-18 15:23:31 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS),y)
|
2022-02-11 09:17:27 +01:00
|
|
|
UBOOT_DEPENDENCIES += host-python-pyelftools
|
boot/uboot: support building U-Boot with Python 3.x
U-Boot versions newer than 2020.01 use Python 3.x instead of Python
2.x in various scripts.
We already had the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT and
BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS options, but depending on the U-Boot
version, we now need to indicate if Python 2.x or Python 3.x should be
used.
In addition, it turns out that some U-Boot configurations need a
Python interpreter, without needing pylibfdt or pyelftools. Some of
our defconfigs were abusing the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT option
to make sure a Python interpreter was built.
To solve this issue, we introduce a choice, that let the users specify
what, if any, host python version is needed. The default is 'no', to
preserve the previous behaviour, unless any of the pylibfdt or the
pyelftools options is enabled, in which case we hide the 'no' option,
and use python 2 by default. This dfault is guaranteed by the order of
options in the choice.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr:
- explicitly make the choice a bool
- make BR2_TARGET_UBOOT_NEEDS_PYTHON a blind option
- introduce the 'no' option in the choice
- reword the commit log accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-05-02 23:28:08 +02:00
|
|
|
endif
|
2019-04-18 15:23:31 +02:00
|
|
|
|
2016-10-16 09:42:22 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSSL),y)
|
|
|
|
UBOOT_DEPENDENCIES += host-openssl
|
|
|
|
endif
|
|
|
|
|
2018-07-28 22:11:52 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_LZOP),y)
|
|
|
|
UBOOT_DEPENDENCIES += host-lzop
|
|
|
|
endif
|
|
|
|
|
2022-06-01 23:32:22 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_GNUTLS),y)
|
|
|
|
UBOOT_DEPENDENCIES += host-gnutls
|
|
|
|
endif
|
|
|
|
|
2022-07-19 21:00:50 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX),y)
|
|
|
|
UBOOT_DEPENDENCIES += host-util-linux
|
|
|
|
endif
|
|
|
|
|
2014-03-25 07:18:15 +01:00
|
|
|
# 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
|
2015-12-29 03:27:30 +01:00
|
|
|
UBOOT_POST_RSYNC_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
|
2014-03-25 07:18:15 +01:00
|
|
|
|
2022-01-31 22:38:08 +01:00
|
|
|
# Older versions break on gcc 10+ because of redefined symbols
|
|
|
|
define UBOOT_DROP_YYLLOC
|
|
|
|
$(Q)grep -Z -l -r -E '^YYLTYPE yylloc;$$' $(@D) \
|
|
|
|
|xargs -0 -r $(SED) '/^YYLTYPE yylloc;$$/d'
|
|
|
|
endef
|
|
|
|
UBOOT_POST_PATCH_HOOKS += UBOOT_DROP_YYLLOC
|
|
|
|
|
2017-07-09 14:22:01 +02:00
|
|
|
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
|
|
|
|
|
2015-04-18 22:27:42 +02:00
|
|
|
# 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
|
|
|
|
|
2019-12-16 16:10:38 +01:00
|
|
|
# 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.
|
2018-03-08 10:58:45 +01:00
|
|
|
define UBOOT_FIXUP_LIBFDT_INCLUDE
|
2019-12-16 16:10:38 +01:00
|
|
|
$(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 .; \
|
2018-03-12 13:34:09 +01:00
|
|
|
fi
|
2019-12-16 16:10:38 +01:00
|
|
|
$(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
|
2018-03-08 10:58:45 +01:00
|
|
|
endef
|
|
|
|
UBOOT_POST_PATCH_HOOKS += UBOOT_FIXUP_LIBFDT_INCLUDE
|
|
|
|
|
2015-07-16 21:19:04 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
2011-07-11 22:46:09 +02:00
|
|
|
define UBOOT_CONFIGURE_CMDS
|
2018-04-01 07:08:16 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2020-08-04 21:00:05 +02:00
|
|
|
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
2011-07-11 22:46:09 +02:00
|
|
|
$(UBOOT_BOARD_NAME)_config
|
2011-07-05 21:54:07 +02:00
|
|
|
endef
|
2015-07-16 21:19:04 +02:00
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y)
|
2015-12-22 22:52:47 +01:00
|
|
|
UBOOT_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG))_defconfig
|
2015-07-16 21:19:04 +02:00
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
|
2015-12-22 22:52:47 +01:00
|
|
|
UBOOT_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE))
|
2015-07-16 21:19:04 +02:00
|
|
|
endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
|
|
|
|
|
2017-10-06 15:46:33 +02:00
|
|
|
UBOOT_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES))
|
2015-07-16 21:19:04 +02:00
|
|
|
UBOOT_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
|
2018-06-24 16:12:42 +02:00
|
|
|
|
|
|
|
# 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
|
2019-01-10 22:14:59 +01:00
|
|
|
# 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=""
|
2015-07-16 21:19:04 +02:00
|
|
|
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
2008-04-23 15:03:53 +02:00
|
|
|
|
2017-04-07 12:03:22 +02:00
|
|
|
UBOOT_CUSTOM_DTS_PATH = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_DTS_PATH))
|
|
|
|
|
2011-07-11 22:46:09 +02:00
|
|
|
define UBOOT_BUILD_CMDS
|
2017-04-07 12:03:22 +02:00
|
|
|
$(if $(UBOOT_CUSTOM_DTS_PATH),
|
|
|
|
cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/
|
2017-04-05 05:45:51 +02:00
|
|
|
)
|
2018-04-01 07:08:16 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2021-06-30 11:02:47 +02:00
|
|
|
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" \
|
2020-08-04 21:00:05 +02:00
|
|
|
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
2011-07-11 22:46:09 +02:00
|
|
|
$(UBOOT_MAKE_TARGET)
|
2015-03-22 14:25:14 +01:00
|
|
|
$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
|
|
|
|
$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
|
2015-03-29 18:10:46 +02:00
|
|
|
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
|
|
|
$(@D)/tools/mxsboot \
|
2018-04-01 07:08:16 +02:00
|
|
|
-w $(BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE) \
|
|
|
|
-o $(BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE) \
|
|
|
|
-e $(BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE) \
|
2015-03-29 18:10:46 +02:00
|
|
|
nand $(@D)/u-boot.sb $(@D)/u-boot.nand)
|
2011-07-05 21:54:07 +02:00
|
|
|
endef
|
2008-03-11 19:26:07 +01:00
|
|
|
|
2012-05-17 12:11:31 +02:00
|
|
|
define UBOOT_BUILD_OMAP_IFT
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/gpsign -f $(@D)/u-boot.bin \
|
2012-05-17 12:11:31 +02:00
|
|
|
-c $(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG))
|
|
|
|
endef
|
|
|
|
|
2011-07-11 22:46:09 +02:00
|
|
|
define UBOOT_INSTALL_IMAGES_CMDS
|
2016-09-02 14:26:26 +02:00
|
|
|
$(foreach f,$(UBOOT_BINS), \
|
|
|
|
cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
|
|
|
|
)
|
2015-03-29 18:10:46 +02:00
|
|
|
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
2016-09-02 14:26:26 +02:00
|
|
|
cp -dpf $(@D)/u-boot.sb $(BINARIES_DIR))
|
2012-03-18 23:04:50 +01:00
|
|
|
$(if $(BR2_TARGET_UBOOT_SPL),
|
2016-07-05 13:17:25 +02:00
|
|
|
$(foreach f,$(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME)), \
|
|
|
|
cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
|
|
|
|
)
|
|
|
|
)
|
2011-07-05 21:54:07 +02:00
|
|
|
endef
|
2008-03-11 19:26:07 +01:00
|
|
|
|
2018-07-25 16:35:36 +02:00
|
|
|
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
|
2022-10-13 08:49:31 +02:00
|
|
|
UBOOT_ZYNQMP_PMUFW_BASENAME = $(basename $(UBOOT_ZYNQMP_PMUFW_PATH))
|
2018-07-25 16:35:36 +02:00
|
|
|
|
|
|
|
define UBOOT_ZYNQMP_KCONFIG_PMUFW
|
2022-10-13 08:49:31 +02:00
|
|
|
$(if $(filter %.elf,$(UBOOT_ZYNQMP_PMUFW_PATH)),
|
|
|
|
objcopy -O binary -I elf32-little $(UBOOT_ZYNQMP_PMUFW_BASENAME).elf $(UBOOT_ZYNQMP_PMUFW_BASENAME).bin)
|
|
|
|
$(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_BASENAME).bin")
|
2018-07-25 16:35:36 +02:00
|
|
|
endef
|
|
|
|
|
2020-06-26 17:59:56 +02:00
|
|
|
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
|
|
|
|
|
2018-07-25 16:35:38 +02:00
|
|
|
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
|
2020-04-04 14:10:16 +02:00
|
|
|
$(call KCONFIG_SET_OPT,CONFIG_XILINX_PS_INIT_FILE,"$(UBOOT_ZYNQMP_PSU_INIT_PATH)")
|
2018-07-25 16:35:38 +02:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2018-07-25 16:35:36 +02:00
|
|
|
endif # BR2_TARGET_UBOOT_ZYNQMP
|
|
|
|
|
2012-05-17 12:11:31 +02:00
|
|
|
define UBOOT_INSTALL_OMAP_IFT_IMAGE
|
|
|
|
cp -dpf $(@D)/$(UBOOT_BIN_IFT) $(BINARIES_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_OMAP_IFT),y)
|
2015-04-26 11:51:15 +02:00
|
|
|
ifeq ($(BR_BUILDING),y)
|
2012-05-17 12:11:31 +02:00
|
|
|
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
|
|
|
|
|
2015-10-20 13:32:20 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC),y)
|
2017-02-13 16:33:29 +01:00
|
|
|
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
|
2015-10-20 13:32:20 +02:00
|
|
|
define UBOOT_CRC_ALTERA_SOCFPGA_IMAGE
|
2017-02-13 16:33:29 +01:00
|
|
|
$(foreach f,$(UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES), \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/mkpimage \
|
2017-02-13 16:33:29 +01:00
|
|
|
-v $(UBOOT_CRC_ALTERA_SOCFPGA_HEADER_VERSION) \
|
2016-07-05 13:17:25 +02:00
|
|
|
-o $(BINARIES_DIR)/$(notdir $(call qstrip,$(f))).crc \
|
|
|
|
$(@D)/$(call qstrip,$(f))
|
|
|
|
)
|
2015-10-20 13:32:20 +02:00
|
|
|
endef
|
|
|
|
UBOOT_DEPENDENCIES += host-mkpimage
|
|
|
|
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_CRC_ALTERA_SOCFPGA_IMAGE
|
|
|
|
endif
|
|
|
|
|
2018-07-25 16:35:36 +02:00
|
|
|
define UBOOT_KCONFIG_FIXUP_CMDS
|
|
|
|
$(UBOOT_ZYNQMP_KCONFIG_PMUFW)
|
2020-06-26 17:59:56 +02:00
|
|
|
$(UBOOT_ZYNQMP_KCONFIG_PM_CFG)
|
2018-07-25 16:35:38 +02:00
|
|
|
$(UBOOT_ZYNQMP_KCONFIG_PSU_INIT)
|
2018-07-25 16:35:36 +02:00
|
|
|
endef
|
|
|
|
|
2015-04-26 11:51:15 +02:00
|
|
|
ifeq ($(BR2_TARGET_UBOOT)$(BR_BUILDING),yy)
|
2015-07-16 21:19:04 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Check U-Boot board name (for legacy) or the defconfig/custom config
|
|
|
|
# file options (for kconfig)
|
|
|
|
#
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
2011-07-11 22:46:09 +02:00
|
|
|
ifeq ($(UBOOT_BOARD_NAME),)
|
2015-04-08 02:53:36 +02:00
|
|
|
$(error No U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting)
|
2015-07-16 21:19:04 +02:00
|
|
|
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)),)
|
2017-04-21 21:57:07 +02:00
|
|
|
$(error No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting)
|
2015-07-16 21:19:04 +02:00
|
|
|
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
|
2014-05-20 22:42:31 +02:00
|
|
|
|
2015-07-16 21:19:04 +02:00
|
|
|
#
|
|
|
|
# Check custom version option
|
|
|
|
#
|
2014-05-20 22:42:31 +02:00
|
|
|
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
|
|
|
|
|
2015-07-16 21:19:04 +02:00
|
|
|
#
|
|
|
|
# Check custom tarball option
|
|
|
|
#
|
2014-05-20 22:42:31 +02:00
|
|
|
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
|
|
|
|
|
2015-07-16 21:19:04 +02:00
|
|
|
#
|
|
|
|
# Check Git/Mercurial repo options
|
|
|
|
#
|
2014-05-20 22:42:31 +02:00
|
|
|
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)),)
|
2020-11-15 05:40:43 +01:00
|
|
|
$(error No custom U-Boot repository version specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION setting)
|
2014-05-20 22:42:31 +02:00
|
|
|
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_VERSION
|
|
|
|
endif # BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
|
|
|
|
2015-04-26 11:51:15 +02:00
|
|
|
endif # BR2_TARGET_UBOOT && BR_BUILDING
|
2015-07-16 21:19:04 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
2018-09-13 22:12:33 +02:00
|
|
|
UBOOT_DEPENDENCIES += \
|
|
|
|
$(BR2_BISON_HOST_DEPENDENCY) \
|
|
|
|
$(BR2_FLEX_HOST_DEPENDENCY)
|
2015-07-16 21:19:04 +02:00
|
|
|
$(eval $(generic-package))
|
|
|
|
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
2018-09-05 14:22:36 +02:00
|
|
|
UBOOT_MAKE_ENV = $(TARGET_MAKE_ENV)
|
2021-11-16 19:00:41 +01:00
|
|
|
# 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.
|
2021-11-09 18:19:07 +01:00
|
|
|
UBOOT_KCONFIG_DEPENDENCIES += \
|
2021-11-16 19:00:41 +01:00
|
|
|
toolchain \
|
2021-03-10 17:16:46 +01:00
|
|
|
$(BR2_MAKE_HOST_DEPENDENCY) \
|
2018-08-17 18:06:53 +02:00
|
|
|
$(BR2_BISON_HOST_DEPENDENCY) \
|
|
|
|
$(BR2_FLEX_HOST_DEPENDENCY)
|
2015-07-16 21:19:04 +02:00
|
|
|
$(eval $(kconfig-package))
|
|
|
|
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|