• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14SUBSYSTEM_DIR = "//foundation/communication"
15WIFI_ROOT_DIR = "$SUBSYSTEM_DIR/wifi/wifi"
16DHCP_ROOT_DIR = "$SUBSYSTEM_DIR/dhcp"
17dhcp_fuzz_output_path = "dhcp/dhcp/dhcp_fuzz"
18
19declare_args() {
20  VENDOR_NAME = "HUAWEI:openharmony"
21  IPV4_DNS_PRI = "8.8.8.8"
22  IPV4_DNS_SEC = "8.8.4.4"
23}
24
25memory_optimization_cflags = [
26  "-fdata-sections",
27  "-ffunction-sections",
28]
29
30memory_optimization_cflags_cc = [
31  "-fvisibility-inlines-hidden",
32  "-fmerge-all-constants",
33  "-fdata-sections",
34  "-ffunction-sections",
35  "-Os",
36]
37
38memory_optimization_ldflags = [
39  "-Wl,--exclude-libs=ALL",
40  "-Wl,--gc-sections",
41]
42