mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
SDK_SYSMENU_BUILD でランチャー用に容量削減を行った NWM を追加。(TwlSDK r7367以降に対応)
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1902 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
b27288eaa7
commit
27c4d50e00
@ -35,6 +35,7 @@ SUBDIRS = reloc_info \
|
|||||||
wds \
|
wds \
|
||||||
errorLog \
|
errorLog \
|
||||||
TwlWireless \
|
TwlWireless \
|
||||||
|
nwm \
|
||||||
# acsign \
|
# acsign \
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -44,12 +44,15 @@ export ATH_WLAN_DRV_PATH
|
|||||||
export COM_TYPE
|
export COM_TYPE
|
||||||
|
|
||||||
export TARGET_FIRM
|
export TARGET_FIRM
|
||||||
export LIBDIR = ./lib.SYSMENU/$(TWL_BUILDTYPE)
|
export LIBDIR = ./lib.SYSMENU/$(TWL_BUILDTYPE)
|
||||||
export OBJDIR = ./obj.SYSMENU/$(TWL_BUILDTYPE)
|
export OBJDIR = ./obj.SYSMENU/$(TWL_BUILDTYPE)
|
||||||
|
export DEPENDDIR = ./depend.SYSMENU/$(TWL_BUILDTYPE)
|
||||||
export MACRO_FLAGS = -DSDK_SYSMENU_BUILD
|
export MACRO_FLAGS = -DSDK_SYSMENU_BUILD
|
||||||
|
|
||||||
export TWLSDK_INSTALL_ROOT = $(SYSMENU_INSTALL_LIBDIR)/../../..
|
export TWLSDK_INSTALL_ROOT = $(SYSMENU_INSTALL_LIBDIR)/../../..
|
||||||
|
|
||||||
|
export LDIRT_CLEAN = ./obj.SYSMENU ./depend.SYSMENU ./lib.SYSMENU
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
INSTALL_DIR = $(call eupath,$(TWLSDK_INSTALL_ROOT)/lib/TwlWireless/$(TWL_LIBTYPE))
|
INSTALL_DIR = $(call eupath,$(TWLSDK_INSTALL_ROOT)/lib/TwlWireless/$(TWL_LIBTYPE))
|
||||||
INSTALL_TARGETS = $(INSTALL_DIR)/libsdio_sp.SYSMENU$(TWL_LIBSUFFIX).a \
|
INSTALL_TARGETS = $(INSTALL_DIR)/libsdio_sp.SYSMENU$(TWL_LIBSUFFIX).a \
|
||||||
|
|||||||
127
build/libraries_sysmenu/nwm/ARM7/Makefile
Normal file
127
build/libraries_sysmenu/nwm/ARM7/Makefile
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - WM - libraries
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2003 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
|
||||||
|
|
||||||
|
SUBDIRS =
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
override TARGET_PLATFORM = TWL
|
||||||
|
|
||||||
|
# Codegen for sub processer
|
||||||
|
TWL_PROC = ARM7
|
||||||
|
|
||||||
|
# build ARM & THUMB libraries
|
||||||
|
TWL_CODEGEN ?= ALL
|
||||||
|
|
||||||
|
MACRO_FLAGS = -DSDK_SYSMENU_BUILD
|
||||||
|
|
||||||
|
NWM_SRCDIR = $(ROOT)/build/libraries/wm/ARM7.TWL/nwm
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# INCDIR 注意点:
|
||||||
|
INCDIR = $(NWM_SRCDIR)/inc $(NWM_SRCDIR)/../../inc \
|
||||||
|
$(NWM_SRCDIR)/../../ARM7/inc $(NWM_SRCDIR)/../../common.TWL/inc \
|
||||||
|
$(NWM_SRCDIR)/../common/inc \
|
||||||
|
$(NWM_SRCDIR)/../../../wpa/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/wlan/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/os/twl/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/os/twl/library/athioctl/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/os/nitro/include \
|
||||||
|
$(TWLWIRELESS_ROOT)/host/os/nitro/library/athioctl/include \
|
||||||
|
$(ROOT)/build/libraries/spi/ARM7/include
|
||||||
|
|
||||||
|
SRCDIR_ = ../../ARM7/src src ../../common.TWL/src
|
||||||
|
|
||||||
|
SRCDIR = $(addprefix $(NWM_SRCDIR)/, $(SRCDIR_))
|
||||||
|
|
||||||
|
SRCS_ARM7 = nwmsp_system.c \
|
||||||
|
nwmsp_cmd.c \
|
||||||
|
nwmsp_event.c \
|
||||||
|
nwmsp_wlan_handler.c \
|
||||||
|
nwmsp_event_handler.c \
|
||||||
|
nwmsp_beaconinfo.c
|
||||||
|
|
||||||
|
SRCS_COMMON = nwm_loaddev.c \
|
||||||
|
nwm_unloaddev.c \
|
||||||
|
nwm_open.c \
|
||||||
|
nwm_close.c \
|
||||||
|
nwm_startscan.c \
|
||||||
|
nwm_connect.c \
|
||||||
|
nwm_disconnect.c \
|
||||||
|
nwm_sendframe.c \
|
||||||
|
nwm_recvframe.c \
|
||||||
|
nwm_setwepkey.c \
|
||||||
|
nwm_setpowersave.c \
|
||||||
|
nwm_wpa.c \
|
||||||
|
nwm_qos.c \
|
||||||
|
nwm_reset.c \
|
||||||
|
nwm_installfirm.c
|
||||||
|
|
||||||
|
SRCS = $(addprefix $(NWM_SRCDIR)/src/, $(SRCS_ARM7)) \
|
||||||
|
$(addprefix $(NWM_SRCDIR)/../../common.TWL/src/, $(SRCS_COMMON))
|
||||||
|
|
||||||
|
TARGET_LIB = libnwm_sp.SYSMENU$(TWL_LIBSUFFIX).a
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# DEBUG版ビルドの場合、RELEASE版でビルドして
|
||||||
|
# DEBUG版のライブラリを装います。
|
||||||
|
|
||||||
|
ifdef TARGET_DEBUG
|
||||||
|
TWL_BUILD_TYPE = RELEASE
|
||||||
|
else
|
||||||
|
ifdef TWL_DEBUG
|
||||||
|
TWL_BUILD_TYPE = RELEASE
|
||||||
|
CCFLAGS += -DNWM_DEBUG
|
||||||
|
else
|
||||||
|
ifdef NITRO_DEBUG
|
||||||
|
TWL_BUILD_TYPE = RELEASE
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Default では LIMITED のライブラリを作成します
|
||||||
|
TWL_ARCHGEN ?= LIMITED
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# 新無線用のデバッグフラグなど
|
||||||
|
|
||||||
|
ifdef NWM_DEBUG
|
||||||
|
CCFLAGS += -DNWM_DEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
INSTALL_TARGETS = $(TARGETS)
|
||||||
|
INSTALL_DIR = $(SYSMENU_INSTALL_LIBDIR)
|
||||||
|
GDIRT_INSTALLED = $(addprefix $(INSTALL_DIR)/,$(notdir $(INSTALL_TARGETS)))
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
|
|
||||||
40
build/libraries_sysmenu/nwm/Makefile
Normal file
40
build/libraries_sysmenu/nwm/Makefile
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - libraries - wm
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2003 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
|
||||||
|
|
||||||
|
TARGET_PLATFORM := TWL
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#SUBDIRS = $(GSUBDIRS)
|
||||||
|
|
||||||
|
ifneq ($(filter TWL,$(TARGET_PLATFORM_LIST)),)
|
||||||
|
ifeq ($(TWLSDK_PRIVATE),TRUE)
|
||||||
|
SUBDIRS_P += ARM7
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
Loading…
Reference in New Issue
Block a user