#---------------------------------------------------------------------------- # Project: Horizon # File: CTR.targetdefs.om # # Copyright (C)2009-2011 Nintendo Co., Ltd. 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. # # $Rev: 41755 $ #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # CTR platform definition #---------------------------------------------------------------------------- TargetSpecCTR. = extends $(TargetSpec) class TargetSpecCTR platform = CTR new(name) = this.name = $(name) return $(this) getMinimumLibraries(systemname, processor) = libs = switch($(systemname)) case Process libs += switch($(processor)) case MPCore value libnn_dbg \ libnn_err \ libnn_fnd \ libnn_init \ libnn_ndm \ libnn_nstd \ libnn_os \ libnn_srv \ libnn_svc \ libnn_svcDbg \ libnn_util \ librtport export return $(libs) getDefaultLibraries(systemname, processor) = libs = $(getMinimumLibraries $(systemname), $(processor)) switch($(systemname)) case Process libs += switch($(processor)) case MPCore value libgles2 \ libnn_ac \ libnn_applet \ libnn_boss \ libnn_camera \ libnn_cec \ libnn_cfg \ libnn_crypto \ libnn_cryptoRsa \ libnn_cx \ libnn_dbm \ libnn_dlp \ libnn_dsp \ libnn_erreula \ libnn_font \ libnn_friends \ libnn_fs \ libnn_gd \ libnn_gr \ libnn_gxlow \ libnn_hid \ libnn_hidlow \ libnn_http \ libnn_ir \ libnn_jpegmp \ libnn_math \ libnn_mic \ libnn_news \ libnn_ngc \ libnn_nwm \ libnn_phtsel \ libnn_pl \ libnn_ptm \ libnn_rdt \ libnn_snd \ libnn_socket \ libnn_ssl \ libnn_swkbd \ libnn_tpl \ libnn_ubl \ libnn_uds \ libnn_ulcd \ libnn_voicesel \ libnn_y2r export return $(libs) getHostIoLibraries(systemname, processor) = libs = switch($(systemname)) case Process libs += switch($(processor)) case MPCore value libnn_dev \ libnn_fshio \ libnn_hio \ libnn_midi export return $(libs) getPreloadProcesses(processor, moduledir) = switch($(processor)) case MPCore return $(EMPTY) return $(EMPTY) getMacroFlags(systemname, processor) = flags = -DNN_PROCESSOR_ARM flags += switch($(processor)) case MPCore value -DNN_PROCESSOR_ARM11MPCORE -DNN_PROCESSOR_ARM_V6 -DNN_PROCESSOR_ARM_VFP_V2 return $(flags) getDefaultRomSpecFile(hardware) = return Application.rsf getSystemFlags(systemname) = return $(EMPTY) #---------------------------------------------------------------------------- # Hardware definition #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- section private.spec = $(TargetSpecCTR.new $'CTR-TS') spec.hardware = CTR-TS spec.processors = MPCore spec.getSystemFlags(systemname) = private.flags = -DNN_DEBUGGER_KMC_PARTNER return $(flags) spec.getMacroFlags(systemname, processor) = return $(TargetSpecCTR::getMacroFlags $(systemname), $(processor)) -DNN_HARDWARE_CTR TARGET_MANAGER = $(TARGET_MANAGER.register $(spec)) export TARGET_MANAGER