From 37b643f50b975611bf672de737a30673ec52bd5f Mon Sep 17 00:00:00 2001 From: andy <1414772332@qq.com> Date: Sat, 28 Sep 2024 00:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4vendor=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- .vscode/settings.json | 8 +- ohos_config.json | 22 --- vendor/CSG/at32f4xx_product_demo/BUILD.gn | 29 ---- vendor/CSG/at32f4xx_product_demo/config.json | 88 ------------ .../hals/utils/sys_param/BUILD.gn | 27 ---- .../hals/utils/sys_param/hal_sys_param.c | 133 ------------------ .../hals/utils/sys_param/vendor.para | 36 ----- .../hals/utils/token/BUILD.gn | 24 ---- .../hals/utils/token/hal_token.c | 105 -------------- .../kernel_configs/debug.config | 20 --- vendor/CSG/at32f4xx_product_demo/ohos.build | 10 -- vendor/CSG/hc32f4xx_product_demo/BUILD.gn | 18 --- vendor/CSG/hc32f4xx_product_demo/config.json | 85 ----------- .../hals/utils/sys_param/BUILD.gn | 27 ---- .../hals/utils/sys_param/hal_sys_param.c | 23 --- .../hals/utils/sys_param/vendor.para | 39 ----- .../hals/utils/token/BUILD.gn | 23 --- .../hals/utils/token/hal_token.c | 113 --------------- .../kernel_configs/debug.config | 11 -- vendor/CSG/hc32f4xx_product_demo/ohos.build | 10 -- vendor/CSG/stm32f4xx_product_demo/BUILD.gn | 15 -- vendor/CSG/stm32f4xx_product_demo/config.json | 85 ----------- .../hals/utils/sys_param/BUILD.gn | 25 ---- .../hals/utils/sys_param/hal_sys_param.c | 23 --- .../hals/utils/sys_param/vendor.para | 38 ----- .../hals/utils/token/BUILD.gn | 22 --- .../hals/utils/token/hal_token.c | 112 --------------- .../kernel_configs/debug.config | 17 --- vendor/CSG/stm32l4xx_product_demo/BUILD.gn | 15 -- vendor/CSG/stm32l4xx_product_demo/config.json | 85 ----------- .../hals/utils/sys_param/BUILD.gn | 25 ---- .../hals/utils/sys_param/hal_sys_param.c | 23 --- .../hals/utils/sys_param/vendor.para | 36 ----- .../hals/utils/token/BUILD.gn | 22 --- .../hals/utils/token/hal_token.c | 112 --------------- .../kernel_configs/debug.config | 17 --- 37 files changed, 6 insertions(+), 1520 deletions(-) delete mode 100755 ohos_config.json delete mode 100644 vendor/CSG/at32f4xx_product_demo/BUILD.gn delete mode 100644 vendor/CSG/at32f4xx_product_demo/config.json delete mode 100644 vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/BUILD.gn delete mode 100644 vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c delete mode 100644 vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/vendor.para delete mode 100644 vendor/CSG/at32f4xx_product_demo/hals/utils/token/BUILD.gn delete mode 100644 vendor/CSG/at32f4xx_product_demo/hals/utils/token/hal_token.c delete mode 100644 vendor/CSG/at32f4xx_product_demo/kernel_configs/debug.config delete mode 100644 vendor/CSG/at32f4xx_product_demo/ohos.build delete mode 100644 vendor/CSG/hc32f4xx_product_demo/BUILD.gn delete mode 100644 vendor/CSG/hc32f4xx_product_demo/config.json delete mode 100644 vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/BUILD.gn delete mode 100644 vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c delete mode 100644 vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/vendor.para delete mode 100644 vendor/CSG/hc32f4xx_product_demo/hals/utils/token/BUILD.gn delete mode 100644 vendor/CSG/hc32f4xx_product_demo/hals/utils/token/hal_token.c delete mode 100644 vendor/CSG/hc32f4xx_product_demo/kernel_configs/debug.config delete mode 100644 vendor/CSG/hc32f4xx_product_demo/ohos.build delete mode 100644 vendor/CSG/stm32f4xx_product_demo/BUILD.gn delete mode 100644 vendor/CSG/stm32f4xx_product_demo/config.json delete mode 100644 vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/BUILD.gn delete mode 100644 vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c delete mode 100644 vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/vendor.para delete mode 100644 vendor/CSG/stm32f4xx_product_demo/hals/utils/token/BUILD.gn delete mode 100644 vendor/CSG/stm32f4xx_product_demo/hals/utils/token/hal_token.c delete mode 100644 vendor/CSG/stm32f4xx_product_demo/kernel_configs/debug.config delete mode 100644 vendor/CSG/stm32l4xx_product_demo/BUILD.gn delete mode 100644 vendor/CSG/stm32l4xx_product_demo/config.json delete mode 100644 vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/BUILD.gn delete mode 100644 vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/hal_sys_param.c delete mode 100644 vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/vendor.para delete mode 100644 vendor/CSG/stm32l4xx_product_demo/hals/utils/token/BUILD.gn delete mode 100644 vendor/CSG/stm32l4xx_product_demo/hals/utils/token/hal_token.c delete mode 100644 vendor/CSG/stm32l4xx_product_demo/kernel_configs/debug.config diff --git a/.gitignore b/.gitignore index a5ae32ff..7f66b9c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ out/ __pycache__/ -prebuilts/ \ No newline at end of file +prebuilts/ +ohos_config.json \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index fdab6138..141c15f6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, diff --git a/ohos_config.json b/ohos_config.json deleted file mode 100755 index 665844ed..00000000 --- a/ohos_config.json +++ /dev/null @@ -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 -} \ No newline at end of file diff --git a/vendor/CSG/at32f4xx_product_demo/BUILD.gn b/vendor/CSG/at32f4xx_product_demo/BUILD.gn deleted file mode 100644 index b9ded3fb..00000000 --- a/vendor/CSG/at32f4xx_product_demo/BUILD.gn +++ /dev/null @@ -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" ] - -} diff --git a/vendor/CSG/at32f4xx_product_demo/config.json b/vendor/CSG/at32f4xx_product_demo/config.json deleted file mode 100644 index 9bc03837..00000000 --- a/vendor/CSG/at32f4xx_product_demo/config.json +++ /dev/null @@ -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" -} diff --git a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/BUILD.gn b/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/BUILD.gn deleted file mode 100644 index 194dd633..00000000 --- a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/BUILD.gn +++ /dev/null @@ -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}\"", - ] -} diff --git a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c b/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c deleted file mode 100644 index 3afefa75..00000000 --- a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c +++ /dev/null @@ -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[] = {""}; - -/* »ñÈ¡É豸ÀàÐÍ */ -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) -{ - return BUILD_TIME; -} - -int HalGetFirstApiVersion(void) -{ - return OHOS_FIRST_API_VERSION; -} \ No newline at end of file diff --git a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/vendor.para b/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/vendor.para deleted file mode 100644 index fc396db7..00000000 --- a/vendor/CSG/at32f4xx_product_demo/hals/utils/sys_param/vendor.para +++ /dev/null @@ -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 \ No newline at end of file diff --git a/vendor/CSG/at32f4xx_product_demo/hals/utils/token/BUILD.gn b/vendor/CSG/at32f4xx_product_demo/hals/utils/token/BUILD.gn deleted file mode 100644 index 86f6adea..00000000 --- a/vendor/CSG/at32f4xx_product_demo/hals/utils/token/BUILD.gn +++ /dev/null @@ -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 = [] -} diff --git a/vendor/CSG/at32f4xx_product_demo/hals/utils/token/hal_token.c b/vendor/CSG/at32f4xx_product_demo/hals/utils/token/hal_token.c deleted file mode 100644 index d95e9e60..00000000 --- a/vendor/CSG/at32f4xx_product_demo/hals/utils/token/hal_token.c +++ /dev/null @@ -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); -} \ No newline at end of file diff --git a/vendor/CSG/at32f4xx_product_demo/kernel_configs/debug.config b/vendor/CSG/at32f4xx_product_demo/kernel_configs/debug.config deleted file mode 100644 index 6b6e2503..00000000 --- a/vendor/CSG/at32f4xx_product_demo/kernel_configs/debug.config +++ /dev/null @@ -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 diff --git a/vendor/CSG/at32f4xx_product_demo/ohos.build b/vendor/CSG/at32f4xx_product_demo/ohos.build deleted file mode 100644 index 59531c15..00000000 --- a/vendor/CSG/at32f4xx_product_demo/ohos.build +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parts": { - "product_at32f4xx_product_demo": { - "module_list": [ - "//vendor/CSG/at32f4xx_product_demo:at32f4xx_product_demo" - ] - } - }, - "subsystem": "product_at32f4xx_product_demo" -} \ No newline at end of file diff --git a/vendor/CSG/hc32f4xx_product_demo/BUILD.gn b/vendor/CSG/hc32f4xx_product_demo/BUILD.gn deleted file mode 100644 index 7f7c4937..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/BUILD.gn +++ /dev/null @@ -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.") -} \ No newline at end of file diff --git a/vendor/CSG/hc32f4xx_product_demo/config.json b/vendor/CSG/hc32f4xx_product_demo/config.json deleted file mode 100644 index 33dd772c..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/config.json +++ /dev/null @@ -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" -} diff --git a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/BUILD.gn b/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/BUILD.gn deleted file mode 100644 index e38b834a..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/BUILD.gn +++ /dev/null @@ -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}\"", - ] -} diff --git a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c b/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c deleted file mode 100644 index 14b58221..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c +++ /dev/null @@ -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; -} diff --git a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/vendor.para b/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/vendor.para deleted file mode 100644 index 1d2ea241..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/hals/utils/sys_param/vendor.para +++ /dev/null @@ -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 \ No newline at end of file diff --git a/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/BUILD.gn b/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/BUILD.gn deleted file mode 100644 index 7768e08d..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/BUILD.gn +++ /dev/null @@ -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 = [] -} diff --git a/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/hal_token.c b/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/hal_token.c deleted file mode 100644 index f8c8d193..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/hals/utils/token/hal_token.c +++ /dev/null @@ -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); -} \ No newline at end of file diff --git a/vendor/CSG/hc32f4xx_product_demo/kernel_configs/debug.config b/vendor/CSG/hc32f4xx_product_demo/kernel_configs/debug.config deleted file mode 100644 index f45f8f1a..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/kernel_configs/debug.config +++ /dev/null @@ -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 diff --git a/vendor/CSG/hc32f4xx_product_demo/ohos.build b/vendor/CSG/hc32f4xx_product_demo/ohos.build deleted file mode 100644 index b8ded1f9..00000000 --- a/vendor/CSG/hc32f4xx_product_demo/ohos.build +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parts": { - "product_hc32f4xx_product_demo": { - "module_list": [ - "//vendor/CSG/hc32f4xx_product_demo:hc32f4xx_product_demo" - ] - } - }, - "subsystem": "product_hc32f4xx_product_demo" -} \ No newline at end of file diff --git a/vendor/CSG/stm32f4xx_product_demo/BUILD.gn b/vendor/CSG/stm32f4xx_product_demo/BUILD.gn deleted file mode 100644 index b67ed531..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/BUILD.gn +++ /dev/null @@ -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") { -} diff --git a/vendor/CSG/stm32f4xx_product_demo/config.json b/vendor/CSG/stm32f4xx_product_demo/config.json deleted file mode 100644 index 8efd40d4..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/config.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/BUILD.gn b/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/BUILD.gn deleted file mode 100644 index f9c23dfc..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/BUILD.gn +++ /dev/null @@ -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}\"", - ] -} diff --git a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c b/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c deleted file mode 100644 index bab82817..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/hal_sys_param.c +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/vendor.para b/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/vendor.para deleted file mode 100644 index ca6647b7..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/hals/utils/sys_param/vendor.para +++ /dev/null @@ -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 \ No newline at end of file diff --git a/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/BUILD.gn b/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/BUILD.gn deleted file mode 100644 index 1ce0d138..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/BUILD.gn +++ /dev/null @@ -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 = [] -} diff --git a/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/hal_token.c b/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/hal_token.c deleted file mode 100644 index 3191d662..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/hals/utils/token/hal_token.c +++ /dev/null @@ -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); -} \ No newline at end of file diff --git a/vendor/CSG/stm32f4xx_product_demo/kernel_configs/debug.config b/vendor/CSG/stm32f4xx_product_demo/kernel_configs/debug.config deleted file mode 100644 index 57fb8c57..00000000 --- a/vendor/CSG/stm32f4xx_product_demo/kernel_configs/debug.config +++ /dev/null @@ -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 diff --git a/vendor/CSG/stm32l4xx_product_demo/BUILD.gn b/vendor/CSG/stm32l4xx_product_demo/BUILD.gn deleted file mode 100644 index 0dd2f0b3..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/BUILD.gn +++ /dev/null @@ -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") { -} diff --git a/vendor/CSG/stm32l4xx_product_demo/config.json b/vendor/CSG/stm32l4xx_product_demo/config.json deleted file mode 100644 index e73dcf1e..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/config.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/BUILD.gn b/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/BUILD.gn deleted file mode 100644 index f9c23dfc..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/BUILD.gn +++ /dev/null @@ -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}\"", - ] -} diff --git a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/hal_sys_param.c b/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/hal_sys_param.c deleted file mode 100644 index bab82817..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/hal_sys_param.c +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/vendor.para b/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/vendor.para deleted file mode 100644 index da21d71a..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/hals/utils/sys_param/vendor.para +++ /dev/null @@ -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 \ No newline at end of file diff --git a/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/BUILD.gn b/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/BUILD.gn deleted file mode 100644 index 1ce0d138..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/BUILD.gn +++ /dev/null @@ -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 = [] -} diff --git a/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/hal_token.c b/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/hal_token.c deleted file mode 100644 index 3191d662..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/hals/utils/token/hal_token.c +++ /dev/null @@ -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); -} \ No newline at end of file diff --git a/vendor/CSG/stm32l4xx_product_demo/kernel_configs/debug.config b/vendor/CSG/stm32l4xx_product_demo/kernel_configs/debug.config deleted file mode 100644 index df65f48e..00000000 --- a/vendor/CSG/stm32l4xx_product_demo/kernel_configs/debug.config +++ /dev/null @@ -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