support iccarm

Signed-off-by: shilei <shilei91@huawei.com>
Change-Id: I923bd866ab285450102f750b21e0a09194cbd42d
This commit is contained in:
shilei
2022-07-12 10:50:00 +08:00
parent f3680cb715
commit 86622dd88a
5 changed files with 14 additions and 14 deletions
+8 -6
View File
@@ -115,12 +115,14 @@ lite_library("bundle") {
defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ]
}
cflags = [
"-fPIC",
"-Wall",
"-Wno-format",
]
cflags_cc = cflags
if (board_toolchain_type != "iccarm") {
cflags = [
"-fPIC",
"-Wall",
"-Wno-format",
]
cflags_cc = cflags
}
}
ndk_lib("bundle_notes") {
@@ -105,7 +105,7 @@ private:
AppInfoList *APP_InitAllAppInfo(void);
void APP_QueryAppInfo(const char *appDir, AppInfoList *list);
void APP_InsertAppInfo(char *filePath, AppInfoList *list);
void APP_FreeAllAppInfo(const AppInfoList *list);
void APP_FreeAllAppInfo(AppInfoList *list);
void InstallPreBundle(List<ToBeInstalledApp *> systemPathList, InstallerCallback installerCallback);
GtBundleInstaller *installer_;
@@ -49,7 +49,6 @@ SYSEX_SERVICE_INIT(Init);
const char *BundleMgrService::GetServiceName(Service *service)
{
(void)service;
return BMS_SERVICE;
}
@@ -67,7 +67,6 @@ BundleMgrSliteFeature::BundleMgrSliteFeature() : Feature(), identity_()
const char *BundleMgrSliteFeature::GetFeatureName(Feature *feature)
{
(void) feature;
return BMS_SLITE_FEATURE;
}
@@ -84,8 +83,6 @@ void BundleMgrSliteFeature::OnFeatureInitialize(Feature *feature, Service *paren
void BundleMgrSliteFeature::OnFeatureStop(Feature *feature, Identity identity)
{
(void) feature;
(void) identity;
}
BOOL BundleMgrSliteFeature::OnFeatureMessage(Feature *feature, Request *request)
@@ -31,7 +31,6 @@
#include "gt_bundle_parser.h"
#include "gt_extractor_util.h"
#include "jerryscript_adapter.h"
#include "los_tick.h"
#include "sys/stat.h"
#include "unistd.h"
#include "utils.h"
@@ -41,10 +40,13 @@ using namespace OHOS::ACELite;
namespace OHOS {
const uint8_t OPERATION_DOING = 200;
const uint8_t BMS_INSTALLATION_START = 101;
const uint8_t BMS_UNINSTALLATION_START = 104;
const uint8_t BMS_INSTALLATION_COMPLETED = 100;
#ifndef __LITEOS_M__
const uint8_t BMS_INSTALLATION_START = 101;
#endif
GtManagerService::GtManagerService()
{
installer_ = new GtBundleInstaller();
@@ -1055,7 +1057,7 @@ void GtManagerService::APP_InsertAppInfo(char *filePath, AppInfoList *list)
return;
}
void GtManagerService::APP_FreeAllAppInfo(const AppInfoList *list)
void GtManagerService::APP_FreeAllAppInfo(AppInfoList *list)
{
if (list == nullptr) {
return;