출처 : https://wiki.tizen.org/wiki/Multi-user_Tizen-platform-config
[Tizen Platform-specific configuration]
[Source packages]
Metadata: platform/core/appfw/tizen-platform-config
Gerrit: Project tizen-platform-config
GitWeb: platform/core/appfw/tizen-platform-config
Purpose: handling variables definition for a given profile/platform.
- naming: 'tizen-platform-config' created in gerrit:platform/core/appfw/tizen-platform-config
- could be overriden for a given profile or by an oem for device customization
Main source file in tizen-platform-config is tizen-platform.meta:
- bash compliant
- easy to read, comments allowed
- variables are all named TZ_XXXX_YYYY[_ZZZZ...], with XXXX being the domain (SYS, USER, SDK, ...) and YYYYY being the subject.
Rules for defining variables:
- syntax is bash compliant (comments, spaces, empty lines ... are accepted)
- a TZ variable may depend on another previously defined TZ variable
- a TZ variable may depend on some restricted dynamic variables (expressed in source file but only known at runtime)
Authorized dynamic variables are actually restricted to:
- HOME: the actual user home dir (read from /etc/passwd)
- USER: the actual user name (read from /etc/passwd)
The platform variables are defined in a single location and may be used in multiple environments :
- in source code (using the wrapper library that comes with tizen-platform-config for easier access and runtime resolution)
- in spec files using macros
- in spec files (post-install) by sourcing the /etc/tizen-platform.conf file which is bash compatible and using the $TZ_XXX vars
- in any shell script, at build time or run time
user Platform Metadata(https://wiki.tizen.org/wiki/Multi-user_Platform_Metadata)
############################################################
# SYSTEM VARIABLES #
############################################################
############# Base dirs #############
# Tizen 3 (single user):
#TZ_SYS_HOME=/home
#TZ_SYS_ROOT=/opt/home/root
#TZ_SYS_SHARE=/opt/share
#TZ_SYS_ETC=/opt/etc
#TZ_SYS_DATA=/opt/data
#TZ_SYS_BIN=/usr/bin
#TZ_SYS_SMACK=/opt/etc/smack
#TZ_SYS_STORAGE=/opt/storage
#TZ_SYS_USER_GROUP=app
# Tizen 3 (multi user):
TZ_SYS_HOME=/home
TZ_SYS_ROOT=/root
TZ_SYS_SHARE=/usr/share
TZ_SYS_ETC=/etc
TZ_SYS_DATA=/usr/data
TZ_SYS_BIN=/usr/bin
TZ_SYS_SMACK=/etc/smack
TZ_SYS_STORAGE=/usr/storage
TZ_SYS_USER_GROUP=users
TZ_SYS_GLOBALAPP_USER=tizenglobalapp
TZ_SYS_ADMIN_GROUP=system
# which user to use when applications start request are sent by system daemons
TZ_SYS_DEFAULT_USER=guest
############# Core & Framework dirs #############
# Tizen 3 (single user):
#TZ_SYS_DB=/opt/dbspace
#TZ_SYS_CONFIG=/opt/var/kdb
#TZ_SYS_RW_APP=/opt/apps
#TZ_SYS_RO_APP=/usr/apps
#TZ_SYS_APP_PREINSTALL=/opt/usr/apps/.preinstallWidgets
#TZ_SYS_RW_ICONS=/opt/share/icons
#TZ_SYS_RO_ICONS=/usr/share/icons
#TZ_SYS_RW_WIDGET=/opt/share/widget
#TZ_SYS_RO_WIDGET=/usr/share/widget
#TZ_SYS_RW_DESKTOP_APP=/opt/share/applications
#TZ_SYS_RO_DESKTOP_APP=/usr/share/applications
#TZ_SYS_RW_WRT_ENGINE=/opt/share/wrt-engine
#TZ_SYS_RO_WRT_ENGINE=/usr/share/wrt-engine
#TZ_SYS_RW_PACKAGES=/opt/share/packages
#TZ_SYS_RO_PACKAGES=/usr/share/packages
#TZ_SYS_WRT_CONF=/usr/etc/wrt
#TZ_SYS_WRT_PLUGINS_CONF=/usr/etc/wrt-plugins
#TZ_SYS_TIZEN_APIS_CONF=/usr/etc/tizen-apis
#TZ_SYS_ACE_CONF=/usr/etc/ace
#TZ_SYS_RW_UG=/opt/ug
#TZ_SYS_RO_UG=/usr/ug
# Tizen 3 (multi user):
TZ_SYS_APP_PREINSTALL=/opt/usr/apps/.preinstallWidgets
TZ_SYS_DB=/usr/dbspace
TZ_SYS_DEBUG_PORT=9222
TZ_SYS_CONFIG=/usr/kdb
TZ_SYS_RW_APP=/usr/apps
TZ_SYS_RO_APP=/usr/apps
TZ_SYS_RW_ICONS=/usr/share/icons
TZ_SYS_RO_ICONS=/usr/share/icons
TZ_SYS_RW_WIDGET=/usr/share/widget
TZ_SYS_RO_WIDGET=/usr/share/widget
TZ_SYS_RW_DESKTOP_APP=/usr/share/applications
TZ_SYS_RO_DESKTOP_APP=/usr/share/applications
TZ_SYS_RW_WRT_ENGINE=/usr/share/wrt-engine
TZ_SYS_RO_WRT_ENGINE=/usr/share/wrt-engine
TZ_SYS_RW_PACKAGES=/usr/share/packages
TZ_SYS_RO_PACKAGES=/usr/share/packages
TZ_SYS_WRT_PLUGINS_CONF=/etc/wrt-plugins
TZ_SYS_TIZEN_APIS_CONF=/etc/tizen-apis
TZ_SYS_ACE_CONF=/etc/ace
TZ_SYS_RW_UG=/usr/ug
TZ_SYS_RO_UG=/usr/ug
TZ_SYS_RUN=/var/run
############################################################
# SDK VARIABLES #
############################################################
TZ_SDK_USER_NAME=developer
TZ_SDK_HOME=/home/developer
TZ_SDK_TOOLS=$TZ_SDK_HOME/sdk_tools
############################################################
# USER VARIABLES #
############################################################
############# Base dirs #############
# Tizen 3 (single user):
#TZ_USER_NAME=app
#TZ_USER_HOME=$TZ_SYS_HOME/app
#TZ_USER_SHARE=/opt/usr/share
#TZ_USER_DATA=/opt/usr/data
#TZ_USER_ETC=/opt/usr/etc
#TZ_USER_LIVE=/opt/usr/live
#TZ_USER_UG=/opt/usr/ug
# Tizen 3 (multi user):
TZ_USER_NAME=$USER
TZ_USER_HOME=$HOME
TZ_USER_SHARE=$TZ_USER_HOME/share
TZ_USER_DATA=$TZ_USER_HOME/data
TZ_USER_ETC=$TZ_USER_HOME/etc
TZ_USER_LIVE=$TZ_USER_HOME/live
TZ_USER_UG=$TZ_USER_HOME/ug
############# Core & Framework dirs #############
# Tizen 3 (single user):
#TZ_USER_DB=/opt/usr/dbspace
#TZ_USER_CONFIG=/opt/var/kdb
#TZ_USER_APP=/opt/usr/apps
# Tizen 3 (multi user):
TZ_USER_DB=$TZ_USER_HOME/.applications/dbspace
TZ_USER_PACKAGES=$TZ_USER_HOME/.applications/manifest
TZ_USER_DESKTOP=$TZ_USER_HOME/.applications/desktop
TZ_USER_ICONS=$TZ_USER_HOME/.applications/icons
TZ_USER_CONFIG=$TZ_USER_HOME/kdb
TZ_USER_APP=$TZ_USER_HOME/apps_rw
############# Content dirs #############
# Tizen 3 (single user):
#TZ_USER_CONTENT=/opt/usr/media
#TZ_USER_CAMERA=$TZ_USER_CONTENT/Camera
#TZ_USER_VIDEOS=$TZ_USER_CONTENT/Videos
#TZ_USER_IMAGES=$TZ_USER_CONTENT/Images
#TZ_USER_SOUNDS=$TZ_USER_CONTENT/Sounds
#TZ_USER_GAMES=$TZ_USER_CONTENT/Games
#TZ_USER_DOCUMENTS=$TZ_USER_CONTENT/Documents
#TZ_USER_OTHERS=$TZ_USER_CONTENT/Others
#TZ_USER_DOWNLOADS=$TZ_USER_CONTENT/Downloads
# Tizen 3 (multi user):
TZ_USER_CONTENT=$TZ_USER_HOME/content
TZ_USER_CAMERA=$TZ_USER_CONTENT/Camera
TZ_USER_VIDEOS=$TZ_USER_CONTENT/Videos
TZ_USER_IMAGES=$TZ_USER_CONTENT/Images
TZ_USER_SOUNDS=$TZ_USER_CONTENT/Sounds
TZ_USER_GAMES=$TZ_USER_CONTENT/Games
TZ_USER_DOCUMENTS=$TZ_USER_CONTENT/Documents
TZ_USER_OTHERS=$TZ_USER_CONTENT/Others
TZ_USER_DOWNLOADS=$TZ_USER_CONTENT/Downloads
[Tizen] sdk error on Ubuntu 14.04 (0) | 2014.11.23 |
---|---|
[Tizen]Tizen Repository 추가 (0) | 2014.11.07 |
[Tizen] IVI Paltform SDK 설치 (0) | 2014.11.07 |
[Tizen]sdb 명령어 정리 (0) | 2014.11.06 |
[Tizen]Tizen systemctl 명령어 정리 (0) | 2014.11.06 |
댓글 영역