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;
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));
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)
{
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)
%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
%files
%manifest osp-env-config.manifest
/usr/share/license/%{name}
-/usr/lib/*.so*
+%{_libdir}/*.so*