Support external MMC path for OSP compatible apps.
authorHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 18 Mar 2013 04:15:04 +0000 (13:15 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 18 Mar 2013 04:23:57 +0000 (13:23 +0900)
Change-Id: I756afba91de1a49da66defb4920bdfd7515394a0
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
CMakeLists.txt
osp-env-config.c
packaging/osp-env-config.spec

index 01972db..315d1cf 100644 (file)
@@ -27,7 +27,7 @@ SET_TARGET_PROPERTIES(${this_target}
        CLEAN_DIRECT_OUTPUT 1
        )
 
-INSTALL(TARGETS ${this_target} DESTINATION lib
+INSTALL(TARGETS ${this_target} DESTINATION ${LIB_INSTALL_DIR}
                                PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ                      
                     GROUP_EXECUTE GROUP_READ
                     WORLD_EXECUTE WORLD_READ)
index fbfa70e..ba389df 100644 (file)
@@ -463,11 +463,11 @@ mount_osp_external_paths(const char* app_rootpath, const char* pkgid)
     char osp_ext_share2_pkgid_path[PATH_MAX] = {0, };
     struct _path_info mount_info[] = {
         { "/opt/storage/sdcard",  "./Storagecard/Media" },
-        //{ "/opt/storage/sdcard/osp/share",  "./ShareExt" },
-        //{ "/opt/storage/sdcard/osp/share2", "./Share2Ext" },
+        { "/opt/storage/sdcard/osp/share",  "./ShareExt" },
+        { "/opt/storage/sdcard/osp/share2", "./Share2Ext" },
         { "\0",  "./HomeExt" },
-        //{ "\0",  "./HomeExt/Share" },
-        //{ "\0",  "./HomeExt/Share2" },
+        { "\0",  "./HomeExt/Share" },
+        { "\0",  "./HomeExt/Share2" },
     };
     int i = 0;
 
@@ -475,7 +475,6 @@ mount_osp_external_paths(const char* app_rootpath, const char* pkgid)
     strncat(osp_ext_apps_pkgid_path, "apps/", 5);
     strncat(osp_ext_apps_pkgid_path, pkgid, strlen(pkgid));
 
-#if 0
     strncpy(osp_ext_share_pkgid_path, _EXT_OSP_HOME_PATH, strlen(_EXT_OSP_HOME_PATH));
     strncat(osp_ext_share_pkgid_path, "share/", 6);
     strncat(osp_ext_share_pkgid_path, pkgid, strlen(pkgid));
@@ -487,9 +486,6 @@ mount_osp_external_paths(const char* app_rootpath, const char* pkgid)
     strncpy(mount_info[3].src_path, osp_ext_apps_pkgid_path, strlen(osp_ext_apps_pkgid_path));
     strncpy(mount_info[4].src_path, osp_ext_share_pkgid_path, strlen(osp_ext_share_pkgid_path));
     strncpy(mount_info[5].src_path, osp_ext_share2_pkgid_path, strlen(osp_ext_share2_pkgid_path));
-#else
-    strncpy(mount_info[1].src_path, osp_ext_apps_pkgid_path, strlen(osp_ext_apps_pkgid_path));
-#endif
 
     if (chdir(app_rootpath) != 0)
     {
index 4c5c011..9a5602d 100755 (executable)
@@ -3,7 +3,7 @@ Summary:        osp application environment cofiguration serivce
 Version:       1.2.1.0
 Release:       2
 Group:         System/Libraries
-License:       Apache License, Version 2.0 or Flora
+License:       Apache-2.0 or Flora
 Source0:       %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
@@ -20,9 +20,9 @@ osp application environment cofiguration serivce
 %build 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %ifarch %{ix86}
-CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
 %else
-CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
 %endif
 
 # Call make instruction with smp support
@@ -43,5 +43,5 @@ cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2  %{buildroot}/usr/share/license
 %files
 %manifest osp-env-config.manifest
 /usr/share/license/%{name}
-/usr/lib/*.so*
+%{_libdir}/*.so*