代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/device_hisilicon_drivers 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
# 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.
SOC_COMPANY := $(subst $\",,$(LOSCFG_DEVICE_COMPANY))
SOC_PLATFORM := $(subst $\",,$(LOSCFG_PLATFORM))
SOC_BOARD := $(subst $\",,$(LOSCFG_PRODUCT_NAME))
CUR_COMPILER := $(if $(LOSCFG_COMPILER_CLANG_LLVM),llvm,gcc)
CUR_OS := ohos
ifeq ($(SOC_BOARD), ipcamera_hi3516dv300_liteos)
SOC_BOARD := hi3516dv300
endif
ifeq ($(SOC_BOARD), ipcamera_hi3518ev300_liteos)
SOC_BOARD := hi3518ev300
endif
HISILICON_DRIVERS_ROOT := $(LITEOSTOPDIR)/../../device/$(SOC_COMPANY)/drivers/
HISILICON_DRIVERS_SOURCE_ROOT := $(LITEOSTOPDIR)/../../device/$(SOC_COMPANY)/drivers/source/
BUILD_FROM_SOURCE := $(shell if [ -d $(HISILICON_DRIVERS_SOURCE_ROOT) ]; then echo y; else echo n; fi)
HDF_INCLUDE += -I $(LITEOSTOPDIR)/../../device/$(SOC_COMPANY)/$(SOC_BOARD)/sdk_liteos/config/board/include/
HDF_INCLUDE += -I $(LITEOSTOPDIR)/../../device/$(SOC_COMPANY)/$(SOC_BOARD)/sdk_liteos/config/board/include/hisoc
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_I2C), y)
LITEOS_BASELIB += -lhdf_i2c
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/i2c
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_ADC), y)
LITEOS_BASELIB += -lhdf_adc
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/adc
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_SPI), y)
LITEOS_BASELIB += -lhdf_spi
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/spi
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_GPIO), y)
LITEOS_BASELIB += -lhdf_gpio
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/gpio
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_PIN), y)
LITEOS_BASELIB += -lhdf_pin
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/pin
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_WATCHDOG), y)
LITEOS_BASELIB += -lhdf_watchdog
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/watchdog
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_MMC), y)
LITEOS_BASELIB += -lhdf_mmc
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/mmc
endif
ifeq ($(LOSCFG_DRIVERS_HDF_STORAGE_MTD), y)
LITEOS_BASELIB += -lhdf_mtd_hisilicon
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/mtd
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_RTC), y)
LITEOS_BASELIB += -lhdf_rtc
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/rtc
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_UART), y)
LITEOS_BASELIB += -lhdf_uart
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/uart
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_I2S), y)
LITEOS_BASELIB += -lhdf_i2s
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/i2s
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_PWM), y)
LITEOS_BASELIB += -lhdf_pwm
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/pwm
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_HISI_SDK), y)
LITEOS_BASELIB += -lhdf_hisi_sdk
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/hisi_sdk
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_MIPI_DSI), y)
LITEOS_BASELIB += -lhdf_mipi_dsi
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/mipi_dsi
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_MIPI_CSI), y)
LITEOS_BASELIB += -lhdf_mipi_csi
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/mipi_csi
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_DMAC), y)
LITEOS_BASELIB += -lhdf_dmac
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/dmac
endif
ifeq ($(BUILD_FROM_SOURCE), y)
ifeq ($(LOSCFG_DRIVERS_HIEDMAC), y)
LITEOS_BASELIB += -lhiedmac
LIB_SUBDIRS += $(HISILICON_DRIVERS_SOURCE_ROOT)/hiedmac
LITEOS_HIDMAC_INCLUDE += -I $(HISILICON_DRIVERS_SOURCE_ROOT)/hiedmac/include
endif
endif
ifeq ($(LOSCFG_DRIVERS_HIETH_SF), y)
LITEOS_BASELIB += -lhieth-sf
LIB_SUBDIRS += $(HISILICON_DRIVERS_ROOT)/hieth-sf
LITEOS_HIETH_SF_INCLUDE += -I $(HISILICON_DRIVERS_ROOT)/hieth-sf/include
endif
# mmc dirvers
ifeq ($(LOSCFG_DRIVERS_MMC), y)
LITEOS_BASELIB += -lmmc
endif
# mtd drivers
ifneq ($(LOSCFG_DRIVERS_HDF_STORAGE_MTD), y)
ifeq ($(LOSCFG_DRIVERS_MTD), y)
ifeq ($(BUILD_FROM_SOURCE), y)
LIB_SUBDIRS += $(HISILICON_DRIVERS_SOURCE_ROOT)/mtd/common
LITEOS_MTD_SPI_NOR_INCLUDE += -I $(HISILICON_DRIVERS_SOURCE_ROOT)/mtd/common/include
else
LITEOS_MTD_SPI_NOR_INCLUDE += -I $(HISILICON_DRIVERS_ROOT)/include/mtd/common/include
endif
LITEOS_BASELIB += -lmtd_common
ifeq ($(LOSCFG_DRIVERS_MTD_SPI_NOR), y)
ifeq ($(LOSCFG_DRIVERS_MTD_SPI_NOR_HISFC350), y)
NOR_DRIVER_DIR := hisfc350
else ifeq ($(LOSCFG_DRIVERS_MTD_SPI_NOR_HIFMC100), y)
NOR_DRIVER_DIR := hifmc100
endif
ifeq ($(BUILD_FROM_SOURCE), y)
LITEOS_BASELIB += -lspinor_flash
LIB_SUBDIRS += $(HISILICON_DRIVERS_SOURCE_ROOT)/mtd/spi_nor
LITEOS_MTD_SPI_NOR_INCLUDE += -I $(HISILICON_DRIVERS_SOURCE_ROOT)/mtd/spi_nor/include
else
ifeq ($(LOSCFG_SHELL), y)
LITEOS_BASELIB += -lspinor_flash
else
LITEOS_BASELIB += -lspinor_flash_noshell
endif
LITEOS_MTD_SPI_NOR_INCLUDE += -I $(HISILICON_DRIVERS_ROOT)/include/mtd/spi_nor/include
endif
endif
ifeq ($(LOSCFG_DRIVERS_MTD_NAND), y)
NAND_DRIVER_DIR := hifmc100
LITEOS_BASELIB += -lnand_flash
LIB_SUBDIRS += $(HISILICON_DRIVERS_SOURCE_ROOT)/mtd/nand
LITEOS_MTD_NAND_INCLUDE += -I $(HISILICON_DRIVERS_ROOT)/mtd/nand/include
endif
endif
endif
# wifi dirvers
ifeq ($(LOSCFG_DRIVERS_HDF_WIFI), y)
LITEOS_BASELIB += -lhdf_vendor_wifi
ifeq ($(LOSCFG_DRIVERS_HI3881), y)
LITEOS_BASELIB += -lhi3881
endif
endif
ifeq ($(BUILD_FROM_SOURCE), n)
LITEOS_LD_PATH += -L$(HISILICON_DRIVERS_ROOT)/libs/$(CUR_OS)/$(CUR_COMPILER)/$(SOC_PLATFORM)
endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。