blob: 36a701db4a39777f8fafbe97e9b58f0add07a8c1 [file] [log] [blame]
# Copyright 2017 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
# check for disallowed options
ifneq ($(MODULE_DEPS)$(MODULE_LIBS)$(MODULE_STATIC_LIBS),)
$(error $(MODULE) $(MODULE_TYPE) modules must not use MODULE_{DEPS,LIBS,STATIC_LIBS})
endif
MODULE_EFILIB := $(call TOBUILDDIR,EFI_libs/lib$(MODULE_NAME).a)
$(MODULE_EFILIB): $(MODULE_OBJS)
@$(MKDIR)
$(call BUILDECHO,linking efilib $@)
$(NOECHO)rm -f -- "$@"
$(NOECHO)$(EFI_AR) cr $@ $^
ALLEFI_LIBS += $(MODULE_EFILIB)
GENERATED += $(MODULE_EFILIB)