-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·500 lines (421 loc) · 16.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
#===============================================================================
# export
#===============================================================================
.EXPORT_ALL_VARIABLES:
SDK_DIR := $(CURDIR)
include base.mak
CFG_HI_EXPORT_FLAG=y
# This is the default target. It must be the first declared target.
.DEFAULT_GOAL := help
#===============================================================================
# build
#===============================================================================
.PHONY: build clean
ifeq ($(CFG_HI_ADVCA_SUPPORT),y)
PROGRAMMER := advca_programmer
endif
build: prebuilts hiboot $(PROGRAMMER) rootbox
ifeq ($(CFG_HI_FS_BUILDIN),y)
$(AT)make -C $(KERNEL_DIR) fs_buildin
else
$(AT)make $(IMAGES)
ifeq ($(CFG_HI_ADVCA_TYPE)_$(CFG_HI_LOADER_APPLOADER), CONAX_y)
$(AT)cp -f $(LINUX_DIR)/arch/$(CFG_HI_CPU_ARCH)/boot/uImage $(HI_IMAGE_DIR)/hi_kernel.bin
$(AT)test -e $(HI_IMAGE_DIR)/hi_kernel.bin && test -e $(HI_IMAGE_DIR)/rootfs.squashfs \
&& $(MKBOOTIMG) --kernel $(HI_IMAGE_DIR)/hi_kernel.bin --ramdisk $(HI_IMAGE_DIR)/rootfs.squashfs \
--base $(CFG_HI_APPLOADER_INITRD_BASE_ADDR) -o $(HI_IMAGE_DIR)/apploader.bin
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_NAND_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_EMMC_SUPPORT),y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_EMMC_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_SPI_SUPPORT)_$(CFG_HI_EMMC_SUPPORT),y_y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_SPI_EMMC_IMAGE_DIR)/
endif
endif
endif
$(AT)rm -rf $(HI_IMAGE_DIR)/hi_kernel.bin $(HI_IMAGE_DIR)/apploader.bin $(HI_IMAGE_DIR)/rootfs.squashfs
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(SAMPLE_DIR) all
endif
$(AT)make signature
clean:
$(AT)rm -rf $(HI_OUT_DIR)
$(AT)test ! -d $(KERNEL_SRC_DIR).patch || rm -rf $(KERNEL_SRC_DIR)
#====================================================================================
# global targets
#====================================================================================
.PHONY: signature signature_clean
#++++++++++++++++++++++++++++++++++++++++++++++++++++
SIGNATURE_SCRIPT_DIR := none
ifeq ($(CFG_HI_ADVCA_SUPPORT),y)
ifeq ($(CFG_HI_ADVCA_TYPE),CONAX)
SIGNATURE_SCRIPT_DIR := Conax
else ifeq ($(CFG_HI_ADVCA_TYPE),VERIMATRIX)
ifeq ($(CFG_HI_ADVCA_VMX_3RD_SIGN),y)
SIGNATURE_SCRIPT_DIR := Verimatrix/advance/SignBy3rd
else
SIGNATURE_SCRIPT_DIR := Verimatrix/advance/SignByVmx
endif
else ifeq ($(CFG_HI_ADVCA_TYPE),VERIMATRIX_ULTRA)
SIGNATURE_SCRIPT_DIR := Verimatrix/ultra
else ifeq ($(CFG_HI_ADVCA_TYPE)_$(CFG_HI_CHIP_TYPE),NAGRA_hi3796mv200)
SIGNATURE_SCRIPT_DIR := Nagra/3796mv200
else ifeq ($(CFG_HI_ADVCA_TYPE)_$(CFG_HI_CHIP_TYPE),NAGRA_hi3716mv420)
SIGNATURE_SCRIPT_DIR := Nagra/3716mv420
else ifeq ($(CFG_HI_CHIP_TYPE),hi3796mv200)
SIGNATURE_SCRIPT_DIR := Basic
endif
endif
CREATE_SIGNATURE_DIR= $(HI_OUT_DIR)/tools/linux/utils/advca
signature:
ifneq ($(SIGNATURE_SCRIPT_DIR),none)
mkdir -p $(CREATE_SIGNATURE_DIR)
cp -rf $(SDK_DIR)/tools/linux/utils/advca/* $(CREATE_SIGNATURE_DIR)/
make -C $(CREATE_SIGNATURE_DIR)/CreateSignature/$(SIGNATURE_SCRIPT_DIR) all
endif
signature_clean:
ifneq ($(SIGNATURE_SCRIPT_DIR),none)
rm -rf $(CREATE_SIGNATURE_DIR)
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
-rm -rf $(HI_NAND_IMAGE_DIR)/*.sig $(HI_NAND_IMAGE_DIR)/FinalBoot.bin $(HI_NAND_IMAGE_DIR)/*signature* $(HI_NAND_IMAGE_DIR)/*enc
endif
ifeq ($(CFG_HI_EMMC_SUPPORT),y)
-rm -rf $(HI_EMMC_IMAGE_DIR)/*.sig $(HI_EMMC_IMAGE_DIR)/FinalBoot.bin $(HI_EMMC_IMAGE_DIR)/*signature* $(HI_EMMC_IMAGE_DIR)/*enc
endif
ifeq ($(CFG_HI_SPI_SUPPORT)_$(CFG_HI_EMMC_SUPPORT),y_y)
-rm -rf $(HI_SPI_EMMC_IMAGE_DIR)/*.sig $(HI_SPI_EMMC_IMAGE_DIR)/FinalBoot.bin $(HI_SPI_EMMC_IMAGE_DIR)/*signature* $(HI_SPI_EMMC_IMAGE_DIR)/*enc
endif
endif
#====================================================================================
# tools
#====================================================================================
.PHONY: tools tools_clean
#++++++++++++++++++++++++++++++++++++++++++++++++++++
tools:
$(AT)make -C $(HI_TOOLS_DIR) all
tools_clean:
$(AT)make -C $(HI_TOOLS_DIR) clean
#====================================================================================
# prebuilts
#====================================================================================
.PHONY: prebuilts
include prebuilts.mak
prebuilts:
$(AT)make prebuilts_compose
$(AT)echo "make prebuilts over"
#====================================================================================
# hiboot
#====================================================================================
.PHONY: hiboot hiboot_clean advca_programmer
#++++++++++++++++++++++++++++++++++++++++++++++++++++
hiboot:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
ifneq ($(CFG_HI_TWOSTAGEBOOT_SUPPORT),y)
$(AT)make -C $(BOOT_DIR) all $(if $(HI_OUT_DIR),O=$(HI_OUT_DIR)/obj/source/boot,)
else
$(AT)make -C $(BOOT_DIR) all $(if $(HI_OUT_DIR),O=$(HI_OUT_DIR)/obj/source/boot_fbl,) CFG_HI_BOOT_ENV_STARTADDR=0
$(AT)make -C $(BOOT_DIR) all $(if $(HI_OUT_DIR),O=$(HI_OUT_DIR)/obj/source/boot_sbl,)
endif
endif
hiboot_clean:
$(AT)make -C $(BOOT_DIR) clean $(if $(HI_OUT_DIR),O=$(HI_OUT_DIR)/obj/source/boot,)
advca_programmer:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(BOOT_DIR) advca_programmer_install BOOT_ADVCA_PROGRAMMER=y $(if $(HI_OUT_DIR),O=$(HI_OUT_DIR)/obj/source/programmer,)
endif
#====================================================================================
# linux
#====================================================================================
.PHONY: linux linux_clean
linux:
$(AT)make -C $(KERNEL_DIR) all
linux_clean:
$(AT)make -C $(KERNEL_DIR) clean
#====================================================================================
# rootfs
#====================================================================================
.PHONY: rootfs rootfs_clean
rootfs:
$(AT)make -C $(ROOTFS_SRC_DIR) all
rootfs_clean:
$(AT)make -C $(ROOTFS_SRC_DIR) clean
#====================================================================================
# common
#====================================================================================
.PHONY: common common_clean
common:
$(AT)make -C $(COMMON_DIR)/api all
common_clean:
$(AT)make -C $(COMMON_DIR)/api clean
#====================================================================================
# msp
#====================================================================================
.PHONY: msp msp_clean
msp:
$(AT)make -C $(MSP_DIR)/api all
msp_clean:
$(AT)make -C $(MSP_DIR)/api clean
#====================================================================================
# hal
#====================================================================================
.PHONY: hal hal_clean
#++++++++++++++++++++++++++++++++++++++++++++++++++++
hal:
ifeq ($(CFG_GSTREAMER_SUPPORT),y)
$(AT)make -C $(HI_HAL_DIR) all
endif
hal_clean:
ifeq ($(CFG_GSTREAMER_SUPPORT),y)
$(AT)make -C $(HI_HAL_DIR) clean
endif
#====================================================================================
# higo
#====================================================================================
.PHONY: higo higo_clean
higo:
$(AT)make -C $(MSP_DIR)/api/higo all
higo_clean:
$(AT)make -C $(MSP_DIR)/api/higo clean
#====================================================================================
# jpeg
#====================================================================================
.PHONY: jpeg jpeg_clean
jpeg:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(MSP_DIR)/api/jpeg all
endif
jpeg_clean:
$(AT)make -C $(MSP_DIR)/api/jpeg clean
#====================================================================================
# png
#====================================================================================
.PHONY: png png_clean
png:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(MSP_DIR)/api/png all
endif
png_clean:
$(AT)make -C $(MSP_DIR)/api/png clean
#====================================================================================
# omx
#====================================================================================
.PHONY: omx omx_clean
omx:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(MSP_DIR)/api/omx all
endif
omx_clean:
$(AT)make -C $(MSP_DIR)/api/omx clean
#====================================================================================
# gpu
#====================================================================================
.PHONY: gpu gpu_clean
gpu:
ifneq ($(CFG_HI_LOADER_APPLOADER),y)
$(AT)make -C $(MSP_DIR)/api/gpu all
endif
gpu_clean:
$(AT)make -C $(MSP_DIR)/api/gpu clean
#====================================================================================
# component
#====================================================================================
.PHONY: component component_clean
component:
$(AT)make -C $(COMPONENT_DIR) all
component_clean:
$(AT)make -C $(COMPONENT_DIR) clean
#====================================================================================
# tee
#====================================================================================
.PHONY: tee tee_clean
tee:
ifeq ($(CFG_HI_TEE_SUPPORT),y)
$(AT)[ ! -d $(HI_TEE_OS_DIR) ] || make -C $(HI_TEE_OS_DIR) all
endif
tee_clean:
$(AT)[ ! -d $(HI_TEE_OS_DIR) ] || make -C $(HI_TEE_OS_DIR) clean
#====================================================================================
# sample
#====================================================================================
.PHONY: sample sample_clean
sample:
$(AT)make -C $(SAMPLE_DIR) all
sample_clean:
$(AT)make -C $(SAMPLE_DIR) clean
#====================================================================================
# rootbox
#====================================================================================
include rootbox.mak
.PHONY: rootbox rootbox_clean
rootbox: linux tee tools rootfs common msp higo jpeg png gpu omx hal component
ifeq ($(CFG_HI_DIRECTFB_SUPPORT),y)
$(AT)make -C $(COMPONENT_DIR)/directfb all
endif
ifeq ($(CFG_HI_QT_SUPPORT),y)
$(AT)make -C $(COMPONENT_DIR)/qt all
endif
$(AT)make rootbox_compose
$(AT)echo "rootbox is ready"
rootbox_clean:
$(AT)rm -rf $(HI_ROOTBOX_DIR)
ifeq ($(CFG_HI_QT_SUPPORT),y)
$(AT)make -C $(COMPONENT_DIR)/qt clean
endif
#====================================================================================
# fs
#====================================================================================
.PHONY: fs cramfs squashfs jffs2 yaffs extfs ubiimg
#++++++++++++++++++++++++++++++++++++++++++++++++++++
IMAGES :=
ifeq ($(CFG_HI_ROOTFS_CRAMFS),y)
IMAGES += cramfs
endif
ifeq ($(CFG_HI_ROOTFS_SQUASHFS),y)
IMAGES += squashfs
endif
ifeq ($(CFG_HI_ROOTFS_JFFS2),y)
IMAGES += jffs2
endif
ifeq ($(CFG_HI_ROOTFS_YAFFS),y)
IMAGES += yaffs
endif
ifeq ($(CFG_HI_ROOTFS_EXT4),y)
IMAGES += extfs
endif
ifeq ($(CFG_HI_ROOTFS_UBIIMG),y)
IMAGES += ubiimg
endif
fs: $(IMAGES)
ifdef CFG_HI_SPI_BLOCK_SIZE
SPI_BLOCK_SIZE := $(CFG_HI_SPI_BLOCK_SIZE)
else
SPI_BLOCK_SIZE := 0x10000 0x20000 0x40000
endif
YAFFS_MODE := 2k-1bit 4k-1bit 4k-4byte 4k-24bit1k 8k-24bit1k 8k-40bit1k
ifdef CFG_HI_NAND_PAGE_SIZE
ifdef CFG_HI_NAND_ECC_TYPE
YAFFS_MODE :=$(CFG_HI_NAND_PAGE_SIZE)-$(CFG_HI_NAND_ECC_TYPE)
endif
endif
cramfs:
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)test -d $(HI_NAND_IMAGE_DIR) || mkdir -p $(HI_NAND_IMAGE_DIR)
$(MKCRAMFS) $(HI_ROOTBOX_DIR) $(HI_NAND_IMAGE_DIR)/rootfs.cramfs
endif
squashfs:
$(MKSQUASHFS) $(HI_ROOTBOX_DIR) $(HI_IMAGE_DIR)/rootfs.squashfs \
-no-fragments -noappend -noI -comp xz -T $(RULEFILE) -G $(RULEDBG)
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)test -d $(HI_NAND_IMAGE_DIR) || mkdir -p $(HI_NAND_IMAGE_DIR)
$(AT)cp -f $(HI_IMAGE_DIR)/rootfs.squashfs $(HI_NAND_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_EMMC_SUPPORT),y)
$(AT)test -d $(HI_EMMC_IMAGE_DIR) || mkdir -p $(HI_EMMC_IMAGE_DIR)
$(AT)cp -f $(HI_IMAGE_DIR)/rootfs.squashfs $(HI_EMMC_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_SPI_SUPPORT)_$(CFG_HI_EMMC_SUPPORT),y_y)
$(AT)test -d $(HI_SPI_EMMC_IMAGE_DIR) || mkdir -p $(HI_SPI_EMMC_IMAGE_DIR)
$(AT)cp -f $(HI_IMAGE_DIR)/rootfs.squashfs $(HI_SPI_EMMC_IMAGE_DIR)/
endif
jffs2:
ifeq ($(CFG_HI_SPI_SUPPORT),y)
$(AT)(for ix in $(SPI_BLOCK_SIZE) ; do ( \
if [ "$$ix" == "0x10000" ]; then \
NAME=64k; \
elif [ "$$ix" == "0x20000" ];then \
NAME=128k; \
elif [ "$$ix" == "0x40000" ];then \
NAME=256k; \
fi; \
test -d $(HI_SPI_IMAGE_DIR) || mkdir -p $(HI_SPI_IMAGE_DIR); \
$(MKJFFS2) -d $(HI_ROOTBOX_DIR) -l -e $${ix} -o $(HI_SPI_IMAGE_DIR)/rootfs_$${NAME}.jffs2; \
) done )
endif
yaffs:
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)(for ix in $(YAFFS_MODE) ; do ( \
NAME=`echo $$ix | sed -s 's/b.*[ket]/b/' | sed -s 's/-//'`; \
PARAM=`echo $$ix | sed -s 's/-/ /'` ; \
test -d $(HI_NAND_IMAGE_DIR) || mkdir -p $(HI_NAND_IMAGE_DIR); \
$(MKYAFFS) $(HI_ROOTBOX_DIR) $(HI_NAND_IMAGE_DIR)/rootfs_$$NAME.yaffs $$PARAM -T $(RULEFILE) -G $(RULEDBG); \
chmod a+r $(HI_NAND_IMAGE_DIR)/rootfs_$$NAME.yaffs; \
) done )
endif
ubiimg:
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)test -d $(HI_NAND_IMAGE_DIR) || mkdir -p $(HI_NAND_IMAGE_DIR)
$(MKUBIIMG) $(CFG_HI_NAND_PAGE_SIZE) $(CFG_HI_NAND_BLOCK_SIZE) $(HI_ROOTBOX_DIR) $(CFG_HI_UBI_PARTITION_SIZE) \
$(HI_NAND_IMAGE_DIR)/rootfs_$(CFG_HI_UBI_PARTITION_SIZE).ubiimg $(RULEFILE) $(RULEDBG)
endif
EMMC_SIZE_STR := $(CFG_HI_EMMC_ROOTFS_SIZE)M
ROOTBOX_SIZE := $(word 1,$(shell du -sh $(HI_ROOTBOX_DIR) 2>/dev/null))
extfs:
$(AT)echo -e "Attention:\n\trootbox size must be less than $(EMMC_SIZE_STR), rootbox size is $(ROOTBOX_SIZE).\n"
$(MKEXT4FS) -l $(EMMC_SIZE_STR) -s $(HI_IMAGE_DIR)/rootfs_$(EMMC_SIZE_STR).ext4 $(HI_ROOTBOX_DIR)
ifeq ($(CFG_HI_EMMC_SUPPORT),y)
$(AT)test -d $(HI_EMMC_IMAGE_DIR) || mkdir -p $(HI_EMMC_IMAGE_DIR)
$(AT)cp -f $(HI_IMAGE_DIR)/rootfs_$(EMMC_SIZE_STR).ext4 $(HI_EMMC_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_SPI_SUPPORT)_$(CFG_HI_EMMC_SUPPORT),y_y)
$(AT)test -d $(HI_SPI_EMMC_IMAGE_DIR) || mkdir -p $(HI_SPI_EMMC_IMAGE_DIR)
$(AT)cp -f $(HI_IMAGE_DIR)/rootfs_$(EMMC_SIZE_STR).ext4 $(HI_SPI_EMMC_IMAGE_DIR)/
endif
$(AT)rm -rf $(HI_IMAGE_DIR)/rootfs_$(EMMC_SIZE_STR).ext4
#====================================================================================
# cfg ops
#====================================================================================
.PHONY: menuconfig
#++++++++++++++++++++++++++++++++++++++++++++++++++++
KCONFIG_SRC_DIR := $(SDK_DIR)/tools/linux/kconfig
KCONFIG_OUT_DIR := $(if $(HI_OUT_DIR),$(HI_OUT_DIR)/tools/linux/kconfig/,$(KCONFIG_SRC_DIR)/)
KCONFIG_EXE := $(KCONFIG_OUT_DIR)himconf
KCONFIG_CFG := scripts/kconfig/mainKconfig
#++++++++++++++++++++++++++++++++++++++++++++++++++++
$(KCONFIG_EXE):
$(AT)mkdir -p $(KCONFIG_OUT_DIR)
$(AT)make -C $(KCONFIG_SRC_DIR) O=$(KCONFIG_OUT_DIR)
#++++++++++++++++++++++++++++++++++++++++++++++++++++
menuconfig: $(KCONFIG_EXE)
$(KCONFIG_EXE) $(KCONFIG_CFG)
$(AT)echo "make $@ over"
#====================================================================================
# build apploader.bin quickly just for the second time
#====================================================================================
loader_rebuild:
$(AT)make -C $(COMPONENT_DIR) loader_clean
$(AT)make -C $(COMPONENT_DIR) loader
ifeq ($(CFG_HI_ADVCA_TYPE), CONAX)
$(AT)make rootbox_compose
$(AT)make $(IMAGES)
$(AT)cp -f $(LINUX_DIR)/arch/$(CFG_HI_CPU_ARCH)/boot/uImage $(HI_IMAGE_DIR)/hi_kernel.bin
$(AT)test -e $(HI_IMAGE_DIR)/hi_kernel.bin && test -e $(HI_IMAGE_DIR)/rootfs.squashfs \
&& $(MKBOOTIMG) --kernel $(HI_IMAGE_DIR)/hi_kernel.bin --ramdisk $(HI_IMAGE_DIR)/rootfs.squashfs \
--base $(CFG_HI_APPLOADER_INITRD_BASE_ADDR) -o $(HI_IMAGE_DIR)/apploader.bin
ifeq ($(CFG_HI_NAND_FLASH_SUPPORT),y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_NAND_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_EMMC_SUPPORT),y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_EMMC_IMAGE_DIR)/
endif
ifeq ($(CFG_HI_SPI_SUPPORT)_$(CFG_HI_EMMC_SUPPORT),y_y)
$(AT)cp -f $(HI_IMAGE_DIR)/apploader.bin $(HI_SPI_EMMC_IMAGE_DIR)/
endif
$(AT)rm -rf $(HI_IMAGE_DIR)/hi_kernel.bin $(HI_IMAGE_DIR)/apploader.bin $(HI_IMAGE_DIR)/rootfs.squashfs
else
$(AT)make -C $(KERNEL_DIR) fs_buildin
endif
#====================================================================================
#====================================================================================
# help
#====================================================================================
.PHONY: help
#++++++++++++++++++++++++++++++++++++++++++++++++++++
GREEN="\e[32;1m"
NORMAL="\e[39m"
RED="\e[31m"
help:
$(AT)echo -e $(GREEN)
$(AT)cat $(HI_SCRIPTS_DIR)/MakeHelp | less
$(AT)echo -e $(NORMAL)