diff --git a/trunk/bootrom/build/buildtools/commondefs b/trunk/bootrom/build/buildtools/commondefs index 3fd5929..e8165f3 100644 --- a/trunk/bootrom/build/buildtools/commondefs +++ b/trunk/bootrom/build/buildtools/commondefs @@ -143,7 +143,7 @@ include $(CTRFIRM_ROOT)/build/buildtools/commondefs BROM_ROOT := $(call eupath,$(CTRBROM_ROOT)) BROM_BUILDTOOLSDIR := $(BROM_ROOT)/build/buildtools BROM_BUILDSETUPDIR := $(BROM_ROOT)/build/buildsetup -BROM_INCDIR := $(BROM_ROOT)/include +BROM_INCDIR := $(BROM_ROOT)/include BROM_TOOLSDIR := $(BROM_ROOT)/tools BROM_KEYSDIR := $(BROM_ROOT)/build/keys BROM_COMPONENTSDIR := $(BROM_ROOT)/components @@ -202,8 +202,6 @@ CTR_BUILDARCH ?= $(BROM_BUILDARCH) ### Compiler & Linker settings -#-include $(BROM_BUILDTOOLSDIR)/commondefs.cctype.$(CTR_CCTYPE) - # replace NitroSDK LCFILE_TEMPLATE ?= $(DEFAULT_BROM_LCFILE_TEMPLATE) LCFILE_SPEC ?= $(DEFAULT_BROM_LCFILE_SPEC) @@ -286,7 +284,7 @@ BROM_LDEPENDS_DBG ?= $(CTRBROM_ROOT)/build/libraries/os/common/os_printf.c \ # MY BUILD TOOLS # MAKENORFIRM := $(BROM_CTRFIRM_TOOLSDIR)/bin/makenorfirm.exe -MAKENANDFIRM := $(BROM_CTRFIRM_TOOLSDIR)/bin/makenandfirm.exe +MAKENANDFIRM := $(BROM_CTRFIRM_TOOLSDIR)/bin/makenandfirm.exe MAKEGCDFIRM := $(BROM_CTRFIRM_TOOLSDIR)/bin/makegcdfirm.exe OPENSSL := $(BROM_CTRFIRM_TOOLSDIR)/openssl/openssl.exe diff --git a/trunk/build/buildtools/commondefs b/trunk/build/buildtools/commondefs index ec8d631..9fd9f69 100644 --- a/trunk/build/buildtools/commondefs +++ b/trunk/build/buildtools/commondefs @@ -350,7 +350,7 @@ endef ROOT := $(call eupath,$(CTRSDK_ROOT)) CTR_BUILDTOOLSDIR := $(ROOT)/build/buildtools CTR_BUILDSETUPDIR := $(ROOT)/build/buildsetup -CTR_INCDIR := $(ROOT)/include +CTR_INCDIR := $(ROOT)/include CTR_TOOLSDIR := $(ROOT)/tools CTR_COMPONENTSDIR := $(ROOT)/components CTR_ADDINS ?= $(ROOT)/add-ins diff --git a/trunk/build/buildtools/commondefs.cygpath b/trunk/build/buildtools/commondefs.cygpath deleted file mode 100644 index 6d9c87e..0000000 --- a/trunk/build/buildtools/commondefs.cygpath +++ /dev/null @@ -1,152 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: CtrSDK -# File: commondefs -# -# Copyright 2008 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2008-09-29#$ -# $Rev: 8757 $ -# $Author: adachi_hiroaki $ -#---------------------------------------------------------------------------- -ifndef CTRFIRM_COMMONDEFS_CYGPATH_ -CTRFIRM_COMMONDEFS_CYGPATH_ = TRUE - -#---------------------------------------------------------------- -# -# cygpath -# - -CYGPATH ?= cygpath - -# 高速 cygpath は標準では無効 (make 3.80 では eval 関数に不具合があり動作しないため) -CYGPATH_NOCMD ?= FALSE - -# 自動判別する場合は上の定義を消す(動作未確認) -#ifndef CYGPATH_NOCMD -# -#MAKE_VERSION := $(shell $(MAKE) -v | $(HEAD) -1 | $(AWK) '{print $3}') -# -#ifndef MSYSTEM -# -#ifeq ($(shell(expr "$(MAKE_VERSION)" ">=" "3.81")),1) -#CYGPATH_NOCMD=TRUE -#else # MAKE_VERSION -#CYGPATH_NOCMD=FALSE -#endif # MAKE_VERSION -# -#endif # MSYSTEM -# -#endif # CYGPATH_NOCMD - - -# cygdrive path prefix を取得 - -ifeq ($(CYGPATH_MOUNTPOINT),) -CYGPATH_MOUNTPOINT := $(patsubst %/,%,$(dir $(shell $(CYGPATH) -u c:/))) -endif # CYGPATH_MOUNTPOINT - -ifeq ($(CYGPATH_NOCMD),TRUE) - -ifeq ($(CYGPATH_DRIVELIST),) -# 安全 -CYGPATH_DRIVELIST_ALL = $(shell DRIVES=`$(MOUNT) | $(GREP) 'type user' | $(CUT) -c1 | tr '\n' ' '` \ - && echo $${DRIVES} `echo $${DRIVES} | $(TR) '[a-z]' '[A-Z]'`) - -# 最小限で速い -CYGPATH_DRIVELIST_FAST = $(shell $(CYGPATH) -aw '$(CTRSDK_ROOT)c' \ - '$(CWFOLDER_CTR)c' '$(CWFOLDER_TWL)c' '$(CWFOLDER_NITRO)c' \ - '$(CTRSYSTEM_ROOT)c' \ - '$(IS_CTR_DIR)c' '$(IS_TWL_DIR)c' '$(IS_NITRO_DIR)c' \ - | $(CUT) -c1) - -CYGPATH_DRIVELIST := $(sort $(CYGPATH_DRIVELIST_FAST)) -#CYGPATH_DRIVELIST := $(sort $(CYGPATH_DRIVELIST_ALL)) -endif # CYGPATH_DRIVELIST - - -define cygpathm -$(strip $(eval VALUE=$(1))$(foreach DRIVE,$(CYGPATH_DRIVELIST),$(eval VALUE:=$$(patsubst $(CYGPATH_MOUNTPOINT)/$(DRIVE)/%,$(DRIVE):/%,$$(subst \,/,$$(VALUE)))))$(VALUE)) -endef # cygpathm - -define cygpathu -$(strip $(eval VALUE:=$(1))$(foreach DRIVE,$(CYGPATH_DRIVELIST),$(eval VALUE:=$$(patsubst $(DRIVE):/%,$(CYGPATH_MOUNTPOINT)/$(DRIVE)/%,$$(subst \,/,$$(VALUE)))))$(VALUE)) -endef # cygpathu - -define cygpathm_multi -$(foreach pathvar,$(1),$(call cygpathm,$(pathvar))) -endef # cygpathm_multi - -define cygpathu_multi -$(foreach pathvar,$(1),$(call cygpathu,$(pathvar))) -endef # cygpathu_multi - -define eupath -$(subst $(SPACE),\ ,$(call cygpathu,$(subst \ , ,$(1)))) -endef # eupath - -define empath -$(subst $(SPACE),\ ,$(call cygpathm,$(subst \ , ,$(1)))) -endef # empath - -else # CYGPATH_NOCMD - -define empath -$(subst $(SPACE),\ ,$(shell $(CYGPATH) -m $(subst \,\\,$(subst \ , ,$(1))))) -endef # empath - -ifdef MSYSTEM - -define eupath -$(call empath,$(1)) -endef #eupath - -define cygpathu -$(shell cygpath -m $(subst \,\\,$(subst \ , ,$(1)))) -endef - -else # MSYSTEM - -define eupath -$(subst $(SPACE),\ ,$(shell $(CYGPATH) -u $(subst \,\\,$(subst \ , ,$(1))))) -endef - -define cygpathu -$(shell cygpath -u $(subst \,\\,$(subst \ , ,$(1)))) -endef - -endif # MSYSTEM - -define cygpathm -$(shell cygpath -m $(subst \,\\,$(subst \ , ,$(1)))) -endef - -define cygpathu_multi -$(call cygpathu,$(1)) -endef - -define cygpathm_multi -$(call cygpathm,$(1)) -endef - -endif # CYGPATH_NOCMD - -export CYGPATH_MOUNTPOINT CYGPATH_DRIVELIST CYGPATH_NOCMD - -define encode_specialchar -$(subst $(SPACE),%20,$(1)) -endef - -define decode_specialchar -$(subst %20,$(SPACE),$(1)) -endef - -#---------------------------------------------------------------------------- -endif # CTRFIRM_COMMONDEFS_CYGPATH_ -#----- End of commondefs ----- diff --git a/trunk/build/buildtools/modulerules.cctype.RVCT b/trunk/build/buildtools/modulerules.cctype.RVCT index a31e957..50b55b9 100644 --- a/trunk/build/buildtools/modulerules.cctype.RVCT +++ b/trunk/build/buildtools/modulerules.cctype.RVCT @@ -35,9 +35,9 @@ endif vpath %.a $(ALIBVPATH) vpath %.o $(ALIBVPATH) -INCLUDE_DIRS = $(subst \ -I,\ ,$(addprefix -I,$(AINCLUDE_DIRS))) -LIBRARY_DIRS = $(subst \ -L,\ ,$(addprefix --userlibpath ,$(ALIBRARY_DIRS))) -LIBRARIES = $(subst \ -l,\ ,$(addprefix -l,$(ALIBRARIES))) +INCLUDE_DIRS = $(subst \ -I,\ ,$(addprefix -I,$(shell $(CYGPATH) -m $(AINCLUDE_DIRS)))) +LIBRARY_DIRS = $(subst \ -L,\ ,$(addprefix --userlibpath ,$(shell $(CYGPATH) -m $(ALIBRARY_DIRS)))) +LIBRARIES = $(subst \ -l,\ ,$(addprefix -l,$(shell $(CYGPATH) -m $(ALIBRARIES)))) INCLUDES = -I. $(INCLUDE_DIRS)