Skip to content
This repository was archived by the owner on Jan 27, 2019. It is now read-only.

Commit 5d33df8

Browse files
Jacob Kjaergaardmnhu
authored andcommitted
conf/u-boot.conf: make UBOOT_IMAGE use flag dependent.
Use use flags instead of a variable override in machine.conf or whatever. Variables in machine.conf will propagate to all signatures whereas use flags is only relavant for specific recipes.
1 parent 66061b3 commit 5d33df8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

conf/u-boot.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
## @useflag uboot_extra_env Set this to extra env in u-boot. Will be appended
44
## to the existing default environment. Is empty by default.
55
## @useflag uboot_config_file Filename of the uboot config to use.
6+
## @useflag uboot_image makefile target to build.
67
## @useflag uboot_maxsize Enables checking of sizecheck. Default disabled.
78
## Set this to the maximum size allowed of your u-boot image.
8-
CLASS_FLAGS += "uboot_config uboot_config_file uboot_extra_env uboot_maxsize"
9+
CLASS_FLAGS += "uboot_config uboot_config_file uboot_extra_env uboot_maxsize uboot_image"
910

1011
DEFAULT_USE_uboot_config ?= "${MACHINE}_config"
1112
DEFAULT_USE_uboot_extra_env ?= ""
13+
DEFAULT_USE_uboot_image ?= "u-boot.bin"
1214

1315
COMPATIBLE_MACHINES = ".*"
1416

1517
## @var UBOOT_IMAGE Name of the image to build. Is u-boot.bin by default.
16-
UBOOT_IMAGE ?= "u-boot.bin"
18+
UBOOT_IMAGE ?= "${USE_uboot_image}"
1719
## @var UBOOT_IMAGE_BASE Basename of the deployed image. U-boot by default.
1820
UBOOT_IMAGE_BASE ?= "u-boot"
1921
## @var UBOOT_IMAGE_FILENAME Filename of the compiled uboot image.

0 commit comments

Comments
 (0)