• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without modification,
4# are permitted provided that the following conditions are met:
5#
6# 1. Redistributions of source code must retain the above copyright notice, this list of
7#    conditions and the following disclaimer.
8#
9# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10#    of conditions and the following disclaimer in the documentation and/or other materials
11#    provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14#    to endorse or promote products derived from this software without specific prior written
15#    permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29ifeq ($(filter $(LITEOSTOPDIR)/config.mk,$(MAKEFILE_LIST)),)
30include $(LITEOSTOPDIR)/config.mk
31endif
32
33HDF_ROOT_DIR = $(LITEOSTOPDIR)/../../drivers/hdf_core/
34
35HDF_CFLAGS := -fstack-protector-strong -fno-common -fsigned-char -fno-strict-aliasing
36
37HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include
38HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/osal
39HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/utils
40HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/utils/include
41HDF_INCLUDE += -I $(HDF_ROOT_DIR)/interfaces/inner_api/core
42HDF_INCLUDE += -I $(HDF_ROOT_DIR)/interfaces/inner_api/utils
43HDF_INCLUDE += -I $(HDF_ROOT_DIR)/interfaces/inner_api/osal/shared
44HDF_INCLUDE += -I $(HDF_ROOT_DIR)/interfaces/inner_api/host/shared
45HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/platform
46HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/core
47HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/net
48HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/include/wifi
49HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/model/network/common/netdevice
50HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/model/storage/include
51HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/model/storage/include/mmc
52HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/model/storage/include/mtd
53HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include
54HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/fwk
55HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/host/include
56HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/manager/include
57HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/shared/include
58HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/common/include/manager
59HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/common/include/host
60HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/network/include
61HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/osal/include
62HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/platform/include
63HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/adc
64HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/dac
65HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/dma
66HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/gpio
67HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/hdmi
68HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/i2c
69HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/i2s
70HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/i3c
71HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/mipi
72HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/pcie
73HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/pwm
74HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/pin
75HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/rtc
76HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/regulator
77HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/spi
78HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/uart
79HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/watchdog
80HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/timer
81HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/model/storage/include
82HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/model/storage/include/mmc
83HDF_INCLUDE += -I $(HDF_ROOT_DIR)/adapter/khdf/liteos/model/storage/include/mtd
84HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/adapter/vnode/include
85HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/core/adapter/syscall/include
86HDF_INCLUDE += -I $(LITEOSTOPDIR)/bsd/compat/linuxkpi/include
87LOCAL_CFLAGS += $(HDF_INCLUDE)
88LOCAL_CFLAGS += $(HDF_CFLAGS)
89
90HDF_DRIVER = $(HDF_ROOT_DIR)/adapter/khdf/liteos/hdf_driver.mk
91