mirror of
https://github.com/openharmony/vendor_lockzhiner.git
synced 2026-07-01 21:34:03 -04:00
!18 FIX: 删除hal_sys_param.c多余接口
Merge pull request !18 from cheng_jinsong/0913_param
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# Copyright (c) 2022 FuZhou Lockzhiner Electronic Co., Ltd. All rights reserved.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
static_library("hal_sysparam") {
|
||||
sources = [ "hal_sys_param.c" ]
|
||||
include_dirs = [
|
||||
"//base/startup/syspara_lite/hals",
|
||||
"//utils/native/lite/include",
|
||||
]
|
||||
}
|
||||
@@ -1,137 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2022 FuZhou Lockzhiner Electronic Co., Ltd. All rights reserved.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "hal_sys_param.h"
|
||||
|
||||
static const char OHOS_DEVICE_TYPE[] = {"****"};
|
||||
static const char OHOS_DISPLAY_VERSION[] = {"OpenHarmony 3.0 LTS"};
|
||||
static const char OHOS_MANUFACTURE[] = {"****"};
|
||||
static const char OHOS_BRAND[] = {"****"};
|
||||
static const char OHOS_MARKET_NAME[] = {"****"};
|
||||
static const char OHOS_PRODUCT_SERIES[] = {"****"};
|
||||
static const char OHOS_PRODUCT_MODEL[] = {"****"};
|
||||
static const char OHOS_SOFTWARE_MODEL[] = {"****"};
|
||||
static const char OHOS_HARDWARE_MODEL[] = {"****"};
|
||||
static const char OHOS_HARDWARE_PROFILE[] = {"aout:true,display:true"};
|
||||
static const char OHOS_BOOTLOADER_VERSION[] = {"bootloader"};
|
||||
static const char OHOS_ABI_LIST[] = {"****"};
|
||||
static const char OHOS_SERIAL[] = {"1234567890"}; // provided by OEM.
|
||||
static const int OHOS_FIRST_API_VERSION = 1;
|
||||
|
||||
static const char INCREMENTAL_VERSION[] = "lz-V1.0";
|
||||
static const char BUILD_TYPE[] = "V1.0";
|
||||
static const char BUILD_USER[] = "lockzhiner";
|
||||
static const char BUILD_HOST[] = "ubuntu20.3";
|
||||
static const char BUILD_TIME[64];
|
||||
|
||||
|
||||
static const char EMPTY_STR[] = {""};
|
||||
|
||||
const char* HalGetDeviceType(void)
|
||||
{
|
||||
return OHOS_DEVICE_TYPE;
|
||||
}
|
||||
|
||||
const char* HalGetManufacture(void)
|
||||
{
|
||||
return OHOS_MANUFACTURE;
|
||||
}
|
||||
|
||||
const char* HalGetBrand(void)
|
||||
{
|
||||
return OHOS_BRAND;
|
||||
}
|
||||
|
||||
const char* HalGetMarketName(void)
|
||||
{
|
||||
return OHOS_MARKET_NAME;
|
||||
}
|
||||
|
||||
const char* HalGetProductSeries(void)
|
||||
{
|
||||
return OHOS_PRODUCT_SERIES;
|
||||
}
|
||||
|
||||
const char* HalGetProductModel(void)
|
||||
{
|
||||
return OHOS_PRODUCT_MODEL;
|
||||
}
|
||||
|
||||
const char* HalGetSoftwareModel(void)
|
||||
{
|
||||
return OHOS_SOFTWARE_MODEL;
|
||||
}
|
||||
|
||||
const char* HalGetHardwareModel(void)
|
||||
{
|
||||
return OHOS_HARDWARE_MODEL;
|
||||
}
|
||||
|
||||
const char* HalGetHardwareProfile(void)
|
||||
{
|
||||
return OHOS_HARDWARE_PROFILE;
|
||||
}
|
||||
|
||||
const char* HalGetSerial(void)
|
||||
{
|
||||
return OHOS_SERIAL;
|
||||
}
|
||||
|
||||
const char* HalGetBootloaderVersion(void)
|
||||
{
|
||||
return OHOS_BOOTLOADER_VERSION;
|
||||
}
|
||||
|
||||
const char* HalGetAbiList(void)
|
||||
{
|
||||
return OHOS_ABI_LIST;
|
||||
}
|
||||
|
||||
const char* HalGetDisplayVersion(void)
|
||||
{
|
||||
return OHOS_DISPLAY_VERSION;
|
||||
}
|
||||
|
||||
const char* HalGetIncrementalVersion(void)
|
||||
{
|
||||
return INCREMENTAL_VERSION;
|
||||
}
|
||||
|
||||
const char* HalGetBuildType(void)
|
||||
{
|
||||
return BUILD_TYPE;
|
||||
}
|
||||
|
||||
const char* HalGetBuildUser(void)
|
||||
{
|
||||
return BUILD_USER;
|
||||
}
|
||||
|
||||
const char* HalGetBuildHost(void)
|
||||
{
|
||||
return BUILD_HOST;
|
||||
}
|
||||
|
||||
const char* HalGetBuildTime(void)
|
||||
{
|
||||
snprintf(BUILD_TIME, sizeof(BUILD_TIME), "%s", __TIME__);
|
||||
return __TIME__;
|
||||
}
|
||||
|
||||
int HalGetFirstApiVersion(void)
|
||||
{
|
||||
return OHOS_FIRST_API_VERSION;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
const.build.characteristics=****
|
||||
|
||||
const.product.manufacturer=****
|
||||
|
||||
const.product.brand=****
|
||||
|
||||
const.product.name=****
|
||||
|
||||
const.build.product=****
|
||||
|
||||
const.product.model=****
|
||||
|
||||
const.software.model=****
|
||||
|
||||
const.product.hardwareversion=****
|
||||
|
||||
const.product.hardwareprofile="aout:true,display:true"
|
||||
|
||||
const.ohos.serial=1234567890
|
||||
|
||||
const.product.bootloader.version=bootloader
|
||||
|
||||
const.product.cpu.abilist=****
|
||||
|
||||
const.product.software.version="OpenHarmony 3.0 LTS"
|
||||
|
||||
const.product.firstapiversion=1
|
||||
|
||||
const.product.build.type=lz-V1.0
|
||||
|
||||
const.product.build.type=V1.0
|
||||
|
||||
const.product.build.user=lockzhiner
|
||||
|
||||
const.product.build.host=ubuntu20.3
|
||||
Reference in New Issue
Block a user