From 434b8013e0c7e7046adf0796ec007134a43b7e3f Mon Sep 17 00:00:00 2001 From: yosiokat Date: Fri, 18 Jan 2008 02:35:12 +0000 Subject: [PATCH] =?UTF-8?q?=E9=8D=B5=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=97?= =?UTF-8?q?=E3=81=9F=E9=96=8B=E7=99=BA=E7=94=A8=E3=82=B7=E3=82=B9=E3=83=86?= =?UTF-8?q?=E3=83=A0=E3=82=A2=E3=83=97=E3=83=AA=E3=81=8A=E3=82=88=E3=81=B3?= =?UTF-8?q?=E9=96=8B=E7=99=BA=E7=94=A8=E3=82=B7=E3=83=A7=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=82=A2=E3=83=97=E3=83=AA=E5=90=91=E3=81=91makerom.TWL?= =?UTF-8?q?=E3=82=92=E3=83=93=E3=83=AB=E3=83=89=E3=81=A7=E3=81=8D=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E8=BF=BD=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:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@487 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tools/Makefile | 2 + build/tools/makerom.TWL.shop/Makefile | 148 +++++++++ build/tools/makerom.TWL.shop/all.depend | 286 ++++++++++++++++++ .../tools/makerom.TWL.shop/ca_keys_shop_dev.c | 96 ++++++ build/tools/makerom.TWL.sys/Makefile | 148 +++++++++ build/tools/makerom.TWL.sys/all.depend | 286 ++++++++++++++++++ build/tools/makerom.TWL.sys/ca_keys_sys_dev.c | 96 ++++++ 7 files changed, 1062 insertions(+) create mode 100644 build/tools/makerom.TWL.shop/Makefile create mode 100644 build/tools/makerom.TWL.shop/all.depend create mode 100644 build/tools/makerom.TWL.shop/ca_keys_shop_dev.c create mode 100644 build/tools/makerom.TWL.sys/Makefile create mode 100644 build/tools/makerom.TWL.sys/all.depend create mode 100644 build/tools/makerom.TWL.sys/ca_keys_sys_dev.c diff --git a/build/tools/Makefile b/build/tools/Makefile index 9246e82d..100895b3 100644 --- a/build/tools/Makefile +++ b/build/tools/Makefile @@ -25,6 +25,8 @@ SUBDIRS = \ makenorfirm \ makegcdfirm \ makenandfirm \ + makerom.TWL.sys \ + makerom.TWL.shop #---------------------------------------------------------------------------- diff --git a/build/tools/makerom.TWL.shop/Makefile b/build/tools/makerom.TWL.shop/Makefile new file mode 100644 index 00000000..bd1d33f3 --- /dev/null +++ b/build/tools/makerom.TWL.shop/Makefile @@ -0,0 +1,148 @@ +#! make -f +#--------------------------------------------------------------------------- +# Project: TwlSDK - tools - makerom.TWL +# File: Makefile +# +# Copyright 2007 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$ +#--------------------------------------------------------------------------- +TARGET_PLATFORM = TWL + + +include $(TWLSDK_ROOT)/build/buildtools/commondefs + +SRCDIR = $(ROOT)/build/tools/makerom.TWL +INCDIR = $(SRCDIR) + +#SUBDIRS = $(addprefix $(SRCDIR)/,acsign aes digest) + +TARGETS = makerom.TWL.shop.exe + +SOURCES_C = makerom.c \ + optarg.c \ + misc.c \ + path.c \ + defval.c \ + container.c \ + spec_rom.c \ + spec_proc.c \ + spec_property.c \ + spec_nandAppProperty.c \ + spec_segment.c \ + file_sort.c \ + file_offset.c \ + out_romheader.c \ + out_filename.c \ + out_overlaytable.c \ + out_listfile.c \ + out_romimage.c \ + calc_digest_size.c \ + set_digest.c \ + set_signature.c \ + encrypt_aes.c \ + get_moduleParam.c + +SOURCES = $(addprefix $(SRCDIR)/,$(SOURCES_C) spec.l spec.y ) ca_keys_shop_dev.c +DEPEND_TARGETS = $(addprefix $(SRCDIR)/,$(SOURCES_C)) ca_keys_shop_dev.c +OBJECTS = $(SOURCES_C:.c=.o) spec.tab.o spec.yy.patched.o ca_keys_shop_dev.o + +HEADERS_H = container.h \ + format_nlist.h \ + makerom.h \ + path.h \ + spec_proc.h \ + spec_rom.h \ + defval.h \ + format_rom_private.h \ + misc.h \ + optarg.h \ + spec_property.h + +HEADERS = $(addprefix $(INCDIR)/,$(HEADERS_H)) + +LIBACSIGN = $(SRCDIR)/acsign/lib/X86/libacsign_x86.a +LIBAES = $(SRCDIR)/aes/lib/X86/libaes_x86.a +LIBDIGEST = $(SRCDIR)/digest/lib/X86/libdigest_x86.a + +#NITRO_DIGEST_DIR = $(NITRO_ADDINS)/digest/build/libraries/dgt +#MACROS += -I$(NITRO_DIGEST_DIR)/include \ +# -I$(NITRO_DIGEST_DIR)/src +MACROS = -I$(ROOT)/build/tools/makerom.TWL \ + -I$(ROOT)/include \ + -I$(ROOT)/include/twl/os/common \ + -I$(ROOT)/include/nitro/os/ARM9 + +#INSTALL_DIR = $(TWL_INSTALL_TOOLSDIR)/bin +#INSTALL_TARGETS = $(TARGETS) rom_header.template.sbin +INSTALL_DIR = $(TWL_IPL_RED_ROOT)/tools/bin +INSTALL_TARGETS = $(TARGETS) + +LDIRT_CLEAN = $(OBJECTS) $(TARGETS) version.h \ + spec.tab.c spec.tab.h spec.yy.c \ + spec.yy.patched.c + +include $(TWLSDK_ROOT)/build/buildtools/twl/modulerules.x86 + + +#---------------------------------------------------------------------------- +# build +#---------------------------------------------------------------------------- +do-build: $(TARGETS) + +$(TARGETS): version.h $(OBJECTS) $(LIBACSIGN) $(LIBAES) $(LIBDIGEST) + $(CC_X86) $+ -o $@ + +# 依存関係の更新 +renew-depend: + $(foreach target,$(DEPEND_TARGETS),$(CC_X86) $(MACROS) -MM -w -MF $(notdir $(target:.c=.dep)) -DSDK_WIN32 $(WARNING) -c $(target); ) + find -name '*.dep' | xargs cat > all.depend + rm -f *.dep + + +include ./all.depend + +spec.yy.c : $(SRCDIR)/spec.l +spec.tab.c : $(SRCDIR)/spec.y + +spec.yy.patched.o : WARNING += -Wno-unused-label -Wno-unused-function +spec.yy.patched.c : $(SRCDIR)/spec.yy.c + sed 's/^#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (1024*1024)/' $< > $@ + +makerom.o: version.h + +version.h: $(SOURCES) $(HEADERS) $(MAKEFILE) + @for i in $^ ; \ + do \ + date -r $$i +'#define SDK_DATE_OF_LATEST_FILE %Y%m%dUL'; \ + done | sort | tail -1 > $@ + + + +%.o: $(SRCDIR)/%.c +ifdef SILENT + echo $(MSG_COMPILE) $(notdir $<) +endif + $(COMPILE_C) + +%.o: $(SRCDIR)/%.cpp +ifdef SILENT + echo $(MSG_COMPILE) $(notdir $<) +endif + $(COMPILE_CXX) + +%.yy.c: $(SRCDIR)/%.l + $(LEX) -P$(basename $<)_yy -o$@ $< + +%.tab.c: $(SRCDIR)/%.y + $(YACC) -d -p $(notdir $(basename $<))_yy -b $(notdir $(basename $<)) $< + +%.tab.h: %.tab.c; diff --git a/build/tools/makerom.TWL.shop/all.depend b/build/tools/makerom.TWL.shop/all.depend new file mode 100644 index 00000000..f233dace --- /dev/null +++ b/build/tools/makerom.TWL.shop/all.depend @@ -0,0 +1,286 @@ +calc_digest_size.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +ca_keys_shop_dev.o: ca_keys_shop_dev.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes2.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h +container.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +defval.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h +encrypt_aes.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/encrypt_aes.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes2.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h +file_offset.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/file_offset.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +file_sort.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/file_sort.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +get_moduleParam.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/get_moduleParam.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +makerom.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/version.h +misc.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +optarg.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +out_filename.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_filename.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +out_listfile.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_listfile.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h +out_overlaytable.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_overlaytable.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +out_romheader.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_romheader.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/nitro/os/ARM9/china.h +out_romimage.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_romimage.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h +path.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +set_digest.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/set_digest.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/hmac.h +set_signature.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/set_signature.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/acsign.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/../../digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/ber.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/ber_type.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h +spec_nandAppProperty.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +spec_proc.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +spec_property.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_scfg.h +spec_rom.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h +spec_segment.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_segment.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h diff --git a/build/tools/makerom.TWL.shop/ca_keys_shop_dev.c b/build/tools/makerom.TWL.shop/ca_keys_shop_dev.c new file mode 100644 index 00000000..2451f2d8 --- /dev/null +++ b/build/tools/makerom.TWL.shop/ca_keys_shop_dev.c @@ -0,0 +1,96 @@ +/*---------------------------------------------------------------------------* + Project: TwlSDK - tools - makerom.TWL + File: ca_keys.c + + Copyright 2007 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 "misc.h" +#include "aes/include/aes2.h" + + +// 開発用ショップアプリ ROMヘッダ署名用公開鍵 +const u8 g_devPubKey_DER[ 0xa2 ] = { + 0x30, 0x81, 0x9F, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, + 0x05, 0x00, 0x03, 0x81, 0x8D, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xA7, 0x9F, 0x54, + 0xA0, 0xC7, 0x45, 0xAE, 0xF6, 0x63, 0xA7, 0x53, 0xB7, 0x0A, 0xCC, 0x0B, 0xCB, 0x65, 0xE1, 0x11, + 0xC6, 0x05, 0x15, 0xB5, 0x6E, 0xBD, 0xAC, 0x0C, 0xCA, 0xF4, 0x7C, 0x68, 0x7A, 0xF9, 0x0E, 0x5D, + 0x98, 0x5B, 0xC8, 0x4D, 0x22, 0x3B, 0xA3, 0xBE, 0x8B, 0x5B, 0x7F, 0x26, 0x44, 0x9F, 0xC4, 0x48, + 0x44, 0xB1, 0x32, 0xB7, 0xBE, 0x63, 0xBA, 0xD6, 0xC1, 0x10, 0xCE, 0xF6, 0xED, 0x47, 0x8F, 0xE1, + 0xFF, 0x7F, 0x5A, 0xD5, 0x5D, 0x94, 0x38, 0x2F, 0xA1, 0xD4, 0xEF, 0x82, 0xB1, 0x0D, 0xC4, 0x43, + 0xEC, 0xBE, 0x77, 0xB6, 0x82, 0x9C, 0xFA, 0x17, 0x87, 0x84, 0x82, 0x25, 0x46, 0xFB, 0xD6, 0x05, + 0xC8, 0x9A, 0x7E, 0xAD, 0x44, 0x40, 0x0D, 0x35, 0x9C, 0x45, 0x44, 0x64, 0x36, 0x61, 0x4B, 0xF7, + 0xE6, 0x31, 0x5C, 0x7D, 0x96, 0x73, 0xE8, 0xAC, 0xB4, 0xE3, 0x5E, 0xD1, 0x9D, 0x02, 0x03, 0x01, + 0x00, 0x01, +}; + +// 開発用ショップアプリ ROMヘッダ署名用秘密鍵 +const u8 g_devPrivKey_DER[ 0x263 ] = { + 0x30, 0x82, 0x02, 0x5D, 0x02, 0x01, 0x00, 0x02, 0x81, 0x81, 0x00, 0xA7, 0x9F, 0x54, 0xA0, 0xC7, + 0x45, 0xAE, 0xF6, 0x63, 0xA7, 0x53, 0xB7, 0x0A, 0xCC, 0x0B, 0xCB, 0x65, 0xE1, 0x11, 0xC6, 0x05, + 0x15, 0xB5, 0x6E, 0xBD, 0xAC, 0x0C, 0xCA, 0xF4, 0x7C, 0x68, 0x7A, 0xF9, 0x0E, 0x5D, 0x98, 0x5B, + 0xC8, 0x4D, 0x22, 0x3B, 0xA3, 0xBE, 0x8B, 0x5B, 0x7F, 0x26, 0x44, 0x9F, 0xC4, 0x48, 0x44, 0xB1, + 0x32, 0xB7, 0xBE, 0x63, 0xBA, 0xD6, 0xC1, 0x10, 0xCE, 0xF6, 0xED, 0x47, 0x8F, 0xE1, 0xFF, 0x7F, + 0x5A, 0xD5, 0x5D, 0x94, 0x38, 0x2F, 0xA1, 0xD4, 0xEF, 0x82, 0xB1, 0x0D, 0xC4, 0x43, 0xEC, 0xBE, + 0x77, 0xB6, 0x82, 0x9C, 0xFA, 0x17, 0x87, 0x84, 0x82, 0x25, 0x46, 0xFB, 0xD6, 0x05, 0xC8, 0x9A, + 0x7E, 0xAD, 0x44, 0x40, 0x0D, 0x35, 0x9C, 0x45, 0x44, 0x64, 0x36, 0x61, 0x4B, 0xF7, 0xE6, 0x31, + 0x5C, 0x7D, 0x96, 0x73, 0xE8, 0xAC, 0xB4, 0xE3, 0x5E, 0xD1, 0x9D, 0x02, 0x03, 0x01, 0x00, 0x01, + 0x02, 0x81, 0x80, 0x48, 0xCA, 0x9C, 0x49, 0xA5, 0xBF, 0xD1, 0x17, 0x16, 0x77, 0x97, 0x97, 0x29, + 0x8D, 0x2A, 0xA2, 0x0D, 0x80, 0x0B, 0xE3, 0xDE, 0x59, 0x6B, 0x0C, 0xC8, 0x39, 0x6A, 0xE4, 0xC7, + 0xFF, 0x2E, 0xB0, 0x18, 0x6F, 0xF0, 0x9D, 0x35, 0x5E, 0x6A, 0x80, 0xAF, 0x3D, 0x90, 0x85, 0x9C, + 0x1A, 0x3F, 0x58, 0x15, 0xB9, 0x7B, 0x58, 0xB9, 0x4A, 0xB9, 0x18, 0x68, 0xDE, 0xBE, 0x5B, 0xE1, + 0x1C, 0xBF, 0x85, 0xDF, 0x5F, 0x30, 0xFD, 0xD2, 0xEC, 0xC0, 0x77, 0x33, 0x62, 0x58, 0xEC, 0xC1, + 0x47, 0xF7, 0x41, 0xE8, 0x2B, 0x21, 0x83, 0xE0, 0x8E, 0xE0, 0xF4, 0x03, 0x5D, 0x07, 0x84, 0x91, + 0xFA, 0x5B, 0xD8, 0xD3, 0x47, 0x90, 0x6E, 0x7D, 0x81, 0x9C, 0x1A, 0xB3, 0x03, 0x2F, 0xBC, 0x1A, + 0x28, 0x01, 0xBB, 0x78, 0x33, 0x60, 0xD2, 0x32, 0x34, 0x09, 0xEE, 0x08, 0x35, 0x50, 0x7A, 0x02, + 0x77, 0xB9, 0x01, 0x02, 0x41, 0x00, 0xCF, 0x39, 0xB3, 0x95, 0xDB, 0x1A, 0x2C, 0xD5, 0x6B, 0x0E, + 0xD8, 0x7B, 0xEC, 0x36, 0x14, 0xC5, 0x6C, 0x6C, 0x03, 0x34, 0xCB, 0x8A, 0x03, 0xF0, 0x94, 0x9C, + 0x2E, 0xBB, 0xA4, 0x24, 0x85, 0x6F, 0x3C, 0x8B, 0xAD, 0x44, 0x88, 0xA1, 0xDC, 0x88, 0xFE, 0xE7, + 0x02, 0x24, 0xB3, 0x73, 0xEA, 0xD1, 0xF6, 0x61, 0x6A, 0x73, 0x00, 0x86, 0x0B, 0x67, 0xAB, 0x00, + 0xFB, 0xF7, 0xFD, 0x0D, 0x92, 0x91, 0x02, 0x41, 0x00, 0xCF, 0x13, 0x5C, 0xD1, 0x72, 0x12, 0xA5, + 0x1D, 0x3A, 0x86, 0xAB, 0xAC, 0x87, 0x11, 0x37, 0x6D, 0xEB, 0x90, 0x14, 0x41, 0x7B, 0xAA, 0x38, + 0x88, 0xFF, 0xAF, 0xAA, 0xAE, 0x12, 0x3E, 0x7C, 0x28, 0x59, 0xDB, 0xBE, 0xAE, 0x79, 0x20, 0x0C, + 0x4F, 0xE5, 0xAB, 0x97, 0x64, 0x0D, 0x1E, 0x31, 0x54, 0x10, 0xB0, 0x1C, 0x7E, 0x5A, 0x7B, 0x98, + 0x32, 0x00, 0xF7, 0xE0, 0x18, 0x15, 0x53, 0xFC, 0x4D, 0x02, 0x41, 0x00, 0x90, 0x5F, 0x38, 0x01, + 0xD0, 0x9B, 0x44, 0xDF, 0x0F, 0x6E, 0x51, 0x5E, 0xCC, 0xEB, 0xC4, 0xBE, 0xE2, 0xD1, 0xC1, 0xCE, + 0x17, 0x7C, 0x39, 0x50, 0x74, 0x88, 0xF7, 0x7A, 0x1D, 0x5A, 0xA0, 0x68, 0x26, 0x3B, 0x7D, 0xE4, + 0xC0, 0x78, 0x5C, 0x68, 0x49, 0x86, 0xF2, 0x14, 0x55, 0xBE, 0x0D, 0xBC, 0x68, 0x35, 0xE8, 0x6E, + 0xE4, 0xCF, 0x7E, 0xC4, 0xA3, 0xFB, 0xD4, 0x90, 0x2A, 0x8A, 0x39, 0x31, 0x02, 0x41, 0x00, 0x93, + 0x88, 0xE3, 0x17, 0xA2, 0xA3, 0xA0, 0x1A, 0x4C, 0x09, 0x89, 0x24, 0xD9, 0xF2, 0xAD, 0x40, 0x56, + 0x96, 0x07, 0xA8, 0x84, 0x18, 0x4A, 0x41, 0x69, 0x92, 0x5A, 0x13, 0xBD, 0x91, 0xE1, 0x59, 0xCA, + 0x73, 0xE2, 0xCE, 0x62, 0x24, 0x30, 0x41, 0x78, 0x8C, 0x21, 0xC7, 0xBA, 0x04, 0xE9, 0xF6, 0x50, + 0x11, 0x79, 0xAB, 0x98, 0x81, 0xF8, 0x74, 0x9F, 0xF5, 0xFB, 0x26, 0x8D, 0x83, 0x91, 0xFD, 0x02, + 0x40, 0x4D, 0xA4, 0x03, 0x7E, 0x00, 0xB6, 0xA2, 0xEE, 0x85, 0x19, 0x5C, 0xB3, 0xBE, 0x06, 0x48, + 0xF7, 0xA8, 0x27, 0xB3, 0xC9, 0xED, 0x60, 0xE1, 0x56, 0x0A, 0x3F, 0x8D, 0x64, 0x56, 0xBA, 0x2E, + 0xC3, 0xF6, 0x2D, 0x95, 0x38, 0x87, 0x58, 0xD6, 0x95, 0xF7, 0xA6, 0xD6, 0xEE, 0x85, 0x7D, 0xD7, + 0x93, 0x80, 0xF5, 0x1D, 0xBF, 0x5F, 0x3E, 0x3A, 0x22, 0x29, 0x18, 0xE5, 0x95, 0x73, 0x0D, 0xEA, + 0x42, +}; + + +// 製品アプリROMヘッダ署名用公開鍵 ※この鍵は偽物なので注意!! +const u8 g_caPubKey_DER[ 0xa2 ] = { + 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, + 0x05, 0x00, 0x03, 0x81, 0x8d, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xdf, 0x56, 0x30, + 0xc9, 0xae, 0x05, 0x55, 0xe8, 0xdf, 0xbe, 0xe6, 0xb9, 0x30, 0xb9, 0x76, 0x93, 0xb4, 0xc2, 0x20, + 0xe7, 0xae, 0x4c, 0x3e, 0xc3, 0xed, 0x27, 0xcf, 0x5d, 0x4f, 0xb5, 0x7d, 0xde, 0x38, 0xbc, 0xfe, + 0x25, 0x32, 0xd8, 0x23, 0x98, 0x52, 0xb5, 0xda, 0xf7, 0x39, 0xdc, 0xb3, 0x0a, 0x94, 0x7a, 0x2b, + 0x79, 0xe6, 0xe0, 0x4c, 0xbc, 0x21, 0xbd, 0x59, 0xb2, 0xc7, 0xf1, 0xc0, 0xf1, 0xfb, 0x29, 0x75, + 0xa1, 0x21, 0x93, 0x01, 0x29, 0x1c, 0x9a, 0xe1, 0x2d, 0x55, 0xfc, 0x7b, 0xb8, 0xcb, 0x07, 0x33, + 0xc5, 0x91, 0x0d, 0xc8, 0x45, 0x59, 0xef, 0xbe, 0x58, 0xc7, 0xc1, 0x1d, 0xd5, 0xf2, 0xcf, 0x1f, + 0xe0, 0x6d, 0x21, 0x00, 0xcd, 0x42, 0xd8, 0x84, 0x85, 0xe3, 0xb2, 0x02, 0x1a, 0xa5, 0x89, 0x02, + 0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49, 0x02, 0x03, 0x01, + 0x00, 0x01, +}; + diff --git a/build/tools/makerom.TWL.sys/Makefile b/build/tools/makerom.TWL.sys/Makefile new file mode 100644 index 00000000..37c1c103 --- /dev/null +++ b/build/tools/makerom.TWL.sys/Makefile @@ -0,0 +1,148 @@ +#! make -f +#--------------------------------------------------------------------------- +# Project: TwlSDK - tools - makerom.TWL +# File: Makefile +# +# Copyright 2007 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$ +#--------------------------------------------------------------------------- +TARGET_PLATFORM = TWL + + +include $(TWLSDK_ROOT)/build/buildtools/commondefs + +SRCDIR = $(ROOT)/build/tools/makerom.TWL +INCDIR = $(SRCDIR) + +#SUBDIRS = $(addprefix $(SRCDIR)/,acsign aes digest) + +TARGETS = makerom.TWL.sys.exe + +SOURCES_C = makerom.c \ + optarg.c \ + misc.c \ + path.c \ + defval.c \ + container.c \ + spec_rom.c \ + spec_proc.c \ + spec_property.c \ + spec_nandAppProperty.c \ + spec_segment.c \ + file_sort.c \ + file_offset.c \ + out_romheader.c \ + out_filename.c \ + out_overlaytable.c \ + out_listfile.c \ + out_romimage.c \ + calc_digest_size.c \ + set_digest.c \ + set_signature.c \ + encrypt_aes.c \ + get_moduleParam.c + +SOURCES = $(addprefix $(SRCDIR)/,$(SOURCES_C) spec.l spec.y ) ca_keys_sys_dev.c +DEPEND_TARGETS = $(addprefix $(SRCDIR)/,$(SOURCES_C)) ca_keys_sys_dev.c +OBJECTS = $(SOURCES_C:.c=.o) spec.tab.o spec.yy.patched.o ca_keys_sys_dev.o + +HEADERS_H = container.h \ + format_nlist.h \ + makerom.h \ + path.h \ + spec_proc.h \ + spec_rom.h \ + defval.h \ + format_rom_private.h \ + misc.h \ + optarg.h \ + spec_property.h + +HEADERS = $(addprefix $(INCDIR)/,$(HEADERS_H)) + +LIBACSIGN = $(SRCDIR)/acsign/lib/X86/libacsign_x86.a +LIBAES = $(SRCDIR)/aes/lib/X86/libaes_x86.a +LIBDIGEST = $(SRCDIR)/digest/lib/X86/libdigest_x86.a + +#NITRO_DIGEST_DIR = $(NITRO_ADDINS)/digest/build/libraries/dgt +#MACROS += -I$(NITRO_DIGEST_DIR)/include \ +# -I$(NITRO_DIGEST_DIR)/src +MACROS = -I$(ROOT)/build/tools/makerom.TWL \ + -I$(ROOT)/include \ + -I$(ROOT)/include/twl/os/common \ + -I$(ROOT)/include/nitro/os/ARM9 + +#INSTALL_DIR = $(TWL_INSTALL_TOOLSDIR)/bin +#INSTALL_TARGETS = $(TARGETS) rom_header.template.sbin +INSTALL_DIR = $(TWL_IPL_RED_ROOT)/tools/bin +INSTALL_TARGETS = $(TARGETS) + +LDIRT_CLEAN = $(OBJECTS) $(TARGETS) version.h \ + spec.tab.c spec.tab.h spec.yy.c \ + spec.yy.patched.c + +include $(TWLSDK_ROOT)/build/buildtools/twl/modulerules.x86 + + +#---------------------------------------------------------------------------- +# build +#---------------------------------------------------------------------------- +do-build: $(TARGETS) + +$(TARGETS): version.h $(OBJECTS) $(LIBACSIGN) $(LIBAES) $(LIBDIGEST) + $(CC_X86) $+ -o $@ + +# 依存関係の更新 +renew-depend: + $(foreach target,$(DEPEND_TARGETS),$(CC_X86) $(MACROS) -MM -w -MF $(notdir $(target:.c=.dep)) -DSDK_WIN32 $(WARNING) -c $(target); ) + find -name '*.dep' | xargs cat > all.depend + rm -f *.dep + + +include ./all.depend + +spec.yy.c : $(SRCDIR)/spec.l +spec.tab.c : $(SRCDIR)/spec.y + +spec.yy.patched.o : WARNING += -Wno-unused-label -Wno-unused-function +spec.yy.patched.c : $(SRCDIR)/spec.yy.c + sed 's/^#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (1024*1024)/' $< > $@ + +makerom.o: version.h + +version.h: $(SOURCES) $(HEADERS) $(MAKEFILE) + @for i in $^ ; \ + do \ + date -r $$i +'#define SDK_DATE_OF_LATEST_FILE %Y%m%dUL'; \ + done | sort | tail -1 > $@ + + + +%.o: $(SRCDIR)/%.c +ifdef SILENT + echo $(MSG_COMPILE) $(notdir $<) +endif + $(COMPILE_C) + +%.o: $(SRCDIR)/%.cpp +ifdef SILENT + echo $(MSG_COMPILE) $(notdir $<) +endif + $(COMPILE_CXX) + +%.yy.c: $(SRCDIR)/%.l + $(LEX) -P$(basename $<)_yy -o$@ $< + +%.tab.c: $(SRCDIR)/%.y + $(YACC) -d -p $(notdir $(basename $<))_yy -b $(notdir $(basename $<)) $< + +%.tab.h: %.tab.c; diff --git a/build/tools/makerom.TWL.sys/all.depend b/build/tools/makerom.TWL.sys/all.depend new file mode 100644 index 00000000..199d4240 --- /dev/null +++ b/build/tools/makerom.TWL.sys/all.depend @@ -0,0 +1,286 @@ +calc_digest_size.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +ca_keys_sys_dev.o: ca_keys_sys_dev.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes2.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h +container.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +defval.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h +encrypt_aes.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/encrypt_aes.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes2.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/aes/include/aes.h +file_offset.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/file_offset.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +file_sort.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/file_sort.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +get_moduleParam.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/get_moduleParam.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +makerom.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/version.h +misc.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +optarg.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +out_filename.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_filename.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +out_listfile.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_listfile.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h +out_overlaytable.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_overlaytable.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +out_romheader.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_romheader.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/optarg.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/nitro/os/ARM9/china.h +out_romimage.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/out_romimage.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h +path.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h +set_digest.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/set_digest.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/hmac.h +set_signature.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/set_signature.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/acsign.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/../../digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/ber.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/acsign/include/ber_type.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/digest/include/sha1.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/defval.h +spec_nandAppProperty.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +spec_proc.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h +spec_property.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_scfg.h +spec_rom.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h +spec_segment.o: \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_segment.c \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/container.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/misc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_proc.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_rom_private.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/include/twl/os/common/format_rom_certificate.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_rom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/path.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_property.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/spec_nandAppProperty.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/calc_digest_size.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/makerom.h \ + /cygdrive/c/antivs/TwlSDK_5_0pr2/TwlSDK/build/tools/makerom.TWL/format_nlist.h diff --git a/build/tools/makerom.TWL.sys/ca_keys_sys_dev.c b/build/tools/makerom.TWL.sys/ca_keys_sys_dev.c new file mode 100644 index 00000000..e08c7cd2 --- /dev/null +++ b/build/tools/makerom.TWL.sys/ca_keys_sys_dev.c @@ -0,0 +1,96 @@ +/*---------------------------------------------------------------------------* + Project: TwlSDK - tools - makerom.TWL + File: ca_keys.c + + Copyright 2007 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 "misc.h" +#include "aes/include/aes2.h" + + +// 開発用システムアプリ ROMヘッダ署名用公開鍵 +const u8 g_devPubKey_DER[ 0xa2 ] = { + 0x30, 0x81, 0x9F, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, + 0x05, 0x00, 0x03, 0x81, 0x8D, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xE9, 0x9E, 0xA7, + 0x9F, 0x59, 0x4D, 0xF4, 0xA7, 0x60, 0x04, 0xBD, 0x47, 0xF2, 0xB3, 0x64, 0xCD, 0x16, 0x79, 0xC1, + 0x47, 0x39, 0xF6, 0xA9, 0xF8, 0xEE, 0x1A, 0xD0, 0x72, 0xCF, 0x43, 0x97, 0x0C, 0x93, 0xA1, 0x38, + 0x4E, 0x13, 0x40, 0x6C, 0x10, 0x59, 0x43, 0xE2, 0x71, 0x29, 0x54, 0x14, 0x2C, 0xC5, 0xDA, 0x59, + 0x4D, 0xB4, 0x6A, 0xEF, 0x85, 0x61, 0x6F, 0x7F, 0x1C, 0x59, 0x34, 0x2C, 0xC6, 0x24, 0xF3, 0x7B, + 0xC3, 0xB7, 0x40, 0xD1, 0x46, 0xF8, 0x90, 0xB7, 0xC2, 0x98, 0x50, 0xAF, 0x95, 0x52, 0x42, 0xDB, + 0xAC, 0xD6, 0x7E, 0xA9, 0xC3, 0x3D, 0x1B, 0x51, 0x56, 0x07, 0x06, 0xD0, 0x0B, 0x01, 0xBB, 0x58, + 0x93, 0xEA, 0xA0, 0x2C, 0xC7, 0x7D, 0x6A, 0x31, 0x7E, 0xC9, 0xE2, 0xDA, 0xFE, 0x1F, 0x2E, 0x9D, + 0xA7, 0x54, 0x84, 0xDC, 0x28, 0xB9, 0x18, 0xEA, 0x16, 0xF2, 0x95, 0x55, 0x6D, 0x02, 0x03, 0x01, + 0x00, 0x01, +}; + +// 開発用システムアプリ ROMヘッダ署名用秘密鍵 +const u8 g_devPrivKey_DER[ 0x263 ] = { + 0x30, 0x82, 0x02, 0x5E, 0x02, 0x01, 0x00, 0x02, 0x81, 0x81, 0x00, 0xE9, 0x9E, 0xA7, 0x9F, 0x59, + 0x4D, 0xF4, 0xA7, 0x60, 0x04, 0xBD, 0x47, 0xF2, 0xB3, 0x64, 0xCD, 0x16, 0x79, 0xC1, 0x47, 0x39, + 0xF6, 0xA9, 0xF8, 0xEE, 0x1A, 0xD0, 0x72, 0xCF, 0x43, 0x97, 0x0C, 0x93, 0xA1, 0x38, 0x4E, 0x13, + 0x40, 0x6C, 0x10, 0x59, 0x43, 0xE2, 0x71, 0x29, 0x54, 0x14, 0x2C, 0xC5, 0xDA, 0x59, 0x4D, 0xB4, + 0x6A, 0xEF, 0x85, 0x61, 0x6F, 0x7F, 0x1C, 0x59, 0x34, 0x2C, 0xC6, 0x24, 0xF3, 0x7B, 0xC3, 0xB7, + 0x40, 0xD1, 0x46, 0xF8, 0x90, 0xB7, 0xC2, 0x98, 0x50, 0xAF, 0x95, 0x52, 0x42, 0xDB, 0xAC, 0xD6, + 0x7E, 0xA9, 0xC3, 0x3D, 0x1B, 0x51, 0x56, 0x07, 0x06, 0xD0, 0x0B, 0x01, 0xBB, 0x58, 0x93, 0xEA, + 0xA0, 0x2C, 0xC7, 0x7D, 0x6A, 0x31, 0x7E, 0xC9, 0xE2, 0xDA, 0xFE, 0x1F, 0x2E, 0x9D, 0xA7, 0x54, + 0x84, 0xDC, 0x28, 0xB9, 0x18, 0xEA, 0x16, 0xF2, 0x95, 0x55, 0x6D, 0x02, 0x03, 0x01, 0x00, 0x01, + 0x02, 0x81, 0x81, 0x00, 0xCF, 0x67, 0xAA, 0x3B, 0x1F, 0x26, 0xC5, 0x68, 0x7F, 0x27, 0x55, 0xFF, + 0xF5, 0x29, 0x6C, 0xF9, 0x62, 0xD5, 0xCF, 0x50, 0xF3, 0xD5, 0xD8, 0x4B, 0x06, 0xE0, 0xC9, 0x64, + 0xD4, 0x3B, 0x96, 0x73, 0x74, 0xF1, 0x71, 0xB2, 0x67, 0x07, 0x0F, 0xA9, 0x68, 0x06, 0x8B, 0x97, + 0x99, 0x70, 0x6A, 0xC4, 0xE1, 0x16, 0x9B, 0xA8, 0x0F, 0xDF, 0xCC, 0x2B, 0xE7, 0x37, 0xFC, 0x6A, + 0x67, 0x8B, 0x99, 0x9E, 0xD1, 0xDA, 0xCC, 0x68, 0xFC, 0xEB, 0x8D, 0xFE, 0x42, 0x84, 0x72, 0x88, + 0x05, 0xAF, 0x23, 0x32, 0x30, 0x1F, 0xFA, 0xCC, 0x67, 0x52, 0x93, 0x6C, 0xC1, 0x0A, 0xCF, 0xD6, + 0xD3, 0x5F, 0x75, 0xE9, 0x4D, 0x32, 0xC0, 0x31, 0x1B, 0xD4, 0xB5, 0x4B, 0xB4, 0x4E, 0xB0, 0x3E, + 0xD5, 0x6C, 0x3C, 0xDC, 0x57, 0xBB, 0x32, 0x24, 0x41, 0x9C, 0x79, 0xBE, 0xFC, 0xC0, 0x3B, 0x63, + 0x0C, 0x5D, 0xC6, 0xE5, 0x02, 0x41, 0x00, 0xF6, 0x77, 0x12, 0x72, 0x63, 0xD0, 0x9B, 0x22, 0xC6, + 0x4F, 0x19, 0x1E, 0x2A, 0xE1, 0x97, 0xCF, 0x28, 0xD3, 0xC3, 0x5E, 0xFB, 0x22, 0x57, 0xE5, 0x4F, + 0x90, 0x83, 0x53, 0xB0, 0x80, 0xD3, 0x2D, 0xFB, 0x77, 0x55, 0x52, 0x5E, 0x00, 0xD8, 0x72, 0x39, + 0x93, 0xF0, 0x89, 0x83, 0x97, 0xFB, 0x78, 0xD2, 0xB0, 0xCD, 0xED, 0x1C, 0x9B, 0x8F, 0x5D, 0xBD, + 0x00, 0x26, 0x37, 0xA1, 0xE5, 0x38, 0xE7, 0x02, 0x41, 0x00, 0xF2, 0xA8, 0x5D, 0x86, 0xE0, 0x33, + 0xC8, 0x93, 0x5C, 0xB9, 0xBD, 0xCF, 0x27, 0x70, 0x81, 0x79, 0xE1, 0x12, 0x82, 0x09, 0x64, 0xCB, + 0xDB, 0xCF, 0xBB, 0x52, 0xD3, 0x3F, 0x22, 0x90, 0x47, 0x23, 0xAA, 0x20, 0x7D, 0x92, 0xFD, 0xD6, + 0x58, 0x68, 0xF3, 0xB1, 0xFA, 0x7B, 0x81, 0x0D, 0x8F, 0x22, 0xDC, 0x84, 0x08, 0x91, 0x60, 0x07, + 0xE8, 0x98, 0x9A, 0x84, 0xDA, 0x4C, 0x24, 0xC7, 0x10, 0x8B, 0x02, 0x41, 0x00, 0xB3, 0xB0, 0xAA, + 0x75, 0x55, 0xCA, 0x90, 0x60, 0xB1, 0x1E, 0x98, 0x1C, 0x83, 0x7D, 0x08, 0x36, 0x53, 0xF8, 0xD8, + 0x77, 0x16, 0x37, 0xBA, 0xC7, 0x87, 0xD3, 0xBF, 0xBB, 0xB3, 0x72, 0xA9, 0x04, 0xDC, 0x52, 0xEB, + 0x94, 0xEA, 0xCE, 0x49, 0x00, 0x36, 0x74, 0x62, 0xA9, 0x8F, 0x94, 0xAE, 0x16, 0x2F, 0xDE, 0x11, + 0xB4, 0xEE, 0xE7, 0x87, 0x85, 0xFB, 0x36, 0xF1, 0xA6, 0x1B, 0xD5, 0xC8, 0x3F, 0x02, 0x40, 0x73, + 0x18, 0x72, 0xCC, 0x1F, 0x99, 0xD0, 0x40, 0x3D, 0x52, 0x08, 0x7A, 0xB2, 0x5D, 0x45, 0xBC, 0x76, + 0x8A, 0x1D, 0xCD, 0xB0, 0xD6, 0x94, 0xDB, 0x32, 0x21, 0xB5, 0xFB, 0x13, 0x3C, 0xD5, 0xD1, 0x4F, + 0xC7, 0x7B, 0x68, 0x76, 0x27, 0xED, 0xE5, 0x51, 0xF9, 0x90, 0x32, 0x76, 0x62, 0xE5, 0x0A, 0x87, + 0x07, 0xC5, 0x3C, 0x97, 0x0D, 0x09, 0x41, 0x20, 0xC1, 0x74, 0xFD, 0x7A, 0xD0, 0x44, 0xC3, 0x02, + 0x41, 0x00, 0xAF, 0xA3, 0x2C, 0x53, 0x8E, 0x8E, 0xA8, 0xE7, 0x36, 0xC0, 0x5C, 0x9E, 0x95, 0xEE, + 0xC1, 0x97, 0x02, 0x63, 0x7F, 0x3B, 0x4E, 0xB2, 0x0F, 0xF2, 0x7A, 0xBD, 0x57, 0x9C, 0x8B, 0x85, + 0xA8, 0x5D, 0x14, 0x3B, 0x7B, 0xF0, 0xBE, 0xFE, 0x0F, 0x8E, 0x4F, 0xD5, 0xB8, 0x49, 0xE8, 0x90, + 0xF5, 0x12, 0xBF, 0xB2, 0xD6, 0xE2, 0x78, 0x20, 0x26, 0x6C, 0x3F, 0x5C, 0xE4, 0x57, 0x6D, 0xE9, + 0xB4, 0x63, +}; + + +// 製品アプリROMヘッダ署名用公開鍵 ※この鍵は偽物なので注意!! +const u8 g_caPubKey_DER[ 0xa2 ] = { + 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, + 0x05, 0x00, 0x03, 0x81, 0x8d, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xdf, 0x56, 0x30, + 0xc9, 0xae, 0x05, 0x55, 0xe8, 0xdf, 0xbe, 0xe6, 0xb9, 0x30, 0xb9, 0x76, 0x93, 0xb4, 0xc2, 0x20, + 0xe7, 0xae, 0x4c, 0x3e, 0xc3, 0xed, 0x27, 0xcf, 0x5d, 0x4f, 0xb5, 0x7d, 0xde, 0x38, 0xbc, 0xfe, + 0x25, 0x32, 0xd8, 0x23, 0x98, 0x52, 0xb5, 0xda, 0xf7, 0x39, 0xdc, 0xb3, 0x0a, 0x94, 0x7a, 0x2b, + 0x79, 0xe6, 0xe0, 0x4c, 0xbc, 0x21, 0xbd, 0x59, 0xb2, 0xc7, 0xf1, 0xc0, 0xf1, 0xfb, 0x29, 0x75, + 0xa1, 0x21, 0x93, 0x01, 0x29, 0x1c, 0x9a, 0xe1, 0x2d, 0x55, 0xfc, 0x7b, 0xb8, 0xcb, 0x07, 0x33, + 0xc5, 0x91, 0x0d, 0xc8, 0x45, 0x59, 0xef, 0xbe, 0x58, 0xc7, 0xc1, 0x1d, 0xd5, 0xf2, 0xcf, 0x1f, + 0xe0, 0x6d, 0x21, 0x00, 0xcd, 0x42, 0xd8, 0x84, 0x85, 0xe3, 0xb2, 0x02, 0x1a, 0xa5, 0x89, 0x02, + 0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49, 0x02, 0x03, 0x01, + 0x00, 0x01, +}; +