⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 linux 内核源代码
💻
字号:
## This file is subject to the terms and conditions of the GNU General Public# License.  See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 2001 - 2005  Tensilica Inc.## This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture# Core configuration.# (Use VAR=<xtensa_config> to use another default compiler.)variant-$(CONFIG_XTENSA_VARIANT_FSF)		:= fsfvariant-$(CONFIG_XTENSA_VARIANT_LINUX_CUSTOM)	:= customVARIANT = $(variant-y)export VARIANT# Platform configurationplatform-$(CONFIG_XTENSA_PLATFORM_XT2000)	:= xt2000platform-$(CONFIG_XTENSA_PLATFORM_ISS)		:= issPLATFORM = $(platform-y)export PLATFORM# temporarily until string.h is fixedKBUILD_CFLAGS += -ffreestandingKBUILD_CFLAGS += -pipe -mlongcallsKBUILD_DEFCONFIG := iss_defconfig# ramdisk/initrd support# You need a compressed ramdisk image, named ramdisk.gz in# arch/xtensa/boot/ramdiskcore-$(CONFIG_EMBEDDED_RAMDISK)	+= arch/xtensa/boot/ramdisk/# Test for cross compilingifneq ($(VARIANT),)  COMPILE_ARCH = $(shell uname -m)  ifneq ($(COMPILE_ARCH), xtensa)    ifndef CROSS_COMPILE      CROSS_COMPILE = xtensa_$(VARIANT)-    endif  endifendif#LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)head-y		:= arch/xtensa/kernel/head.ocore-y		+= arch/xtensa/kernel/ arch/xtensa/mm/ifneq ($(PLATFORM),)core-y		+= arch/xtensa/platform-$(PLATFORM)/endiflibs-y		+= arch/xtensa/lib/ $(LIBGCC)boot		:= arch/xtensa/bootarchinc		:= include/asm-xtensaarchprepare: $(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: zImagebzImage : zImagezImage zImage.initrd: vmlinux	$(Q)$(MAKE) $(build)=$(boot) $@CLEAN_FILES	+= arch/xtensa/vmlinux.lds                      \		   $(archinc)/platform $(archinc)/variant	\		   $(archinc)/.platformdefine archhelp  @echo '* zImage      - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'endef

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -