diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-30 02:34:19 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-04 08:34:16 +0200 |
commit | e25567856667ff8472322e8c238389b62a29eaba (patch) | |
tree | 58e4b105747e705b3ebf42478df3a068f4890313 /arch/ppc/Makefile | |
parent | 2665fd16d0aa0f19602585de8d865a52a0cdf12a (diff) | |
download | barebox-e25567856667ff8472322e8c238389b62a29eaba.tar.gz barebox-e25567856667ff8472322e8c238389b62a29eaba.tar.xz |
ppc: rename arch/ppc/ to arch/powerpc/
In old days, Linux supported PowerPC with two arch directories,
arch/ppc/ and arch/ppc64/.
Linux commit 564ee7a5668e ("[PATCH] powerpc: Move arch/ppc*/kernel/vecemu.c
to arch/powerpc") started the migration to arch/powerpc/, and
commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc")
finished it.
This commit aligns the directory name with the current Linux.
I did 'git mv arch/ppc/ arch/powerpc/', and fixed up some hard-coded
arch/ppc paths.
Barebox has stuck to arch/ppc/ for a long time. To keep the backward
compatibility, I added the following to the top Makefile.
# Support ARCH=ppc for backward compatibility
ifeq ($(ARCH),ppc)
SRCARCH := powerpc
endif
Both ARCH=ppc and ARCH=powerpc work in the same way.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r-- | arch/ppc/Makefile | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile deleted file mode 100644 index aed106e11b..0000000000 --- a/arch/ppc/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -KBUILD_DEFCONFIG := p2020rdb_defconfig - -KBUILD_CPPFLAGS += -ffixed-r14 -m32 \ - -meabi -D __PPC__ \ - -fno-strict-aliasing - -KBUILD_CPPFLAGS += $(call cc-option,-mno-spe) -KBUILD_CPPFLAGS += $(call cc-option,-mspe=no) - -ifdef CONFIG_RELOCATABLE -KBUILD_CPPFLAGS += -fPIC -mrelocatable -endif - -ifdef CONFIG_MPC85xx -KBUILD_CPPFLAGS += -Wa,-me500x2 -msoft-float -mno-string -endif - -board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY) := pcm030 -board-$(CONFIG_P1010RDB) := freescale-p1010rdb -board-$(CONFIG_P2020RDB) := freescale-p2020rdb -board-$(CONFIG_P1022DS) := freescale-p1022ds -board-$(CONFIG_DA923RC) := owc-da923rc - -machine-$(CONFIG_ARCH_MPC5200) := mpc5xxx -machine-$(CONFIG_ARCH_MPC85XX) := mpc85xx - -TEXT_BASE = $(CONFIG_TEXT_BASE) - -KBUILD_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) - -# Add cleanup flags -ifndef CONFIG_MODULES -KBUILD_CPPFLAGS += -fdata-sections -ffunction-sections -LDFLAGS_barebox += --gc-sections -endif - -machdirs := $(patsubst %,arch/ppc/mach-%/,$(machine-y)) - -ifeq ($(KBUILD_SRC),) -KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs)) -else -KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) -endif - -archprepare: maketools - -PHONY += maketools - - -ifneq ($(board-y),) -BOARD := arch/ppc/boards/$(board-y)/ -else -BOARD := -endif - -ifneq ($(machine-y),) -MACH := arch/ppc/mach-$(machine-y)/ -else -MACH := -endif - -common-y += $(BOARD) $(MACH) arch/ppc/ - -ifdef CONFIG_MPC85xx -lds-y += $(MACH)/barebox.lds -else -lds-y += $(BOARD)/barebox.lds -endif |