From 6f1d6e3085d60ed2ab44d29573cb5cf3e5f956c0 Mon Sep 17 00:00:00 2001 From: nakasima Date: Wed, 3 Dec 2008 04:11:21 +0000 Subject: [PATCH] =?UTF-8?q?=E9=96=8B=E7=99=BA=E7=94=A8=E3=83=96=E3=83=BC?= =?UTF-8?q?=E3=83=88ROM=E3=81=AE=E9=9B=9B=E5=BD=A2=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@69 b871894f-2f95-9b40-918c-086798483c85 --- .../build/bootrom/ts-dev/ARM11/Makefile | 48 +++++++++++++++ .../bootrom/build/bootrom/ts-dev/ARM11/main.c | 22 +++++++ .../build/bootrom/ts-dev/ARM9/Makefile | 50 ++++++++++++++++ .../bootrom/build/bootrom/ts-dev/ARM9/main.c | 22 +++++++ trunk/bootrom/build/bootrom/ts-dev/Makefile | 34 +++++++++++ .../bootrom/build/bootrom/ts-dev/rom/Makefile | 59 +++++++++++++++++++ trunk/bootrom/build/bootrom/ts-dev/rom/crt0.c | 41 +++++++++++++ 7 files changed, 276 insertions(+) create mode 100644 trunk/bootrom/build/bootrom/ts-dev/ARM11/Makefile create mode 100644 trunk/bootrom/build/bootrom/ts-dev/ARM11/main.c create mode 100644 trunk/bootrom/build/bootrom/ts-dev/ARM9/Makefile create mode 100644 trunk/bootrom/build/bootrom/ts-dev/ARM9/main.c create mode 100644 trunk/bootrom/build/bootrom/ts-dev/Makefile create mode 100644 trunk/bootrom/build/bootrom/ts-dev/rom/Makefile create mode 100644 trunk/bootrom/build/bootrom/ts-dev/rom/crt0.c diff --git a/trunk/bootrom/build/bootrom/ts-dev/ARM11/Makefile b/trunk/bootrom/build/bootrom/ts-dev/ARM11/Makefile new file mode 100644 index 0000000..5050d5e --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/ARM11/Makefile @@ -0,0 +1,48 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: CtrBrom - bootrom - ts-dev +# File: Makefile +# +# 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:: $ +# $Rev$ +# $Author$ +#---------------------------------------------------------------------------- + + +#BROM_DEF_LINK_SCATLD = TRUE + +SUBDIRS = + + +#---------------------------------------------------------------------------- + +TARGET_BIN = ts_dev11.padbin + +SRCS = \ + main.c \ + +#SRCDIR = # using default +#LCFILE = # using default + +include $(CTRBROM_ROOT)/build/buildtools/commondefs + +INSTALL_DIR = .. +INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN_BASENAME).axf + +#---------------------------------------------------------------------------- + +do-build: $(TARGETS) + + +include $(CTRBROM_ROOT)/build/buildtools/modulerules + + +#===== End of Makefile ===== diff --git a/trunk/bootrom/build/bootrom/ts-dev/ARM11/main.c b/trunk/bootrom/build/bootrom/ts-dev/ARM11/main.c new file mode 100644 index 0000000..45dc960 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/ARM11/main.c @@ -0,0 +1,22 @@ +/*---------------------------------------------------------------------------* + Project: TwlBrom - ts-dev + File: main.c + + 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:: $ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ +#include + +void BromMain( void ) +{ +} + diff --git a/trunk/bootrom/build/bootrom/ts-dev/ARM9/Makefile b/trunk/bootrom/build/bootrom/ts-dev/ARM9/Makefile new file mode 100644 index 0000000..eb927d9 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/ARM9/Makefile @@ -0,0 +1,50 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: CtrBrom - bootrom - ts-dev +# File: Makefile +# +# 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:: $ +# $Rev$ +# $Author$ +#---------------------------------------------------------------------------- + + +#BROM_DEF_LINK_SCATLD = TRUE + +BROM_PROC = ARM9 + +SUBDIRS = + + +#---------------------------------------------------------------------------- + +TARGET_BIN = ts_dev9.padbin + +SRCS = \ + main.c \ + +#SRCDIR = # using default +#LCFILE = # using default + +include $(CTRBROM_ROOT)/build/buildtools/commondefs + +INSTALL_DIR = .. +INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN_BASENAME).axf + +#---------------------------------------------------------------------------- + +do-build: $(TARGETS) + + +include $(CTRBROM_ROOT)/build/buildtools/modulerules + + +#===== End of Makefile ===== diff --git a/trunk/bootrom/build/bootrom/ts-dev/ARM9/main.c b/trunk/bootrom/build/bootrom/ts-dev/ARM9/main.c new file mode 100644 index 0000000..97377e8 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/ARM9/main.c @@ -0,0 +1,22 @@ +/*---------------------------------------------------------------------------* + Project: TwlBrom - ts-dev + File: main.c + + 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:: $ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ +#include + +void BromSpMain( void ) +{ +} + diff --git a/trunk/bootrom/build/bootrom/ts-dev/Makefile b/trunk/bootrom/build/bootrom/ts-dev/Makefile new file mode 100644 index 0000000..75a0861 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/Makefile @@ -0,0 +1,34 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: CtrBrom - build +# File: Makefile +# +# 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:: $ +# $Rev$ +# $Author$ +#---------------------------------------------------------------------------- + +include $(CTRBROM_ROOT)/build/buildtools/commondefs + + +#---------------------------------------------------------------------------- + +SUBDIRS = \ + ARM11 \ + ARM9 \ + rom \ + +#---------------------------------------------------------------------------- + +include $(CTRBROM_ROOT)/build/buildtools/modulerules + + +#===== End of Makefile ===== diff --git a/trunk/bootrom/build/bootrom/ts-dev/rom/Makefile b/trunk/bootrom/build/bootrom/ts-dev/rom/Makefile new file mode 100644 index 0000000..5e937c3 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/rom/Makefile @@ -0,0 +1,59 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: CtrBrom - bootrom - ts-dev +# File: Makefile +# +# 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:: $ +# $Rev$ +# $Author$ +#---------------------------------------------------------------------------- + +BROM_PROMGEN = TRUE + +SUBDIRS = + +LINCLUDES = ../include + +#---------------------------------------------------------------------------- + +TARGET_BIN = twl_bootrom.exo + +CRT0_O = + +SRCS = \ + crt0.c \ + +#SRCDIR = # using default +#LCFILE = # using default + +EXO_DEPENDS = \ + ../ARM11/bin/$(BROM_BUILDTYPE_ARM11)/ts_dev11.padbin \ + ../ARM9/bin/$(BROM_BUILDTYPE_ARM9)/ts_dev9.padbin \ + + +include $(CTRBROM_ROOT)/build/buildtools/commondefs + +INSTALL_TARGETS = $(TARGETS) +INSTALL_DIR = $(BROM_INSTALL_PROMDIR) + +#---------------------------------------------------------------------------- + +do-build: $(TARGETS) + + +include $(CTRBROM_ROOT)/build/buildtools/modulerules + + +crt0.c : $(EXO_DEPENDS) + touch crt0.c + + +#===== End of Makefile ===== diff --git a/trunk/bootrom/build/bootrom/ts-dev/rom/crt0.c b/trunk/bootrom/build/bootrom/ts-dev/rom/crt0.c new file mode 100644 index 0000000..770d5f9 --- /dev/null +++ b/trunk/bootrom/build/bootrom/ts-dev/rom/crt0.c @@ -0,0 +1,41 @@ +/*---------------------------------------------------------------------------* + Project: CtrBrom - bootrom - init + File: crt0.c + + 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:: $ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ +#include +#include +#include + +/*---------------------------------------------------------------------------* + Name: _start + + Description: Start up + + Arguments: None + + Returns: None. + *---------------------------------------------------------------------------*/ +asm void _start( void ) +{ + PRESERVE8 + + EXPORT CTR_BROM_ARM11 + EXPORT CTR_BROM_ARM9 + +CTR_BROM_ARM11 + INCBIN ../ARM11/bin/BROM_BUILDTYPE_ARM11/ts_dev11.padbin +CTR_BROM_ARM9 + INCBIN ../ARM9/bin/BROM_BUILDTYPE_ARM9/ts_dev9.padbin +}