diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-08-11 09:03:15 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-13 10:37:06 +0300 |
commit | 57073e27816f1f4215e372fa548f19bef300a6d7 (patch) | |
tree | 4f5c64e1e7bdc5e8e15805d7a1cb0c7269d4e9c3 /arch | |
parent | 68201fbbb04a030864f8560b05d43d8019f7f8df (diff) | |
download | linux-57073e27816f1f4215e372fa548f19bef300a6d7.tar.xz |
powerpc/Makefile: Construct the UTS_MACHINE value more concisely
Use the standard Kbuild trick of foo-y to make the construction of
UTC_MACHINE less verbose.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Makefile | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index c941d5360366..50d020ac0f48 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -43,20 +43,6 @@ NM := $(NM) --synthetic endif endif -ifeq ($(CONFIG_PPC64),y) -ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) -OLDARCH := ppc64le -else -OLDARCH := ppc64 -endif -else -ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) -OLDARCH := ppcle -else -OLDARCH := ppc -endif -endif - # BITS is used as extension for files which are available in a 32 bit # and a 64 bit version to simplify shared Makefiles. # e.g.: obj-y += foo_$(BITS).o @@ -68,7 +54,10 @@ else BITS := 32 endif -UTS_MACHINE := $(OLDARCH) +machine-y = ppc +machine-$(CONFIG_PPC64) += 64 +machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le +UTS_MACHINE := $(subst $(space),,$(machine-y)) ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) override LD += -EL |