diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-05-22 13:52:57 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-01 17:15:56 +1000 |
commit | d67d71873b1d5dc25120e88bf3cbe4d170dac81b (patch) | |
tree | 5fdf677e3528cc0785cfe9521e2fde0786eff085 | |
parent | f88b687a0d705001d4d9150d78328ca05b882225 (diff) | |
download | blackbird-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>
-rw-r--r-- | external/pflash/Makefile | 7 |
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 |