删除vendor中无用的demo
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
out/
|
||||
__pycache__/
|
||||
prebuilts/
|
||||
prebuilts/
|
||||
ohos_config.json
|
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@@ -79,12 +79,12 @@
|
||||
"vendor/hisilicon":true,
|
||||
"vendor/openvalley":true,
|
||||
"vendor/ph_libs":false,
|
||||
"vendor/CSG/at32f4xx_product_demo":true,
|
||||
"vendor/CSG/at32f4xx_product_demo":false,
|
||||
"vendor/CSG/gd32f4xx_product_demo":false,
|
||||
"vendor/CSG/hc32f4xx_product_demo":true,
|
||||
"vendor/CSG/hc32f4xx_product_demo":false,
|
||||
"vendor/CSG/kl3_product_demo":false,
|
||||
"vendor/CSG/stm32f4xx_product_demo":true,
|
||||
"vendor/CSG/stm32l4xx_product_demo":true,
|
||||
"vendor/CSG/stm32f4xx_product_demo":false,
|
||||
"vendor/CSG/stm32l4xx_product_demo":false,
|
||||
|
||||
"kernel/linux":true,
|
||||
"kernel/liteos_a":true,
|
||||
|
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"root_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0",
|
||||
"board": "htzd3201_board",
|
||||
"kernel": "liteos_m",
|
||||
"product": "htzd3201_product_demo",
|
||||
"product_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/vendor/CSG/htzd3201_product_demo",
|
||||
"device_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/device/board/csg/htzd3201_board/liteos_m",
|
||||
"device_company": "csg",
|
||||
"os_level": "mini",
|
||||
"version": "3.0",
|
||||
"patch_cache": null,
|
||||
"product_json": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/vendor/CSG/htzd3201_product_demo/config.json",
|
||||
"component_type": "",
|
||||
"product_config_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/vendor/CSG/htzd3201_product_demo",
|
||||
"target_cpu": null,
|
||||
"target_os": null,
|
||||
"out_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/out/htzd3201_board/htzd3201_product_demo",
|
||||
"subsystem_config_json": "build/subsystem_config.json",
|
||||
"device_config_path": "/home/andy/harmony/PowerHarmony_PHM_SDK_V1.0.1.0/device/board/csg/htzd3201_board/liteos_m",
|
||||
"support_cpu": null,
|
||||
"compile_config": null
|
||||
}
|
29
vendor/CSG/at32f4xx_product_demo/BUILD.gn
vendored
29
vendor/CSG/at32f4xx_product_demo/BUILD.gn
vendored
@@ -1,29 +0,0 @@
|
||||
# Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved.
|
||||
|
||||
import("//device/soc/artery/at32f4xx/util/util.gni")
|
||||
at32f4xxx_firmware("at32f4xx_product_demo") {
|
||||
explicit_libs = [
|
||||
"bootstrap",
|
||||
"broadcast",
|
||||
|
||||
]
|
||||
|
||||
if (build_xts == true) {
|
||||
explicit_libs += [
|
||||
"hctest",
|
||||
#xts分开跑
|
||||
#part1
|
||||
#"huks_test_common",
|
||||
#"module_ActsUpdaterFuncTest",
|
||||
#"module_ActsHuksHalFunctionTest",
|
||||
#"module_ActsBootstrapTest",
|
||||
#part2
|
||||
"module_ActsDfxFuncTest",
|
||||
"module_ActsHieventLiteTest",
|
||||
"module_ActsSamgrTest",
|
||||
]
|
||||
}
|
||||
|
||||
deps = [ "//build/lite:ohos" ]
|
||||
|
||||
}
|
88
vendor/CSG/at32f4xx_product_demo/config.json
vendored
88
vendor/CSG/at32f4xx_product_demo/config.json
vendored
@@ -1,88 +0,0 @@
|
||||
{
|
||||
"product_name": "at32f4xx_product_demo",
|
||||
"ohos_version": "OpenHarmony 3.2",
|
||||
"type":"mini",
|
||||
"version": "3.0",
|
||||
"device_company": "csg",
|
||||
"board": "at32f4_board",
|
||||
"kernel_type": "liteos_m",
|
||||
"kernel_version": "3.0.0",
|
||||
"subsystems": [
|
||||
{
|
||||
"subsystem": "kernel",
|
||||
"components": [
|
||||
{ "component": "liteos_m", "features": [] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "startup",
|
||||
"components": [
|
||||
{ "component": "bootstrap_lite", "features":[] },
|
||||
{ "component": "init_lite", "features":[] },
|
||||
{
|
||||
"component": "init_lite",
|
||||
"features": [
|
||||
"enable_ohos_startup_init_lite_use_posix_file_api = true",
|
||||
"enable_ohos_startup_init_feature_begetctl_liteos = true",
|
||||
"config_ohos_startup_init_lite_data_path = \"/data/\""
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "security",
|
||||
"components": [
|
||||
{ "component": "device_auth" },
|
||||
{
|
||||
"component": "huks",
|
||||
"features": [
|
||||
"huks_use_lite_storage = true",
|
||||
"huks_config_file = \"hks_config_lite.h\""
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "commonlibrary",
|
||||
"components": [
|
||||
{ "component": "utils_lite", "features":["utils_lite_feature_file = true"] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "hiviewdfx",
|
||||
"components": [
|
||||
{ "component": "hilog_lite", "features":[] },
|
||||
{ "component": "hievent_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "systemabilitymgr",
|
||||
"components": [
|
||||
{ "component": "samgr_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "updater",
|
||||
"components": [
|
||||
{ "component": "sys_installer_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "xts",
|
||||
"components": [
|
||||
{
|
||||
"component": "acts",
|
||||
"features":
|
||||
[
|
||||
"config_ohos_xts_acts_utils_lite_kv_store_data_path = \"/data\"",
|
||||
"enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
|
||||
]
|
||||
},
|
||||
{ "component": "tools", "features":[] }
|
||||
]
|
||||
}
|
||||
],
|
||||
"vendor_adapter_dir": "//device/soc/artery",
|
||||
"third_party_dir": "//third_party",
|
||||
"product_adapter_dir": "//vendor/CSG/at32f4xx_product_demo/hals"
|
||||
}
|
@@ -1,27 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
static_library("hal_sysparam") {
|
||||
sources = [ "hal_sys_param.c" ]
|
||||
|
||||
include_dirs = [ "//base/startup/init/interfaces/hals" ]
|
||||
|
||||
defines = [
|
||||
"INCREMENTAL_VERSION=\"${ohos_version}\"",
|
||||
"BUILD_TYPE=\"${ohos_build_type}\"",
|
||||
"BUILD_USER=\"${ohos_build_user}\"",
|
||||
"BUILD_TIME=\"${ohos_build_time}\"",
|
||||
"BUILD_HOST=\"${ohos_build_host}\"",
|
||||
"BUILD_ROOTHASH=\"${ohos_build_roothash}\"",
|
||||
]
|
||||
}
|
@@ -1,133 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2020 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.
|
||||
*/
|
||||
|
||||
#include "hal_sys_param.h"
|
||||
|
||||
static const char OHOS_DEVICE_TYPE[] = {"Development Board"};
|
||||
static const char OHOS_DISPLAY_VERSION[] = {"OpenHarmony-master"};
|
||||
static const char OHOS_MANUFACTURE[] = {"artery"};
|
||||
static const char OHOS_BRAND[] = {"hihope"};
|
||||
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[] = {"****"};
|
||||
static const char OHOS_BOOTLOADER_VERSION[] = {"bootloader"};
|
||||
static const char OHOS_ABI_LIST[] = {"****"};
|
||||
static const char OHOS_SERIAL[] = {"1234567890"};
|
||||
static const int OHOS_FIRST_API_VERSION = 1;
|
||||
|
||||
static const char EMPTY_STR[] = {""};
|
||||
|
||||
/* <20><>ȡ<EFBFBD>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD> */
|
||||
const char* HalGetDeviceType(void)
|
||||
{
|
||||
return OHOS_DEVICE_TYPE;
|
||||
}
|
||||
|
||||
/* <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ */
|
||||
const char* HalGetManufacture(void)
|
||||
{
|
||||
return OHOS_MANUFACTURE;
|
||||
}
|
||||
|
||||
/* <20><>ȡ<EFBFBD>̱<EFBFBD><CCB1><EFBFBD><EFBFBD><EFBFBD> */
|
||||
const char* HalGetBrand(void)
|
||||
{
|
||||
return OHOS_BRAND;
|
||||
}
|
||||
|
||||
const char* HalGetMarketName(void)
|
||||
{
|
||||
return OHOS_MARKET_NAME;
|
||||
}
|
||||
|
||||
/* <20><>ȡ<EFBFBD><C8A1>Ʒϵ<C6B7><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
const char* HalGetProductSeries(void)
|
||||
{
|
||||
return OHOS_PRODUCT_SERIES;
|
||||
}
|
||||
|
||||
/* <20><>ȡ<EFBFBD><C8A1>Ʒ<EFBFBD>ͺ<EFBFBD> */
|
||||
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)
|
||||
{
|
||||
return BUILD_TIME;
|
||||
}
|
||||
|
||||
int HalGetFirstApiVersion(void)
|
||||
{
|
||||
return OHOS_FIRST_API_VERSION;
|
||||
}
|
@@ -1,36 +0,0 @@
|
||||
# Copyright (c) 2021-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=artery
|
||||
|
||||
const.product.brand==****
|
||||
|
||||
const.product.name=****
|
||||
|
||||
const.build.product=****
|
||||
|
||||
const.product.model=****
|
||||
|
||||
const.product.hardwareversion=****
|
||||
|
||||
const.product.hardwareprofile=****
|
||||
|
||||
const.ohos.serial=1234567890
|
||||
|
||||
const.product.bootloader.version=bootloader
|
||||
|
||||
const.product.cpu.abilist=****
|
||||
|
||||
const.product.firstapiversion=1
|
@@ -1,24 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
|
||||
static_library("hal_token_static") {
|
||||
sources = [ "hal_token.c" ]
|
||||
|
||||
include_dirs = [
|
||||
"//base/startup/syspara_lite/hals",
|
||||
"//base/startup/init/interfaces/innerkits/token",
|
||||
"//utils/native/lite/include",
|
||||
]
|
||||
deps = []
|
||||
}
|
@@ -1,105 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2020 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.
|
||||
*/
|
||||
|
||||
|
||||
#include "hal_token.h"
|
||||
#include "ohos_errno.h"
|
||||
#include "ohos_types.h"
|
||||
|
||||
static int OEMReadToken(char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, read token from device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, write token to device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get AcKey
|
||||
(void)(acKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdId
|
||||
(void)(productId);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdKey
|
||||
(void)(productKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
int HalReadToken(char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMReadToken(token, len);
|
||||
}
|
||||
|
||||
int HalWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMWriteToken(token, len);
|
||||
}
|
||||
|
||||
int HalGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
if (acKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetAcKey(acKey, len);
|
||||
}
|
||||
|
||||
int HalGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
if (productId == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdId(productId, len);
|
||||
}
|
||||
|
||||
int HalGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
if (productKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdKey(productKey, len);
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
LOSCFG_PLATFORM_QEMU_ARM_VIRT_CM4=y
|
||||
# LOSCFG_IRQ_USE_STANDALONE_STACK is not set
|
||||
# LOSCFG_ARCH_UNALIGNED_EXC is not set
|
||||
LOSCFG_AT32F4_BOARD_USE_HDF=y
|
||||
# LOSCFG_KERNEL_SIGNAL is not set
|
||||
LOSCFG_LIBC_NEWLIB=y
|
||||
LOSCFG_FS_SUPPORT_MOUNT_TARGET_RECURSIVE=y
|
||||
LOSCFG_FS_LITTLEFS=y
|
||||
#LOSCFG_DRIVERS_HDF=y
|
||||
#LOSCFG_DRIVERS_HDF_CONFIG_MACRO=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_GPIO=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_I2C=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_UART=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_ADC=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_DAC=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_PWM=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_RTC=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_SPI=y
|
||||
#LOSCFG_DRIVERS_HDF_PLATFORM_WATCHDOG=y
|
10
vendor/CSG/at32f4xx_product_demo/ohos.build
vendored
10
vendor/CSG/at32f4xx_product_demo/ohos.build
vendored
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"parts": {
|
||||
"product_at32f4xx_product_demo": {
|
||||
"module_list": [
|
||||
"//vendor/CSG/at32f4xx_product_demo:at32f4xx_product_demo"
|
||||
]
|
||||
}
|
||||
},
|
||||
"subsystem": "product_at32f4xx_product_demo"
|
||||
}
|
18
vendor/CSG/hc32f4xx_product_demo/BUILD.gn
vendored
18
vendor/CSG/hc32f4xx_product_demo/BUILD.gn
vendored
@@ -1,18 +0,0 @@
|
||||
# Copyright (C) 2022 HiHope Open Source Organization .
|
||||
# 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.
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
import("//build/lite/config/subsystem/lite_subsystem.gni")
|
||||
|
||||
group("hc32f4xx_product_demo") {
|
||||
print("hc32f4xx_product_demo is under developing.")
|
||||
}
|
85
vendor/CSG/hc32f4xx_product_demo/config.json
vendored
85
vendor/CSG/hc32f4xx_product_demo/config.json
vendored
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"product_name": "hc32f4xx_product_demo",
|
||||
"ohos_version": "OpenHarmony 4.0",
|
||||
"type":"mini",
|
||||
"version": "3.0",
|
||||
"device_company": "csg",
|
||||
"board": "hc32f4_board",
|
||||
"kernel_type": "liteos_m",
|
||||
"kernel_version": "3.0.0",
|
||||
"subsystems": [
|
||||
{
|
||||
"subsystem": "kernel",
|
||||
"components": [
|
||||
{ "component": "liteos_m", "features": [] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "hiviewdfx",
|
||||
"components": [
|
||||
{ "component": "hilog_lite", "features":[] },
|
||||
{ "component": "hievent_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "systemabilitymgr",
|
||||
"components": [
|
||||
{ "component": "samgr_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "startup",
|
||||
"components": [
|
||||
{ "component": "bootstrap_lite", "features":[] },
|
||||
{ "component": "init_lite", "features":
|
||||
[
|
||||
"enable_ohos_startup_init_feature_begetctl_liteos = true",
|
||||
"enable_ohos_startup_init_lite_use_thirdparty_mbedtls = true"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "commonlibrary",
|
||||
"components": [
|
||||
{ "component": "utils_lite", "features":["utils_lite_feature_file = true"] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "security",
|
||||
"components": [
|
||||
{ "component": "device_auth" },
|
||||
{
|
||||
"component": "huks",
|
||||
"features": [
|
||||
"huks_use_lite_storage = true",
|
||||
"huks_config_file = \"hks_config_lite.h\""
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "updater",
|
||||
"components": [
|
||||
{ "component": "sys_installer_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "xts",
|
||||
"components": [
|
||||
{
|
||||
"component": "acts",
|
||||
"features":
|
||||
[
|
||||
"config_ohos_xts_acts_utils_lite_kv_store_data_path = /data",
|
||||
"enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
|
||||
]
|
||||
},
|
||||
{ "component": "tools", "features":[] }
|
||||
]
|
||||
}
|
||||
],
|
||||
"vendor_adapter_dir": "//device/soc/hdsc/hc32f4xx/Drivers",
|
||||
"third_party_dir": "//third_party",
|
||||
"product_adapter_dir": "//vendor/CSG/hc32f4xx_product_demo/hals"
|
||||
}
|
@@ -1,27 +0,0 @@
|
||||
# Copyright (C) 2022 HiHope Open Source Organization .
|
||||
# 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/init/interfaces/hals" ]
|
||||
|
||||
defines = [
|
||||
"INCREMENTAL_VERSION=\"${ohos_version}\"",
|
||||
"BUILD_TYPE=\"${ohos_build_type}\"",
|
||||
"BUILD_USER=\"${ohos_build_user}\"",
|
||||
"BUILD_TIME=\"${ohos_build_time}\"",
|
||||
"BUILD_HOST=\"${ohos_build_host}\"",
|
||||
"BUILD_ROOTHASH=\"${ohos_build_roothash}\"",
|
||||
]
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2022 HiHope Open Source Organization .
|
||||
* 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 "hal_sys_param.h"
|
||||
|
||||
static const char OHOS_SERIAL[] = {"xx1234567890"};
|
||||
|
||||
const char* HalGetSerial(void)
|
||||
{
|
||||
return OHOS_SERIAL;
|
||||
}
|
@@ -1,39 +0,0 @@
|
||||
# Copyright (c) 2021-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=HDSC
|
||||
|
||||
const.product.brand==Hc32f4
|
||||
|
||||
const.product.name=Hc32f4
|
||||
|
||||
const.build.product=Hc32f4 board
|
||||
|
||||
const.product.model=****
|
||||
|
||||
const.software.model=****
|
||||
|
||||
const.product.hardwareversion=****
|
||||
|
||||
const.product.hardwareprofile=****
|
||||
|
||||
const.ohos.serial=1234567890
|
||||
|
||||
const.product.bootloader.version=bootloader
|
||||
|
||||
const.product.cpu.abilist=****
|
||||
|
||||
|
||||
const.product.firstapiversion=1
|
@@ -1,23 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
static_library("hal_token_static") {
|
||||
sources = [ "hal_token.c" ]
|
||||
|
||||
include_dirs = [
|
||||
"//base/startup/init/interfaces/hals",
|
||||
"//base/startup/init/interfaces/innerkits/token",
|
||||
"//commonlibrary/utils_lite/include",
|
||||
]
|
||||
deps = []
|
||||
}
|
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2020 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.
|
||||
*/
|
||||
|
||||
#include "hal_token.h"
|
||||
#include "ohos_errno.h"
|
||||
#include "ohos_types.h"
|
||||
|
||||
static int OEMReadToken(char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, read token from device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, write token to device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get AcKey
|
||||
(void)(acKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdId
|
||||
(void)(productId);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdKey
|
||||
(void)(productKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
int HalReadToken(char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMReadToken(token, len);
|
||||
}
|
||||
|
||||
int HalWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMWriteToken(token, len);
|
||||
}
|
||||
|
||||
int HalGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
if (acKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetAcKey(acKey, len);
|
||||
}
|
||||
|
||||
int HalGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
if (productId == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdId(productId, len);
|
||||
}
|
||||
|
||||
int HalGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
if (productKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdKey(productKey, len);
|
||||
}
|
||||
|
||||
int HalGetProductSecret(char *productSecret, unsigned int len)
|
||||
{
|
||||
if (productSecret == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProductSecret(productSecret, len);
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
# LOSCFG_COMPILE_OPTIMIZE is not set
|
||||
# LOSCFG_COMPILE_LTO is not set
|
||||
LOSCFG_PLATFORM_QEMU_ARM_VIRT_CM4=y
|
||||
# LOSCFG_ARCH_UNALIGNED_EXC is not set
|
||||
LOSCFG_BOARD_HC32F4_BOARD_HDF=y
|
||||
LOSCFG_SOC_SERIES_HC32F4x=y
|
||||
# LOSCFG_KERNEL_SIGNAL is not set
|
||||
LOSCFG_LIBC_NEWLIB=y
|
||||
LOSCFG_THUMB=y
|
||||
#LOSCFG_SHELL=y
|
||||
# LOSCFG_DRIVERS is not set
|
10
vendor/CSG/hc32f4xx_product_demo/ohos.build
vendored
10
vendor/CSG/hc32f4xx_product_demo/ohos.build
vendored
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"parts": {
|
||||
"product_hc32f4xx_product_demo": {
|
||||
"module_list": [
|
||||
"//vendor/CSG/hc32f4xx_product_demo:hc32f4xx_product_demo"
|
||||
]
|
||||
}
|
||||
},
|
||||
"subsystem": "product_hc32f4xx_product_demo"
|
||||
}
|
15
vendor/CSG/stm32f4xx_product_demo/BUILD.gn
vendored
15
vendor/CSG/stm32f4xx_product_demo/BUILD.gn
vendored
@@ -1,15 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
group("stm32f4xx_product_demo") {
|
||||
}
|
85
vendor/CSG/stm32f4xx_product_demo/config.json
vendored
85
vendor/CSG/stm32f4xx_product_demo/config.json
vendored
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"product_name": "stm32f4xx_product_demo",
|
||||
"ohos_version": "OpenHarmony 3.2",
|
||||
"type": "mini",
|
||||
"version": "3.0",
|
||||
"device_company": "csg",
|
||||
"board": "stm32f4_board",
|
||||
"kernel_type": "liteos_m",
|
||||
"kernel_version": "3.0.0",
|
||||
"subsystems": [
|
||||
{
|
||||
"subsystem": "kernel",
|
||||
"components": [
|
||||
{ "component": "liteos_m", "features": [] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "hiviewdfx",
|
||||
"components": [
|
||||
{ "component": "hilog_lite", "features":[] },
|
||||
{ "component": "hievent_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "systemabilitymgr",
|
||||
"components": [
|
||||
{ "component": "samgr_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "commonlibrary",
|
||||
"components": [
|
||||
{ "component": "utils_lite", "features":["utils_lite_feature_file = true"] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "startup",
|
||||
"components": [
|
||||
{ "component": "bootstrap_lite", "features":[] },
|
||||
{ "component": "init_lite", "features":
|
||||
[
|
||||
"enable_ohos_startup_init_feature_begetctl_liteos = true",
|
||||
"enable_ohos_startup_init_lite_use_thirdparty_mbedtls = true"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "security",
|
||||
"components": [
|
||||
{ "component": "device_auth" },
|
||||
{
|
||||
"component": "huks",
|
||||
"features": [
|
||||
"huks_use_lite_storage = true",
|
||||
"huks_config_file = \"hks_config_lite.h\""
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "updater",
|
||||
"components": [
|
||||
{ "component": "sys_installer_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "xts",
|
||||
"components": [
|
||||
{
|
||||
"component": "acts",
|
||||
"features":
|
||||
[
|
||||
"config_ohos_xts_acts_utils_lite_kv_store_data_path = \"/data\"",
|
||||
"enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
|
||||
]
|
||||
},
|
||||
{ "component": "tools", "features":[] }
|
||||
]
|
||||
}
|
||||
],
|
||||
"vendor_adapter_dir": "//device/soc/stm/stm32f4xx/sdk",
|
||||
"third_party_dir": "//third_party",
|
||||
"product_adapter_dir": "//vendor/CSG/stm32f4xx_product_demo/hals"
|
||||
}
|
@@ -1,25 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
static_library("hal_sysparam") {
|
||||
sources = [ "hal_sys_param.c" ]
|
||||
include_dirs = [ "//base/startup/init/interfaces/hals" ]
|
||||
defines = [
|
||||
"INCREMENTAL_VERSION=\"${ohos_version}\"",
|
||||
"BUILD_TYPE=\"${ohos_build_type}\"",
|
||||
"BUILD_USER=\"${ohos_build_user}\"",
|
||||
"BUILD_TIME=\"${ohos_build_time}\"",
|
||||
"BUILD_HOST=\"${ohos_build_host}\"",
|
||||
"BUILD_ROOTHASH=\"${ohos_build_roothash}\"",
|
||||
]
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Hihope 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.
|
||||
*/
|
||||
|
||||
#include "hal_sys_param.h"
|
||||
|
||||
static const char OHOS_SERIAL[] = {"1234567890"}; // provided by OEM.
|
||||
|
||||
const char *HalGetSerial(void)
|
||||
{
|
||||
return OHOS_SERIAL;
|
||||
}
|
@@ -1,38 +0,0 @@
|
||||
# Copyright (c) 2021-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=Board
|
||||
|
||||
const.product.manufacturer==****
|
||||
|
||||
const.product.brand==****
|
||||
|
||||
const.product.name==****
|
||||
|
||||
const.build.product==****
|
||||
|
||||
const.product.model==****
|
||||
|
||||
const.product.hardwareversion==****
|
||||
|
||||
const.product.hardwareprofile==****
|
||||
|
||||
const.ohos.serial=1234567890
|
||||
|
||||
const.product.bootloader.version==****
|
||||
|
||||
const.product.cpu.abilist==****
|
||||
|
||||
const.product.software.version==****
|
||||
|
||||
const.product.firstapiversion=1
|
@@ -1,22 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
static_library("hal_token_static") {
|
||||
sources = [ "hal_token.c" ]
|
||||
|
||||
include_dirs = [
|
||||
"//base/startup/init/interfaces/hals",
|
||||
"//commonlibrary/utils_lite/include",
|
||||
]
|
||||
deps = []
|
||||
}
|
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Hihope 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.
|
||||
*/
|
||||
|
||||
#include "hal_token.h"
|
||||
#include "ohos_errno.h"
|
||||
#include "ohos_types.h"
|
||||
|
||||
static int OEMReadToken(char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, read token from device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, write token to device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get AcKey
|
||||
(void)(acKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdId
|
||||
(void)(productId);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdKey
|
||||
(void)(productKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
int HalReadToken(char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMReadToken(token, len);
|
||||
}
|
||||
|
||||
int HalWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMWriteToken(token, len);
|
||||
}
|
||||
|
||||
int HalGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
if (acKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetAcKey(acKey, len);
|
||||
}
|
||||
|
||||
int HalGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
if (productId == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdId(productId, len);
|
||||
}
|
||||
|
||||
int HalGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
if (productKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdKey(productKey, len);
|
||||
}
|
||||
|
||||
int HalGetProductSecret(char *productSecret, unsigned int len)
|
||||
{
|
||||
if (productSecret == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProductSecret(productSecret, len);
|
||||
}
|
@@ -1,17 +0,0 @@
|
||||
LOSCFG_CROSS_COMPILE="arm-none-eabi-gcc-"
|
||||
# LOSCFG_COMPILE_OPTIMIZE_SIZE is not set
|
||||
LOSCFG_PLATFORM_QEMU_ARM_VIRT_CM4=y
|
||||
# LOSCFG_IRQ_USE_STANDALONE_STACK is not set
|
||||
# LOSCFG_ARCH_UNALIGNED_EXC is not set
|
||||
LOSCFG_STM32F4_BOARD_USE_HDF=y
|
||||
LOSCFG_SOC_SERIES_STM32F4xx=y
|
||||
# LOSCFG_KERNEL_SIGNAL is not set
|
||||
LOSCFG_KERNEL_CPUP=y
|
||||
# LOSCFG_CPUP_INCLUDE_IRQ is not set
|
||||
LOSCFG_LIBC_NEWLIB=y
|
||||
LOSCFG_FS_SUPPORT_MOUNT_TARGET_RECURSIVE=y
|
||||
LOSCFG_FS_LITTLEFS=y
|
||||
LOSCFG_LFS_MAX_OPEN_FILES=32
|
||||
LOSCFG_NET_LWIP=y
|
||||
# LOSCFG_PLATFORM_ADAPT is not set
|
||||
# LOSCFG_ENABLE_MAGICKEY is not set
|
15
vendor/CSG/stm32l4xx_product_demo/BUILD.gn
vendored
15
vendor/CSG/stm32l4xx_product_demo/BUILD.gn
vendored
@@ -1,15 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
group("stm32l4xx_product_demo") {
|
||||
}
|
85
vendor/CSG/stm32l4xx_product_demo/config.json
vendored
85
vendor/CSG/stm32l4xx_product_demo/config.json
vendored
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"product_name": "stm32l4xx_product_demo",
|
||||
"ohos_version": "OpenHarmony 3.2",
|
||||
"type": "mini",
|
||||
"version": "3.0",
|
||||
"device_company": "csg",
|
||||
"board": "stm32l4_board",
|
||||
"kernel_type": "liteos_m",
|
||||
"kernel_version": "3.0.0",
|
||||
"subsystems": [
|
||||
{
|
||||
"subsystem": "kernel",
|
||||
"components": [
|
||||
{ "component": "liteos_m", "features": [] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "hiviewdfx",
|
||||
"components": [
|
||||
{ "component": "hilog_lite", "features":[] },
|
||||
{ "component": "hievent_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "systemabilitymgr",
|
||||
"components": [
|
||||
{ "component": "samgr_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "commonlibrary",
|
||||
"components": [
|
||||
{ "component": "utils_lite", "features":["utils_lite_feature_file = true"] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "startup",
|
||||
"components": [
|
||||
{ "component": "bootstrap_lite", "features":[] },
|
||||
{ "component": "init_lite", "features":
|
||||
[
|
||||
"enable_ohos_startup_init_feature_begetctl_liteos = true",
|
||||
"enable_ohos_startup_init_lite_use_thirdparty_mbedtls = true"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "security",
|
||||
"components": [
|
||||
{ "component": "device_auth" },
|
||||
{
|
||||
"component": "huks",
|
||||
"features": [
|
||||
"huks_use_lite_storage = true",
|
||||
"huks_config_file = \"hks_config_lite.h\""
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "updater",
|
||||
"components": [
|
||||
{ "component": "sys_installer_lite", "features":[] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"subsystem": "xts",
|
||||
"components": [
|
||||
{
|
||||
"component": "acts",
|
||||
"features":
|
||||
[
|
||||
"config_ohos_xts_acts_utils_lite_kv_store_data_path = \"/data\"",
|
||||
"enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
|
||||
]
|
||||
},
|
||||
{ "component": "tools", "features":[] }
|
||||
]
|
||||
}
|
||||
],
|
||||
"vendor_adapter_dir": "//device/soc/stm/stm32l4xx/sdk",
|
||||
"third_party_dir": "//third_party",
|
||||
"product_adapter_dir": "//vendor/CSG/stm32l4xx_product_demo/hals"
|
||||
}
|
@@ -1,25 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
static_library("hal_sysparam") {
|
||||
sources = [ "hal_sys_param.c" ]
|
||||
include_dirs = [ "//base/startup/init/interfaces/hals" ]
|
||||
defines = [
|
||||
"INCREMENTAL_VERSION=\"${ohos_version}\"",
|
||||
"BUILD_TYPE=\"${ohos_build_type}\"",
|
||||
"BUILD_USER=\"${ohos_build_user}\"",
|
||||
"BUILD_TIME=\"${ohos_build_time}\"",
|
||||
"BUILD_HOST=\"${ohos_build_host}\"",
|
||||
"BUILD_ROOTHASH=\"${ohos_build_roothash}\"",
|
||||
]
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Hihope 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.
|
||||
*/
|
||||
|
||||
#include "hal_sys_param.h"
|
||||
|
||||
static const char OHOS_SERIAL[] = {"1234567890"}; // provided by OEM.
|
||||
|
||||
const char *HalGetSerial(void)
|
||||
{
|
||||
return OHOS_SERIAL;
|
||||
}
|
@@ -1,36 +0,0 @@
|
||||
# Copyright (c) 2021-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=Board
|
||||
|
||||
const.product.manufacturer==****
|
||||
|
||||
const.product.brand==****
|
||||
|
||||
const.product.name==****
|
||||
|
||||
const.build.product==****
|
||||
|
||||
const.product.model==****
|
||||
|
||||
const.product.hardwareversion==****
|
||||
|
||||
const.product.hardwareprofile==****
|
||||
|
||||
const.ohos.serial=1234567890
|
||||
|
||||
const.product.bootloader.version==****
|
||||
|
||||
const.product.cpu.abilist==****
|
||||
|
||||
const.product.firstapiversion=1
|
@@ -1,22 +0,0 @@
|
||||
# Copyright (c) 2021-2022 Hihope 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.
|
||||
|
||||
static_library("hal_token_static") {
|
||||
sources = [ "hal_token.c" ]
|
||||
|
||||
include_dirs = [
|
||||
"//base/startup/init/interfaces/hals",
|
||||
"//commonlibrary/utils_lite/include",
|
||||
]
|
||||
deps = []
|
||||
}
|
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Hihope 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.
|
||||
*/
|
||||
|
||||
#include "hal_token.h"
|
||||
#include "ohos_errno.h"
|
||||
#include "ohos_types.h"
|
||||
|
||||
static int OEMReadToken(char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, read token from device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
// OEM need add here, write token to device
|
||||
(void)(token);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get AcKey
|
||||
(void)(acKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdId
|
||||
(void)(productId);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
static int OEMGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
// OEM need add here, get ProdKey
|
||||
(void)(productKey);
|
||||
(void)(len);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
int HalReadToken(char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMReadToken(token, len);
|
||||
}
|
||||
|
||||
int HalWriteToken(const char *token, unsigned int len)
|
||||
{
|
||||
if (token == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMWriteToken(token, len);
|
||||
}
|
||||
|
||||
int HalGetAcKey(char *acKey, unsigned int len)
|
||||
{
|
||||
if (acKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetAcKey(acKey, len);
|
||||
}
|
||||
|
||||
int HalGetProdId(char *productId, unsigned int len)
|
||||
{
|
||||
if (productId == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdId(productId, len);
|
||||
}
|
||||
|
||||
int HalGetProdKey(char *productKey, unsigned int len)
|
||||
{
|
||||
if (productKey == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProdKey(productKey, len);
|
||||
}
|
||||
|
||||
int HalGetProductSecret(char *productSecret, unsigned int len)
|
||||
{
|
||||
if (productSecret == NULL) {
|
||||
return EC_FAILURE;
|
||||
}
|
||||
|
||||
return OEMGetProductSecret(productSecret, len);
|
||||
}
|
@@ -1,17 +0,0 @@
|
||||
LOSCFG_CROSS_COMPILE="arm-none-eabi-gcc-"
|
||||
# LOSCFG_COMPILE_OPTIMIZE_SIZE is not set
|
||||
LOSCFG_PLATFORM_QEMU_ARM_VIRT_CM4=y
|
||||
# LOSCFG_IRQ_USE_STANDALONE_STACK is not set
|
||||
# LOSCFG_ARCH_UNALIGNED_EXC is not set
|
||||
#LOSCFG_STM32L4_BOARD_USE_HDF=y
|
||||
LOSCFG_SOC_SERIES_STM32L4xx=y
|
||||
# LOSCFG_KERNEL_SIGNAL is not set
|
||||
LOSCFG_KERNEL_CPUP=y
|
||||
# LOSCFG_CPUP_INCLUDE_IRQ is not set
|
||||
LOSCFG_LIBC_NEWLIB=y
|
||||
LOSCFG_FS_SUPPORT_MOUNT_TARGET_RECURSIVE=y
|
||||
LOSCFG_FS_LITTLEFS=y
|
||||
LOSCFG_LFS_MAX_OPEN_FILES=32
|
||||
LOSCFG_NET_LWIP=y
|
||||
# LOSCFG_PLATFORM_ADAPT is not set
|
||||
# LOSCFG_ENABLE_MAGICKEY is not set
|
Reference in New Issue
Block a user