• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
2# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without modification,
5# are permitted provided that the following conditions are met:
6#
7# 1. Redistributions of source code must retain the above copyright notice, this list of
8#    conditions and the following disclaimer.
9#
10# 2. Redistributions in binary form must reproduce the above copyright notice, this list
11#    of conditions and the following disclaimer in the documentation and/or other materials
12#    provided with the distribution.
13#
14# 3. Neither the name of the copyright holder nor the names of its contributors may be used
15#    to endorse or promote products derived from this software without specific prior written
16#    permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30####Kernel command####
31#task_shellcmd.c -utask_shellcmd
32#cpup_shellcmd.c -ucpup_shellcmd
33#shell_shellcmd.c -uhelp_shellcmd
34#mempt_shellcmd.c -ufree_shellcmd -umemcheck_shellcmd -uuname_shellcmd -uwritereg_shellcmd
35#sem_shellcmd.c -usem_shellcmd
36#sysinfo_shellcmd.c -usysteminfo_shellcmd
37#swtmr_shellcmd.c -uswtmr_shellcmd
38#hwi_shell.c -uhwi_shellcmd
39#dynload_shellcmd.c -uldinit_shellcmd -ucall_shellcmd -ufindsym_shellcmd -ulddrop_shellcmd -umclose_shellcmd -umopen_shellcmd
40LITEOS_TABLES_KERNEL_LDFLAGS := \
41    -utask_shellcmd \
42    -uvm_shellcmd \
43    -ucpup_shellcmd \
44    -uhelp_shellcmd \
45    -ufree_shellcmd \
46    -usem_shellcmd \
47    -umutex_shellcmd \
48    -uqueue_shellcmd \
49    -usysteminfo_shellcmd \
50    -uswtmr_shellcmd \
51    -uhwi_shellcmd \
52    -ufindsym_shellcmd \
53    -uzbar_scan_shellcmd \
54    -udmesg_shellcmd \
55    -udate_shellcmd \
56    -ureadExcInfo_shellcmd \
57    -uwatch_shellcmd \
58    -udeadlock_shellcmd \
59    -ukill_shellcmd \
60    -upmm_shellcmd \
61    -upanic_reset_shellcmd \
62    -ushm_shellcmd
63
64####Net command####
65#api_shell.c -uarp_shellcmd -uifconfig_shellcmd -uping_shellcmd -utftp_shellcmd -unetstat_shellcmd -udns_shellcmd -untpdate_shellcmd
66#telnet_loop.c -utelnet_shellcmd
67LITEOS_TABLES_NET_LDFLAGS := \
68    -uarp_shellcmd \
69    -utelnet_shellcmd \
70    -uping_shellcmd \
71    -unetstat_shellcmd \
72    -uifconfig_shellcmd
73
74####FS command####
75#vfs_shellcmd.c -ucd_shellcmd -ucat_shellcmd -uls_shellcmd -upwd_shellcmd -urm_shellcmd -urmdir_shellcmd -umkdir_shellcmd -utouch_shellcmd -uumount_shellcmd -umount_shellcmd -usync_shellcmd -ustatfs_shellcmd -ucp_shellcmd
76#fat_shellcmd.c -uformat_shellcmd
77#mtd_shellcmd.c -upartition_shellcmd
78#proc_shellcmd.c -uwriteproc_shellcmd
79#disk_shellcmd.c -upartinfo_shellcmd
80LITEOS_TABLES_FS_LDFLAGS := \
81    -ucd_shellcmd \
82    -uformat_shellcmd \
83    -upartition_shellcmd \
84    -uwriteproc_shellcmd \
85    -upartinfo_shellcmd \
86    -uumount_shellcmd -umount_shellcmd \
87    -uvirstatfs_shellcmd \
88    -ulsfd_shellcmd \
89    -usu_shellcmd \
90    -uchmod_shellcmd \
91    -uchown_shellcmd \
92    -uchgrp_shellcmd
93
94####Tools command####
95#iperf_shell.c -uiperf_shellcmd
96LITEOS_TABLES_TOOLS_LDFLAGS := \
97    -uiperf_shellcmd \
98    -ulwip_dump_shellcmd
99
100####Extend command####
101#reset_shell.c -ureset_shellcmd
102#bcm_wifi.c -ustartap_shellcmd -ustopap_shellcmd -ubcmwifi_shellcmd
103#ddrs_shell.c -uhiddrs_shellcmd
104#nand_shell.c -unand_bad_shellcmd
105#i2c_shell.c -ui2c_read_shellcmd -ui2c_write_shellcmd
106#spi_shell.c -ussp_read_shellcmd -ussp_write_shellcmd
107#uart_shell.c -uuart_config_shellcmd -uuart_write_shellcmd -uuart_read_shellcmd -uuart_close_shellcmd
108LITEOS_TABLES_EXTEND_LDFLAGS := \
109    -ureset_shellcmd \
110    -ustartap_shellcmd \
111    -uhiddrs_shellcmd \
112    -unand_bad_shellcmd \
113    -ui2c_read_shellcmd \
114    -ussp_read_shellcmd \
115    -uuart_config_shellcmd\
116    -uusb_debug_shellcmd \
117    -uOsPmInit
118
119LITEOS_TABLES_KERNEL_INIT_LDFLAGS := \
120    -uOsTraceInit \
121    -ulos_vfs_init \
122    -uProcFsInit \
123    -uOsDriverRandomInit \
124    -uHieventInit \
125    -uOsBsdInit \
126    -uShmInit \
127    -uOsDmesgInit \
128    -uOsLkLoggerInit \
129    -uOsCpupInit \
130    -uOsFutexInit \
131    -uOsSysWorkQueueInit \
132    -uOsSyscallHandleInit \
133    -upipe_init \
134    -uOomTaskInit \
135    -uOsCpupGuardCreator \
136    -uOsMpInit \
137    -uOsResourceFreeTaskCreate \
138    -uOsSystemInit \
139    -uOsBBoxDriverInit \
140    -uOsBBoxSystemAdapterInit \
141    -uOsHiDumperDriverInit
142
143LITEOS_TABLES_DRIVER_LDFLAGS := \
144    -ui2c_init \
145    -ugpio_init \
146    -uregulator_init \
147    -uhispi_init \
148    -uhifmc100_init \
149    -uhisfc350_init \
150    -unand_hifmc100_init \
151    -uhifmc100_parallel_init \
152    -usd_mci_init \
153    -uhi_mci_init \
154    -upl011_init \
155    -uhinfc620_init \
156    -uhisnfc100_init \
157    -uregulator_machine_init \
158    -uhisimeidia_regulator_init \
159    -ucpufreq_init  \
160    -uhisilicon_cpufreq_init \
161    -ucpufreq_machine_init  \
162    -udevfreq_init \
163    -umedia_devfreq_init \
164    -udevfreq_machine_init\
165    -uhieth_machine_init\
166    -uhigmac_machine_init \
167    -umachine_init
168
169####FS MAP####
170LITEOS_TABLES_FSMAP_LDFLAGS := \
171    -uramfs_fsmap \
172    -uromfs_fsmap \
173    -unfs_fsmap \
174    -ufat_fsmap \
175    -ujffs_fsmap \
176    -uprocfs_fsmap \
177    -ug_fsmap
178
179#ifdef LOSCFG_FS_ZPFS
180LITEOS_TABLES_FSMAP_LDFLAGS += -uzpfs_fsmap
181#endif
182
183LITEOS_TABLES_LDFLAGS := \
184    $(LITEOS_TABLES_KERNEL_LDFLAGS)\
185    $(LITEOS_TABLES_NET_LDFLAGS) \
186    $(LITEOS_TABLES_FS_LDFLAGS) \
187    $(LITEOS_TABLES_TOOLS_LDFLAGS) \
188    $(LITEOS_TABLES_EXTEND_LDFLAGS) \
189    $(LITEOS_TABLES_FSMAP_LDFLAGS) \
190    $(LITEOS_TABLES_DRIVER_LDFLAGS) \
191    $(LITEOS_TABLES_KERNEL_INIT_LDFLAGS)
192
193