TwlIPL/build/systemMenu_RED/wlanfirm/Makefile
sato_masaki a386e82697 ・無線ファームファイルの新フォーマットに対応。
・NVRAMからの読み込みをARM9で行うようにする。
# TwlSDKのrevision 6168 以降を使用してください。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1470 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-05-22 09:24:40 +00:00

58 lines
1.9 KiB
Makefile

#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL
# 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_FIRM = SYSTEMMENU
override TARGET_PLATFORM := TWL
override TARGET_CODEGEN := ARM
override TWL_ARCHGEN := LIMITED
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
MY_FIRM_ROOT = $(TWLWIRELESS_ROOT)/binfile
MY_FIRM_ROOT_CYG = $(call eupath,$(MY_FIRM_ROOT))
MY_TITLE = HNCA
MY_FIRM = $(MY_FIRM_ROOT_CYG)/nwm_firm.bin
# FWファイルの先頭1バイトに入っているバージョン情報を取得
MY_VERSION_MAJOR = $(shell perl -e "open(IN,'$(MY_FIRM)');binmode(IN);seek(IN, 160 + 0, 0);read(IN, \$$buf, 1);print unpack("C", \$$buf);close(IN);")
MY_VERSION_MINOR = $(shell perl -e "open(IN,'$(MY_FIRM)');binmode(IN);seek(IN, 160 + 1, 0);read(IN, \$$buf, 1);print unpack("C", \$$buf);close(IN);")
MAKETAD_FLAGS += 0003000F484E4341 3031 $(MY_VERSION_MAJOR) WIRELESS_FW -v $(MY_VERSION_MINOR) -p
#----------------------------------------------------------------------------
MY_TAD = $(MY_TITLE).tad
INSTALL_TARGETS = $(MY_TAD)
INSTALL_DIR = $(ROOT)/build/tools/TwlNMenu/data
LDIRT_CLEAN = $(MY_TAD)
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
do-build : $(MY_TAD)
$(MY_TAD): $(MY_FIRM)
$(MAKETAD) $(call empath,$<) -s -d $(MAKETAD_FLAGS) -o $@
#===== End of Makefile =====