diff options
author | Ferass El Hafidi <vitali64pmemail@protonmail.com> | 2023-05-08 19:03:10 +0200 |
---|---|---|
committer | Ferass El Hafidi <vitali64pmemail@protonmail.com> | 2023-05-08 19:03:10 +0200 |
commit | f9ed707f171c8069e99e24e24c3da73d8b6f5716 (patch) | |
tree | 4da9838d387c8bc260e83f3f51f5dfa83e0b48ae /Makefile | |
download | amlogic-bl2-master.tar.gz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e74f386 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +include $(buildsrc)/config.mk +include $(buildtree)/include/autoconf.mk +include $(buildtree)/.config + +ARMCC_$(CONFIG_ENABLE_ARMCC_DEBUGROM)=$(shell echo __CC_ARM | armcc -E - | tail -n 1) +ifneq ($(ARMCC_y),) +targetComplier=arm +else +targetComplier=gcc +endif + +MAKEFLAGS += --no-print-directory + +.PHONY: all clean realclean distclean + +all: + $(Q)$(MAKE) -f Makefile.$(targetComplier) + +#ifndef CONFIG_M3 +# $(MAKE) -f Makefile.ddr_init +#endif + +ifdef CONFIG_AML_EXT_PGM + $(MAKE) -f Makefile.ft +endif + +ifdef CONFIG_AML_SECU_BOOT_V2 + $(MAKE) -f Makefile.usb +endif +ifeq ($(CONFIG_CMD_RUNARC),y) + $(MAKE) -f Makefile.rbt +endif + +ifeq ($(CONFIG_AML_SUSPEND),y) +ifneq ($(CONFIG_MESON_TRUSTZONE),y) + $(MAKE) -f Makefile.krbt +endif +endif + +realclean distclean: + $(Q)$(MAKE) -f Makefile.$(targetComplier) distclean
\ No newline at end of file |