[Skiboot] [PATCH 2/4] pflash: Improve ARCH detection
Cyril Bur
cyril.bur at au1.ibm.com
Fri May 22 13:52:57 AEST 2015
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 at au1.ibm.com>
---
external/pflash/Makefile | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/external/pflash/Makefile b/external/pflash/Makefile
index c28e359..f951a58 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
--
1.9.1
More information about the Skiboot
mailing list