101 lines
3.3 KiB
INI
101 lines
3.3 KiB
INI
|
#/*
|
|||
|
#*********************************************************************************************************
|
|||
|
#* MELIS
|
|||
|
#* the Easy Portable/Player Develop Kits
|
|||
|
#* makefile Module
|
|||
|
#*
|
|||
|
#* (c) Copyright 2006-2010, kevin.z China
|
|||
|
#* All Rights Reserved
|
|||
|
#*
|
|||
|
#* File : make.cfg
|
|||
|
#* By : kevin.z
|
|||
|
#* Version : v1.0
|
|||
|
#* Date : 2010-9-3 9:39
|
|||
|
#* Descript:
|
|||
|
#* Update : date auther ver notes
|
|||
|
#*********************************************************************************************************
|
|||
|
#*/
|
|||
|
|
|||
|
|
|||
|
ROOT = .
|
|||
|
SDKROOT = $(ROOT)/..
|
|||
|
|
|||
|
|
|||
|
#<23><><EFBFBD>뽻<EFBFBD><EBBDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
include $(SDKROOT)/config/${ARM_CROSS_TOOL}.CFG
|
|||
|
include $(SDKROOT)/bsp/$(BSP_PATH)/include/run_addr.cfg
|
|||
|
|
|||
|
|
|||
|
#ͷ<>ļ<EFBFBD>·<EFBFBD><C2B7><EFBFBD>б<EFBFBD>
|
|||
|
INCLUDES = -I$(ROOT) \
|
|||
|
-I$(SDKROOT)/config \
|
|||
|
-I$(SDKROOT)/bsp \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH) \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/include \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/include/interinc \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/common \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/init_dram \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/uart \
|
|||
|
-I$(SDKROOT)/bsp/$(BSP_PATH)/gpio
|
|||
|
|
|||
|
|
|||
|
LINK_SCT = --scatter=$(ROOT)/config/config.sct
|
|||
|
|
|||
|
#<23><><EFBFBD>ļ<EFBFBD><C4BC>б<EFBFBD>
|
|||
|
LIBS =
|
|||
|
TARGET = $(LICHEEPATH)/bin/fes1_$(ARCH).bin
|
|||
|
ifneq ($(ARCH1), )
|
|||
|
LICHEEOLDPATH = $(SDKROOT)/../../tools/pack/chips/$(ARCH1)
|
|||
|
TARGET1 = $(LICHEEOLDPATH)/bin/fes1_$(ARCH1).bin
|
|||
|
endif
|
|||
|
LOCALTARGET = __fes1_$(ARCH).axf
|
|||
|
|
|||
|
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>(<28><><EFBFBD>/<2F><><EFBFBD><EFBFBD>)
|
|||
|
TMPTARGET = $(ROOT)/fes1_origin.bin
|
|||
|
|
|||
|
#<23>г<EFBFBD><D0B3>ù<EFBFBD><C3B9><EFBFBD><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD>а<EFBFBD><D0B0><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼
|
|||
|
SRCDIRS := $(SRCDIRS) \
|
|||
|
$(ROOT) \
|
|||
|
$(SDKROOT)/bsp/$(BSP_PATH)/common \
|
|||
|
$(SDKROOT)/bsp/$(BSP_PATH)/init_dram \
|
|||
|
$(SDKROOT)/bsp/$(BSP_PATH)/uart \
|
|||
|
$(SDKROOT)/bsp/$(BSP_PATH)/gpio
|
|||
|
|
|||
|
INCLUDES := $(INCLUDES) \
|
|||
|
$(foreach dir,$(SRCDIRS),-I$(dir))
|
|||
|
|
|||
|
|
|||
|
ifeq ($(CROSSTOOL), ARMRVDS)
|
|||
|
|
|||
|
#===============================================================================
|
|||
|
#ʹ<><CAB9>RVDS<44><53><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#===============================================================================
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӽű<D3BD>
|
|||
|
LINK_SCT := $(LINK_SCT)
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD>
|
|||
|
CFLAGS := $(CFLAGS) -O2 --debug
|
|||
|
CFLAGS := $(CFLAGS) $(INCLUDES)
|
|||
|
|
|||
|
ifeq ($(FLAGS),SUN7I_HOMLET)
|
|||
|
CFLAGS :=$(CFLAGS) -D$(FLAGS)
|
|||
|
endif
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD>
|
|||
|
ASFLAGS := $(ASFLAGS) --debug --keep
|
|||
|
ASFLAGS := $(ASFLAGS) $(INCLUDES)
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD>
|
|||
|
LKFLAGS := $(LKFLAGS) --pd="-DRUN_ADDR=$(FES1_RUN_ADDR)" $(LINK_SCT)
|
|||
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD>
|
|||
|
LDFLAGS := $(LDFLAGS) --bin --output
|
|||
|
|
|||
|
else
|
|||
|
|
|||
|
#===============================================================================
|
|||
|
#ʹ<><CAB9>GNU-GCC<43><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#===============================================================================
|
|||
|
error:
|
|||
|
$(error GNU Cross-tool is invalid now!!!)
|
|||
|
|
|||
|
endif
|
|||
|
|