makefile

来自「Linux Kernel 2.6.9 for OMAP1710」· 代码 · 共 80 行

TXT
80
字号
## arch/h8300/Makefile## 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.## (C) Copyright 2002,2003 Yoshinori Sato <ysato@users.sourceforge.jp>#ifndef include-config-include $(TOPDIR)/.configendifplatform-$(CONFIG_CPU_H8300H)	:= h8300hplatform-$(CONFIG_CPU_H8S)	:= h8sPLATFORM := $(platform-y)board-$(CONFIG_H8300H_GENERIC)		:= genericboard-$(CONFIG_H8300H_AKI3068NET)	:= aki3068netboard-$(CONFIG_H8300H_H8MAX)		:= h8maxboard-$(CONFIG_H8300H_SIM)		:= genericboard-$(CONFIG_H8S_GENERIC)		:= genericboard-$(CONFIG_H8S_EDOSK2674)		:= edosk2674board-$(CONFIG_H8S_SIM)			:= genericBOARD := $(board-y)model-$(CONFIG_RAMKERNEL)	:= rammodel-$(CONFIG_ROMKERNEL)	:= romMODEL := $(model-y)cflags-$(CONFIG_CPU_H8300H)	:= -mhldflags-$(CONFIG_CPU_H8300H)	:= -mh8300helfcflags-$(CONFIG_CPU_H8S)	:= -msldflags-$(CONFIG_CPU_H8S)	:= -mh8300selfCFLAGS += $(cflags-y)CFLAGS += -mint32 -fno-builtinCFLAGS += -gCFLAGS += -D__linux__CFLAGS += -DUTS_SYSNAME=\"uClinux\"AFLAGS += -DPLATFORM=$(PLATFORM) -DMODEL=$(MODEL) $(cflags-y)LDFLAGS += $(ldflags-y)CROSS_COMPILE = h8300-elf-LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(CFLAGS) -print-libgcc-file-name)head-y := arch/$(ARCH)/platform/$(platform-y)/$(board-y)/crt0_$(model-y).ocore-y	+= arch/$(ARCH)/kernel/ \	   arch/$(ARCH)/mm/ \	   arch/$(ARCH)/platform/$(PLATFORM)/ \	   arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/libs-y	+= arch/$(ARCH)/lib/ $(LIBGCC)boot := arch/h8300/bootexport MODEL PLATFORM BOARDarchmrproper:archclean:	$(Q)$(MAKE) $(clean)=$(boot)prepare: include/asm-$(ARCH)/asm-offsets.hinclude/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \				   include/asm include/linux/version.h	$(call filechk,gen-asm-offsets)vmlinux.srec vmlinux.bin: vmlinux	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@define archhelp  echo  'vmlinux.bin  - Create raw binary'  echo  'vmlinux.srec - Create srec binary'endefCLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h

⌨️ 快捷键说明

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