#*************************************** **************************************
# Begin section (define)
# Define directory
#
# Project Root
Pxa_root_dir: = $ (DIR $ (abspath $ (lastword $ (makefile_list ))))
################### Above can locate the current directory ############## ##########################
$ (Info --------------- $ (pxa_root_dir )-------------)
Config_cc_development = N
# Project Source
Pxa_src_dir: = $ (pxa_root_dir)
Dummy: = $ (shell if [! -E $ (pxa_src_dir)/. config]; then touch $ (pxa_src_dir)/. config; FI ;)
Include $ (pxa_src_dir)/. config
################ Inclue current directory's. config ###################################
################## All patterns such as "config_platform_saar" used in makefile are defined in. config #########################
############### Where is the below directory? ######################################## ##########################
Pxa_src_pvk_dir: = $ (pxa_src_dir)/preview-kit ############ not used in makefile
Pxa_src_pvk_lnx_dir: = $ (pxa_root_dir)/.../pxa930-kernel/
Pxa_src_android_device_dir: = $ (pxa_src_dir)/.../../######### not used in makefile
Pxa_src_ipp_dir: = $ (pxa_src_dir)/IPP ###### not used in makefile
Pxa_src_stst_dir: = $ (pxa_src_dir)/gstreamer ####### not used
Pxa_src_um_dir: = $ (pxa_src_dir)/usage-model ############# not used
Pxa_src_gfx_dir: = $ (pxa_src_dir)/graphics ###### not used
Pxa_src_mpdc_dir: = $ (pxa_src_dir)/MPDC ####### not used
Pxa_src_xdb_dir: = $ (pxa_src_dir)/XDB ###### not used
############################ All abve directory can't be located in telephony root directory ##################################
###### Such config _ defined in. config this one "N "########################
Ifeq "$ (config_cpu_mhnl)" "Y"
Wtptp_dir_suffix = pxa300
Endif
Ifeq "$ (config_cpu_mhnlv) "" Y "############ also" N "#################### #########
Wtptp_dir_suffix = pxa310
Endif
Ifeq "$ (config_cpu_tavor) "" Y "############ config_cpu_tavor" Y "################### ##########
Wtptp_dir_suffix = pxa930
Endif
Pxa_src_wtptp_dir: = $ (pxa_src_dir)/wtptp _ $ (wtptp_dir_suffix)
###/Home/Sunrise/tavorvl9.2.003/src/pxalinux/Marvell/src/wtptp_pxa930 well not in telephony directory ################ ############
Ifeq "$ (config_gen_debug) "" Y "####### not set config_gen_debug ##########################
Dbg_rel_ver: = dbg
Else
Dbg_rel_ver: = rel ####### rel maybe means release version ########################## ##
Endif
########## Locate a rel directory "/home/Sunrise/tavorvl9.2.003/src/pxalinux/mavell/Rel "########## ########
# Host related dir
Ifeq "$ (config_cc_development) "" Y "##### this config defines in its own file" N "###################
Dummy: = $ (shell if [! -E $ home/xscalelinux]; then mkdir-p $ home/xscalelinux ;/
CP-Fr ../dbg $ home/xscalelinux; CP-Fr ../Rel $ home/xscalelinux; FI ;)
Pxa_host_dir: = $ (home)/xscalelinux/$ (dbg_rel_ver)/Host
Else
Pxa_host_dir: = $ (pxa_root_dir)/$ (dbg_rel_ver)/host ##### it takes effect ###########
Endif
Pxa_host_include_dir: = $ (pxa_host_dir)/include
Pxa_host_lib_dir: = $ (pxa_host_dir)/lib
# Target related dir
Ifeq "$ (config_cc_development) "" Y "##### defines in this file" N "######################## ###############
Pxa_target_dir: = $ (home)/xscalelinux/$ (dbg_rel_ver)/Target
Else
Pxa_target_dir: = $ (pxa_root_dir)/Output
Endif
Pxa_target_fs_dir: = $ (pxa_target_dir)/Marvell
Pxa_target_mod_dir: = $ (pxa_target_fs_dir)/lib/modules
Pxa_target_lib_dir: = $ (pxa_target_fs_dir)/usr/lib
Pxa_target_bin_dir: = $ (pxa_target_fs_dir)/usr/bin
Pxa_target_image_dir: = $ (pxa_target_dir )/
# End Section (define)
#*************************************** **************************************
######################################## ######################################
# Begin section (complier parameter)
#
# Compiler setting
#
Export arch: = arm
Ifeq "$ (config_bionic)" "Y"
Export cross_compile: = arm-Eabi-#### this cross_compile takes effect ################
Else
Export cross_compile: = arm-Linux-
Endif
#
# Include make variables (CC, Etc ...)
#
ASM: = $ (cross_compile)
Ld: = $ (cross_compile) LD
Cc: =$ (cross_compile) GCC
CPP: = $ (cross_compile) C ++
AR: = $ (cross_compile) Ar
Ranlib: = $ (cross_compile) ranlib
Strip: = $ (cross_compile) strip
Objcopy: = $ (cross_compile) objcopy
Objdump: = $ (cross_compile) objdump
Ccompiler = $ (cc)
Ifeq "$ (config_bionic)" "Y"
Include $ (pxa_src_dir)/bionic. Make #### bionic. Make supported ded #########
Pxa_host_include_dir: = $ (pxa_src_android_device_dir)/vendor/Marvell/external/ALSA-lib/include
# Pxa_host_include_dir: = $ (pxa_src_android_device_dir)/vendor/Marvell/external/ALSA-lib
Else
Libdir: =-L $ (pxa_host_lib_dir)-L $ (pxa_target_fs_dir)/lib-L $ (pxa_src_dir)
Endif
Commoncflags = $ (warningflag)-mcpu = iwmmxt-mtune = iwmmxt-mabi = aapcs-Linux-dlinux-D _ Linux _-fno-Exceptions
###### What's the above flags ?? #######################################
#
# Flag declare
#
Ifeq "$ (config_bionic)" "Y"
Ifeq "$ (config_gen_debug)" "Y" ##### no here just "N "##############
Warningflag =-waggregate-return-wmissing-noreturn-w-wall
Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
$ (Commoncflags) $ (bionics_incs)-I $ (pxa_src_pvk_lnx_dir)/ARCH/ARM/include
Aflags =-mcpu = iwmmxt
Else
######################################## #####################################
Warningflag =-waggregate-return-wmissing-noreturn-w-wall ##### it takes effect here ##############
Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
$ (Commoncflags) $ (bionics_incs)-I $ (pxa_src_pvk_lnx_dir)/ARCH/ARM/include
Aflags =-mcpu = iwmmxt
# Warningflag =-W
# Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
#-O2 $ (warningflag)-mcpu = iwmmxt-mtune = iwmmxt-mabi = aapcs-Linux
# Aflags =-mcpu = iwmmxt
Endif
Cflags + =-dbionic
################# The below will not impement ################## ##############
Else
Ifeq "$ (config_gen_debug)" "Y"
Warningflag =-waggregate-return-wmissing-noreturn-w-wall
Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
-G $ (warningflag)-mcpu = iwmmxt-mtune = iwmmxt-mabi = aapcs-Linux
Aflags =-mcpu = iwmmxt
Else
Warningflag =-waggregate-return-wmissing-noreturn-w-wall
Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
-G $ (warningflag)-mcpu = iwmmxt-mtune = iwmmxt-mabi = aapcs-Linux
Aflags =-mcpu = iwmmxt
# Warningflag =-W
# Cflags =-I $ (pxa_src_pvk_lnx_dir)/include-I $ (pxa_host_include_dir) $ (libdir )/
#-O2 $ (warningflag)-mcpu = iwmmxt-mtune = iwmmxt-mabi = aapcs-Linux
# Aflags =-mcpu = iwmmxt
Endif
Endif
#################### The above will not implement ############## #######################
Ifeq "$ (config_instrument)" "Y"
Cflags + =-finstrument-functions-rdynamic
Endif
. Suffixes:. O. S. S. cpp. c. I
. S. o:
$ (ASM) $ (aflags)-o $ @ $ <
. S. o:
$ (ASM) $ (aflags)-o $ @ $ <
. Cpp. O:
$ (CPP) $ (cflags)-c-o $ @ $ <
. C. O:
$ (CC) $ (cflags)-c-o $ @ $ <
. C. I:
$ (CC) $ (cflags)-ddiag_api_h-c-e-o $ @ $ <
Ifneq ($ (shell echo $ UID), 0)
Export sudo = sudo
Else
Endif
# End Section (complier parameter)
#*************************************** *************************************