summaryrefslogtreecommitdiffstats
path: root/external/pflash/Makefile
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-05-22 13:52:57 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-01 17:15:56 +1000
commitd67d71873b1d5dc25120e88bf3cbe4d170dac81b (patch)
tree5fdf677e3528cc0785cfe9521e2fde0786eff085 /external/pflash/Makefile
parentf88b687a0d705001d4d9150d78328ca05b882225 (diff)
downloadblackbird-skiboot-d67d71873b1d5dc25120e88bf3cbe4d170dac81b.tar.gz
blackbird-skiboot-d67d71873b1d5dc25120e88bf3cbe4d170dac81b.zip
pflash: Improve ARCH detection
Despite coding style, for make, the ARCH detection logic shouldn't have indenting. Done this way, the make builtin error function can be called without a 'fake' target. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/pflash/Makefile')
-rw-r--r--external/pflash/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/external/pflash/Makefile b/external/pflash/Makefile
index c28e359b..f951a580 100644
--- a/external/pflash/Makefile
+++ b/external/pflash/Makefile
@@ -1,13 +1,12 @@
ARCH=$(shell ./get_arch.sh $(CROSS_COMPILE))
ifeq ($(ARCH),ARCH_POWERPC)
- ARCH_OBJS = powerpc_io.o sfc-ctrl.o
+ARCH_OBJS = powerpc_io.o sfc-ctrl.o
else
ifeq ($(ARCH),ARCH_ARM)
- ARCH_OBJS = arm_io.o
+ARCH_OBJS = arm_io.o
else
-error_arch:
- $(error Unsupported architecture $(ARCH))
+$(error Unsupported architecture $(ARCH))
endif
endif
OpenPOWER on IntegriCloud