From 523a31969200557435c1ac975af882f3d4724f16 Mon Sep 17 00:00:00 2001 From: miya Date: Mon, 27 Oct 2008 04:54:07 +0000 Subject: [PATCH] git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@31 7061adef-622a-194b-ae81-725974e89856 --- build/tools/sctools/Makefile | 2 +- build/tools/sctools/copy_dst/Makefile | 12 +++++++++--- build/tools/sctools/copy_org/Makefile | 16 +++++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/build/tools/sctools/Makefile b/build/tools/sctools/Makefile index ffdb626..631fde0 100644 --- a/build/tools/sctools/Makefile +++ b/build/tools/sctools/Makefile @@ -18,7 +18,7 @@ -SUBDIRS = copy_org copy_dst +SUBDIRS = my_armadillo.TWL copy_org copy_dst include $(TWLSDK_ROOT)/build/buildtools/commondefs diff --git a/build/tools/sctools/copy_dst/Makefile b/build/tools/sctools/copy_dst/Makefile index 2582a77..ec2e829 100644 --- a/build/tools/sctools/copy_dst/Makefile +++ b/build/tools/sctools/copy_dst/Makefile @@ -30,6 +30,7 @@ SRCS = main.c mfiler.c key.c font.c text.c mprintf.c logprintf.c \ TARGET_BIN = copy_dst.srl ROM_SPEC = copy_dst.rsf +TARGET_AUTOBOOT = ./bin/$(TWL_BUILDTYPE)/copy_dst_autoboot.srl ES_DIR = $(ROOT)/add-ins/es @@ -64,9 +65,11 @@ LLIBRARIES += libecx$(TWL_LIBSUFFIX).a \ MAKEROM_ROMROOT = ../files MAKEROM_ROMFILES = fanfare.32.wav ok.wav ng.wav cursor.wav - +MY_TWL_COMPONENTSDIR = ../my_armadillo.TWL/bin COMPONENT_NAME = armadillo -MAKEROM_ARM7_BASE = $(TWL_COMPONENTSDIR)/$(COMPONENT_NAME)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME) + +# MAKEROM_ARM7_BASE = $(MY_TWL_COMPONENTSDIR)/$(COMPONENT_NAME)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME) +MAKEROM_ARM7_BASE = $(MY_TWL_COMPONENTSDIR)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME) MAKEROM_ARM7 = $(MAKEROM_ARM7_BASE).$(TWL_ELF_EXT) @@ -84,7 +87,10 @@ MAKEROM := $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe #---------------------------------------------------------------------------- -do-build: $(TARGETS) +$(TARGET_AUTOBOOT): ./bin/$(TWL_BUILDTYPE)/$(TARGET_BIN) + ../bin/FakeRomHeader.secure.exe -c -f $< $@ + +do-build: $(TARGETS) $(TARGET_AUTOBOOT) #---------------------------------------------------------------------------- diff --git a/build/tools/sctools/copy_org/Makefile b/build/tools/sctools/copy_org/Makefile index 3fb09c6..5499097 100644 --- a/build/tools/sctools/copy_org/Makefile +++ b/build/tools/sctools/copy_org/Makefile @@ -29,6 +29,7 @@ SRCS = main.c key.c font.c text.c mprintf.c logprintf.c \ TARGET_BIN = copy_org.srl ROM_SPEC = copy_org.rsf +TARGET_AUTOBOOT = ./bin/$(TWL_BUILDTYPE)/copy_org_autoboot.srl ES_DIR = $(ROOT)/add-ins/es @@ -62,12 +63,14 @@ LLIBRARIES += libecx$(TWL_LIBSUFFIX).a \ MAKEROM_ROMROOT = ../files MAKEROM_ROMFILES = fanfare.32.wav ok.wav ng.wav cursor.wav - +MY_TWL_COMPONENTSDIR = ../my_armadillo.TWL/bin COMPONENT_NAME = armadillo -MAKEROM_ARM7_BASE = $(TWL_COMPONENTSDIR)/$(COMPONENT_NAME)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME) + +MAKEROM_ARM7_BASE = $(MY_TWL_COMPONENTSDIR)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME) MAKEROM_ARM7 = $(MAKEROM_ARM7_BASE).$(TWL_ELF_EXT) + include $(TWLWIFI_ROOT)/build/buildtools/commondefs include $(TWLSDK_ROOT)/build/buildtools/commondefs @@ -82,9 +85,16 @@ MAKEROM := $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe #---------------------------------------------------------------------------- -do-build: $(TARGETS) +$(TARGET_AUTOBOOT): ./bin/$(TWL_BUILDTYPE)/$(TARGET_BIN) + ../bin/FakeRomHeader.secure.exe -c -f $< $@ + +do-build: $(TARGETS) $(TARGET_AUTOBOOT) #---------------------------------------------------------------------------- include $(TWLWIFI_ROOT)/build/buildtools/modulerules include $(TWLSDK_ROOT)/build/buildtools/modulerules + + + +