mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-03-03 17:21:55 +00:00
[PATCH] Create include/asm-powerpc
The ppc and ppc64 trees are hopefully going to merge over time, so this patch begins the process by creating a place for the merging of the header files. Create include/asm-powerpc (and move linkage.h into it from asm-{ppc,ppc64} since we don't like empty directories). Modify the ppc and ppc64 Makefiles to cope. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
fb120da678
commit
45e2a6e4e5
@ -21,11 +21,13 @@ CC := $(CC) -m32
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic
|
LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic
|
||||||
CPPFLAGS += -Iarch/$(ARCH)
|
CPPFLAGS += -Iarch/$(ARCH) -Iinclude3
|
||||||
AFLAGS += -Iarch/$(ARCH)
|
AFLAGS += -Iarch/$(ARCH)
|
||||||
CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \
|
CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \
|
||||||
-ffixed-r2 -mmultiple
|
-ffixed-r2 -mmultiple
|
||||||
CPP = $(CC) -E $(CFLAGS)
|
CPP = $(CC) -E $(CFLAGS)
|
||||||
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
|
LINUXINCLUDE += -Iinclude3
|
||||||
|
|
||||||
CHECKFLAGS += -D__powerpc__
|
CHECKFLAGS += -D__powerpc__
|
||||||
|
|
||||||
@ -101,6 +103,7 @@ endef
|
|||||||
|
|
||||||
archclean:
|
archclean:
|
||||||
$(Q)$(MAKE) $(clean)=arch/ppc/boot
|
$(Q)$(MAKE) $(clean)=arch/ppc/boot
|
||||||
|
$(Q)rm -rf include3
|
||||||
|
|
||||||
prepare: include/asm-$(ARCH)/offsets.h checkbin
|
prepare: include/asm-$(ARCH)/offsets.h checkbin
|
||||||
|
|
||||||
@ -110,6 +113,12 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
|
|||||||
include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
|
include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
|
||||||
$(call filechk,gen-asm-offsets)
|
$(call filechk,gen-asm-offsets)
|
||||||
|
|
||||||
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
|
include/asm: include3/asm
|
||||||
|
include3/asm:
|
||||||
|
$(Q)if [ ! -d include3 ]; then mkdir -p include3; fi
|
||||||
|
$(Q)ln -fsn $(srctree)/include/asm-powerpc include3/asm
|
||||||
|
|
||||||
# Use the file '.tmp_gas_check' for binutils tests, as gas won't output
|
# Use the file '.tmp_gas_check' for binutils tests, as gas won't output
|
||||||
# to stdout and these checks are run even on install targets.
|
# to stdout and these checks are run even on install targets.
|
||||||
TOUT := .tmp_gas_check
|
TOUT := .tmp_gas_check
|
||||||
|
@ -55,6 +55,8 @@ LDFLAGS := -m elf64ppc
|
|||||||
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
|
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
|
||||||
CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none \
|
CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none \
|
||||||
-mcall-aixdesc
|
-mcall-aixdesc
|
||||||
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
|
CPPFLAGS += -Iinclude3
|
||||||
|
|
||||||
GCC_VERSION := $(call cc-version)
|
GCC_VERSION := $(call cc-version)
|
||||||
GCC_BROKEN_VEC := $(shell if [ $(GCC_VERSION) -lt 0400 ] ; then echo "y"; fi ;)
|
GCC_BROKEN_VEC := $(shell if [ $(GCC_VERSION) -lt 0400 ] ; then echo "y"; fi ;)
|
||||||
@ -112,6 +114,7 @@ all: $(KBUILD_IMAGE)
|
|||||||
|
|
||||||
archclean:
|
archclean:
|
||||||
$(Q)$(MAKE) $(clean)=$(boot)
|
$(Q)$(MAKE) $(clean)=$(boot)
|
||||||
|
$(Q)rm -rf include3
|
||||||
|
|
||||||
prepare: include/asm-ppc64/offsets.h
|
prepare: include/asm-ppc64/offsets.h
|
||||||
|
|
||||||
@ -121,6 +124,12 @@ arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
|
|||||||
include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
|
include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
|
||||||
$(call filechk,gen-asm-offsets)
|
$(call filechk,gen-asm-offsets)
|
||||||
|
|
||||||
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
|
include/asm: include3/asm
|
||||||
|
include3/asm:
|
||||||
|
$(Q)if [ ! -d include3 ]; then mkdir -p include3; fi;
|
||||||
|
$(Q)ln -fsn $(srctree)/include/asm-powerpc include3/asm
|
||||||
|
|
||||||
define archhelp
|
define archhelp
|
||||||
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
|
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
|
||||||
echo ' zImage.initrd- Compressed kernel image with initrd attached,'
|
echo ' zImage.initrd- Compressed kernel image with initrd attached,'
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#ifndef __ASM_LINKAGE_H
|
|
||||||
#define __ASM_LINKAGE_H
|
|
||||||
|
|
||||||
/* Nothing to see here... */
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user