From 593ffe9d6f29bd379b38cd8a62ce4a1d0b4f0726 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Tue, 31 Mar 2009 12:19:42 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A3=BD=E5=93=81=E6=8A=80=E8=A1=93=E9=83=A8?= =?UTF-8?q?=E6=A4=9C=E6=9F=BB=E3=83=97=E3=83=AD=E3=82=B0=E3=83=A9=E3=83=A0?= =?UTF-8?q?=E5=90=91=E3=81=91=E3=81=AE=E5=A4=89=E6=9B=B4=20=E3=83=BBHIDDEN?= =?UTF-8?q?=E3=83=98=E3=83=83=E3=83=80=E3=81=AEsdmc.h=E3=82=92include?= =?UTF-8?q?=E3=81=9B=E3=81=9A=E3=81=AB=E3=80=81=E5=BF=85=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9=E3=82=92=E3=83=AD=E3=83=BC=E3=82=AB=E3=83=AB?= =?UTF-8?q?=E3=81=A7=E6=8C=81=E3=81=A4=E3=82=88=E3=81=86=E3=81=AB=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=80=82=20=E3=83=BBTwlIPL/components/armadillo=5Fuji?= =?UTF-8?q?=E3=80=80=E3=81=AB=E3=82=B3=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=8D?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2775 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tests/TestComponent/ARM7.TWL/Makefile | 17 +++++++++++++++-- .../tests/TestComponent/ARM7.TWL/src/kami_pxi.c | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/build/tests/TestComponent/ARM7.TWL/Makefile b/build/tests/TestComponent/ARM7.TWL/Makefile index 3223ea48..da5bad5c 100644 --- a/build/tests/TestComponent/ARM7.TWL/Makefile +++ b/build/tests/TestComponent/ARM7.TWL/Makefile @@ -23,6 +23,8 @@ override TWL_ARCHGEN = LIMITED TWL_NO_STD_PCHDR = True override TARGET_CODEGEN = ARM +TARGET_FIRM = SYSTEMMENU + ifndef TWLSDK_NOCRYPTO #---------------------------------------------------------------------------- @@ -45,7 +47,7 @@ CRT0_O = crt0.SCFG_NOLOCK.o CCFLAGS_OPT = -O4 -inline off #---------------------------------------------------------------------------- -include $(TWLSDK_ROOT)/build/buildtools/commondefs +include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs MACRO_FLAGS += -DSDK_ARM7COMP_LTD -DSDK_SEA -DSDK_NOINIT @@ -79,10 +81,21 @@ GLIBRARIES := $(filter-out libpm_sp$(TWL_LIBSUFFIX).a,$(GLIBRARIES)) LDEPENDS_NEF = $(TWL_LIBS) $(LLIBRARIES) +#-------------------------------- +# install target +#-------------------------------- +INSTALL_TARGETS = $(BINDIR)/$(TARGET_NAME).tef \ + $(BINDIR)/$(TARGET_NAME).TWL.FLX.sbin \ + $(BINDIR)/$(TARGET_NAME)_defs.TWL.FLX.sbin \ + $(BINDIR)/$(TARGET_NAME).TWL.LTD.sbin \ + $(BINDIR)/$(TARGET_NAME)_defs.TWL.LTD.sbin + +INSTALL_DIR = $(SYSMENU_COMPONENTSDIR)/$(TARGET_NAME)_uji/$(TWL_BUILDTYPE) + do-build: $(TARGETS) #---------------------------------------------------------------------------- -include $(TWLSDK_ROOT)/build/buildtools/modulerules +include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules #---------------------------------------------------------------------------- endif #ifndef TWLSDK_NOCRYPTO diff --git a/build/tests/TestComponent/ARM7.TWL/src/kami_pxi.c b/build/tests/TestComponent/ARM7.TWL/src/kami_pxi.c index 2484fbea..cb0e5ac4 100644 --- a/build/tests/TestComponent/ARM7.TWL/src/kami_pxi.c +++ b/build/tests/TestComponent/ARM7.TWL/src/kami_pxi.c @@ -27,7 +27,21 @@ #include #include #include -#include + +/* sdmc.h はFATFSライブラリ内の非公開ヘッダのため、必要な定義をローカルで持つ。 */ +//#include + +typedef enum { + SDMC_PORT_CARD = 0x400, + SDMC_PORT_NAND = 0x401 +}SDMC_PORT_NO; + +#define TRUE 1 /* Don't change */ +#define FALSE 0 /* Don't change */ + +typedef unsigned char byte; /* Don't change */ +typedef unsigned short word; /* Don't change */ +typedef unsigned long dword; /* Don't change */ #define BOOLEAN int