-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile.main
55 lines (43 loc) · 1.14 KB
/
Makefile.main
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
#*******************************************************************************
# Copyright (c) 2008-2016,2022 VMware, Inc. All rights reserved.
# SPDX-License-Identifier: GPL-2.0
#*******************************************************************************
#
# esx-boot master Makefile
#
TOPDIR := .
include env/common.mk
MAKEFLAGS += -I ../env
SHAREDLIBS := bootlib \
libbp \
libc \
libfat \
libcrc \
libmd5 \
libuart \
mbedtls \
zlib \
libfdt
SUBDIRS := $(SHAREDLIBS) \
$(FIRMWARE) \
tests \
mboot \
safeboot
# Building rules
.PHONY: all clean $(SUBDIRS)
all: $(SUBDIRS)
$(SUBDIRS): check_env
@$(MAKE) -C $@
# Ability to build just menu
menu: check_env
@$(MAKE) -C uefi menu
# Dependencies
mboot safeboot: $(SHAREDLIBS) $(FIRMWARE)
$(FIRMWARE): $(SHAREDLIBS)
# Cleaning rules
clean:
$(call RMDIR,build)
check_env:
ifndef BUILDENV
$(error BUILDENV must be defined)
endif