You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
xtensa: move headers files to arch/xtensa/include
Move all header files for xtensa to arch/xtensa/include and platform and variant header files to the appropriate arch/xtensa/platforms/ and arch/xtensa/variants/ directories. Moving the files gets also rid of all uses of symlinks in the Makefile. This has been completed already for the majority of the architectures and xtensa is one out of six missing. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
+9
-19
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding
|
|||||||
|
|
||||||
KBUILD_CFLAGS += -pipe -mlongcalls
|
KBUILD_CFLAGS += -pipe -mlongcalls
|
||||||
|
|
||||||
|
vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
|
||||||
|
plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
|
||||||
|
|
||||||
|
ifeq ($(KBUILD_SRC),)
|
||||||
|
KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
|
||||||
|
else
|
||||||
|
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
|
||||||
|
endif
|
||||||
|
|
||||||
KBUILD_DEFCONFIG := iss_defconfig
|
KBUILD_DEFCONFIG := iss_defconfig
|
||||||
|
|
||||||
# ramdisk/initrd support
|
# ramdisk/initrd support
|
||||||
@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC)
|
|||||||
|
|
||||||
boot := arch/xtensa/boot
|
boot := arch/xtensa/boot
|
||||||
|
|
||||||
archinc := include/asm-xtensa
|
|
||||||
|
|
||||||
archprepare: $(archinc)/.platform
|
|
||||||
|
|
||||||
# Update processor variant and platform symlinks if something which affects
|
|
||||||
# them changed.
|
|
||||||
|
|
||||||
$(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf
|
|
||||||
@echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)'
|
|
||||||
$(Q)mkdir -p $(archinc)
|
|
||||||
$(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant
|
|
||||||
@echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)'
|
|
||||||
$(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
|
|
||||||
all: zImage
|
all: zImage
|
||||||
|
|
||||||
@@ -89,10 +83,6 @@ bzImage : zImage
|
|||||||
zImage zImage.initrd: vmlinux
|
zImage zImage.initrd: vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) $@
|
$(Q)$(MAKE) $(build)=$(boot) $@
|
||||||
|
|
||||||
CLEAN_FILES += arch/xtensa/vmlinux.lds \
|
|
||||||
$(archinc)/platform $(archinc)/variant \
|
|
||||||
$(archinc)/.platform
|
|
||||||
|
|
||||||
define archhelp
|
define archhelp
|
||||||
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
|
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
|
||||||
endef
|
endef
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include <asm/variant/core.h>
|
#include <variant/core.h>
|
||||||
OUTPUT_ARCH(xtensa)
|
OUTPUT_ARCH(xtensa)
|
||||||
ENTRY(_ResetVector)
|
ENTRY(_ResetVector)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include <asm/variant/core.h>
|
#include <variant/core.h>
|
||||||
#include <asm/regs.h>
|
#include <asm/regs.h>
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/cacheasm.h>
|
#include <asm/cacheasm.h>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#ifndef _XTENSA_ASMMACRO_H
|
#ifndef _XTENSA_ASMMACRO_H
|
||||||
#define _XTENSA_ASMMACRO_H
|
#define _XTENSA_ASMMACRO_H
|
||||||
|
|
||||||
#include <asm/variant/core.h>
|
#include <variant/core.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some little helpers for loops. Use zero-overhead-loops
|
* Some little helpers for loops. Use zero-overhead-loops
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
#ifndef _XTENSA_CACHE_H
|
#ifndef _XTENSA_CACHE_H
|
||||||
#define _XTENSA_CACHE_H
|
#define _XTENSA_CACHE_H
|
||||||
|
|
||||||
#include <asm/variant/core.h>
|
#include <variant/core.h>
|
||||||
|
|
||||||
#define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH
|
#define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH
|
||||||
#define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE
|
#define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
#define _XTENSA_CHECKSUM_H
|
#define _XTENSA_CHECKSUM_H
|
||||||
|
|
||||||
#include <linux/in6.h>
|
#include <linux/in6.h>
|
||||||
#include <asm/variant/core.h>
|
#include <variant/core.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* computes the checksum of a memory block at buff, length len,
|
* computes the checksum of a memory block at buff, length len,
|
||||||
@@ -13,11 +13,11 @@
|
|||||||
#define _XTENSA_COPROCESSOR_H
|
#define _XTENSA_COPROCESSOR_H
|
||||||
|
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
#include <asm/variant/tie.h>
|
#include <variant/tie.h>
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
|
||||||
#ifdef __ASSEMBLY__
|
#ifdef __ASSEMBLY__
|
||||||
# include <asm/variant/tie-asm.h>
|
# include <variant/tie-asm.h>
|
||||||
|
|
||||||
.macro xchal_sa_start a b
|
.macro xchal_sa_start a b
|
||||||
.set .Lxchal_pofs_, 0
|
.set .Lxchal_pofs_, 0
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user