mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 08:12:06 +02:00
build: define CPU only when arch/${ARCH}/cpu/${CPU} exists
The directory arch/${ARCH}/cpu/${CPU} does not exist in avr32, blackfin, microblaze, nios2, openrisc, sandbox, x86. These architectures have only one CPU type. Defining CPU should not be required for such architectures. This commit allows cpu field (= the 3rd field of boards.cfg) to be kept blank. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Andreas Bießmann <andreas.devel@googlemail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Sonic Zhang <sonic.zhang@analog.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
This commit is contained in:
committed by
Tom Rini
parent
d1db76f149
commit
a8b0f9b685
@@ -24,10 +24,7 @@ OBJCOPYFLAGS :=
|
||||
# so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
|
||||
# Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains
|
||||
# CPU-specific code.
|
||||
CPUDIR=arch/$(ARCH)/cpu/$(CPU)
|
||||
ifneq ($(srctree)/$(CPUDIR),$(wildcard $(srctree)/$(CPUDIR)))
|
||||
CPUDIR=arch/$(ARCH)/cpu
|
||||
endif
|
||||
CPUDIR=arch/$(ARCH)/cpu$(if $(CPU),/$(CPU),)
|
||||
|
||||
sinclude $(srctree)/arch/$(ARCH)/config.mk # include architecture dependend rules
|
||||
sinclude $(srctree)/$(CPUDIR)/config.mk # include CPU specific rules
|
||||
|
Reference in New Issue
Block a user