Commit 914e805f authored by Grant Likely's avatar Grant Likely
Browse files

Get rid of last vestiges of $(TARGET)

This tool isn't using $(TARGET) anymore to choose the build platform.
The build configuration is entirely determined by the U-Boot
configuration. Now to use the tool, run "make <target>_defconfig" where
<target> is the name of a file in the u-boot/configs directory.

Signed-off-by: Grant Likely's avatarGrant Likely <>
parent 135b7040
......@@ -26,12 +26,15 @@ and run the repo init command:
This will clone all of the required git trees and link the Makefile
into the root directory. To build the firmware, simply type:
$ make [TARGET=<target name>] # Defaults to "mcbin"
$ make <target_name>_defconfig
Where <target_name> is a U-Boot defconfig that can be found in the
u-boot/configs directory.
Patches to target projects
There are a few changes to the main projects in the ./patches directory.
You'll want to apply those to get a working firmware image.
You'll may need to apply those to get a working firmware image.
Supported Platforms
......@@ -3,5 +3,5 @@
TARGETS="mvebu_mcbin-88f8040 rockpro64-rk3399"
for t in $TARGETS; do
make TARGET=$t
make ${t}_defconfig sdimage
......@@ -4,18 +4,11 @@
# Makefile Conventions:
# Variable names:
# TARGET: U-Boot configuration name; TFA, OP-TEE, and other target
# configuration names key off the U-Boot configuration; this is a
# U-Boot oriented tool after all.
# *_PATH: Full path to project source directories or other assets
# *_OUTPUT: Build directories for each of the sub projects
# *_EXTRA: Extra parameters to the make call. Gets added to make targets, e.g.
ifndef TARGET
$(error TARGET is not set)
# Set some defaults that can be overridden by the target makefile include
export DT_PATH := $(CURDIR)/devicetree-rebasing
export DT_OUTPUT := $(DT_PATH)
......@@ -94,7 +87,7 @@ ifeq ($(config-targets),1)
$(MAKE) -C $(UBOOT_PATH) $(UBOOT_EXTRA) olddefconfig
PHONY += defconfig
defconfig: ${TARGET}_defconfig ;
defconfig: rockpro64-rk3399_defconfig ;
# ===========================================================================
......@@ -121,7 +114,7 @@ ifndef TFA_PLAT
$(warning TFA_PLAT is not set. Either TARGET=$(TARGET) is not yet supported)
$(warning TFA_PLAT is not set. Either the platform is not yet supported)
$(error by this tool, or there is a bug)
......@@ -131,7 +124,7 @@ TFA_EXTRA += BL33=$(UBOOT_OUTPUT)/u-boot.bin
FLASH_IMAGE ?= $(TFA_OUTPUT)/$(TFA_PLAT)/release/flash-image.bin
FLASH_IMAGE_DEPS ?= tfa/all tfa/fip
SD_IMAGE := $(TARGET)-sdcard.img
SD_IMAGE := $(subst ",,$(CONFIG_SYS_CONFIG_NAME))-sdcard.img
ESP_SIZE ?= $$((64*1024*1024))
ESP_OFFSET ?= $$((4*1024*1024))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment