-
Notifications
You must be signed in to change notification settings - Fork 1
/
spl_make
executable file
·73 lines (53 loc) · 2.53 KB
/
spl_make
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
include $(SPLDIR)/config.mk
include $(TOPDIR)/include/autoconf.mk
include $(TOPDIR)/include/autoconf.mk.dep
export ARCH CPU BOARD SOC
MAKEFLAGS += --no-print-directory
include $(SPLDIR)/config.mk
all:
spl_lib: $(TIMESTAMP_FILE) $(VERSION_FILE)
@echo $(ARCH) $(CPU) $(BOARD) $(SOC)
@echo nand=$(CONFIG_STORAGE_MEDIA_NAND) mmc=$(CONFIG_STORAGE_MEDIA_MMC) nor=$(CONFIG_STORAGE_MEDIA_SPINOR)
$(MAKE) -C $(SPLDIR)/spl all
fes:
$(MAKE) -C $(SPLDIR)/fes_init all
@$(TOPDIR)/tools/gen_check_sum $(SPLDIR)/fes_init/fes1.bin fes1_$(CONFIG_SYS_BOARD).bin > /dev/null
# @cp -v fes1_$(CONFIG_SYS_BOARD).bin $(TOPDIR)/../../tools/pack/chips/$(CONFIG_SYS_BOARD)/bin/fes1_$(CONFIG_SYS_BOARD).bin
boot0:
$(MAKE) -C $(SPLDIR)/boot0 all
ifdef CONFIG_STORAGE_MEDIA_NAND
@$(TOPDIR)/tools/gen_check_sum $(SPLDIR)/boot0/boot0_nand.bin boot0_nand_$(CONFIG_SYS_BOARD).bin > /dev/null
# @cp -v boot0_nand_$(CONFIG_SYS_BOARD).bin $(TOPDIR)/../../tools/pack/chips/$(CONFIG_SYS_BOARD)/bin/boot0_nand_$(CONFIG_SYS_BOARD).bin
endif
ifdef CONFIG_STORAGE_MEDIA_MMC
@$(TOPDIR)/tools/gen_check_sum $(SPLDIR)/boot0/boot0_sdcard.bin boot0_sdcard_$(CONFIG_SYS_BOARD).bin > /dev/null
# @cp -v boot0_sdcard_$(CONFIG_SYS_BOARD).bin $(TOPDIR)/../../tools/pack/chips/$(CONFIG_SYS_BOARD)/bin/boot0_sdcard_$(CONFIG_SYS_BOARD).bin
endif
ifdef CONFIG_STORAGE_MEDIA_SPINOR
@$(TOPDIR)/tools/gen_check_sum $(SPLDIR)/boot0/boot0_spinor.bin boot0_spinor_$(CONFIG_SYS_BOARD).bin > /dev/null
# @cp -v boot0_spinor_$(CONFIG_SYS_BOARD).bin $(TOPDIR)/../../tools/pack/chips/$(CONFIG_SYS_BOARD)/bin/boot0_spinor_$(CONFIG_SYS_BOARD).bin
endif
sboot:
$(MAKE) -C $(SPLDIR)/sbrom all
@$(TOPDIR)/tools/gen_check_sum $(SPLDIR)/sbrom/sboot.bin sboot_$(CONFIG_SYS_BOARD).bin > /dev/null
# @cp -v sboot_$(CONFIG_SYS_BOARD).bin $(TOPDIR)/../../tools/pack/chips/$(CONFIG_SYS_BOARD)/bin/sboot_$(CONFIG_SYS_BOARD).bin
ifeq ($(CONFIG_SUNXI_SECURE_SYSTEM),y)
spl: fes boot0 sboot
else
spl: fes boot0
endif
mkdepend :
depend:
#
# Auto-generate the autoconf.mk file (which is included by all makefiles)
#
# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
# the dep file is only include in this top level makefile to determine when
# to regenerate the autoconf.mk file.
$(SPLDIR)/autoconf.mk: $(obj)include/config.h $(obj)include/configs/$(SOC).h
@echo Generating $@ ; \
set -e ; \
: Extract the config macros ; \
$(CPP) $(ALL_CFLAGS) -DDO_DEPS_ONLY -dM $(SRCTREE)/include/common.h > [email protected] && \
sed -n -f $(SRCTREE)/tools/scripts/define2mk.sed [email protected] > $@; \