path: root/
diff options
authorMasahiro Yamada <>2014-06-24 22:10:52 +0900
committerTom Rini <>2014-07-07 19:42:34 -0400
commita8b0f9b685072e1d3acd01741e7db6833b445b2a (patch)
treeef92f75a73693017a4bc42e690eec2b0618d48cc /
parentd1db76f1494492fc1c13e3bfe036c6dfb942e8be (diff)
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 <> Cc: Andreas Bießmann <> Cc: Simon Glass <> Cc: Sonic Zhang <> Cc: Michal Simek <> Cc: Thomas Chou <> Cc: Stefan Kristiansson <>
Diffstat (limited to '')
1 files changed, 1 insertions, 4 deletions
diff --git a/ b/
index 05864aabb5..bd74732d48 100644
--- a/
+++ b/
@@ -24,10 +24,7 @@ OBJCOPYFLAGS :=
# so calculate CPUDIR before including ARCH/SOC/CPU files.
# Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains
# CPU-specific code.
-ifneq ($(srctree)/$(CPUDIR),$(wildcard $(srctree)/$(CPUDIR)))
+CPUDIR=arch/$(ARCH)/cpu$(if $(CPU),/$(CPU),)
sinclude $(srctree)/arch/$(ARCH)/ # include architecture dependend rules
sinclude $(srctree)/$(CPUDIR)/ # include CPU specific rules
OpenPOWER on IntegriCloud