Makefile revision c58f1213e628a545081c70e26c6b67a841cff880
2621N/A# $Id$
2621N/A#* @file
2621N/A# Makefile - assembling the iso image for experimenting with EFI.
2621N/A#/
2621N/A#
2621N/A#
2621N/A# Copyright (C) 2009-2012 Oracle Corporation
2621N/A#
2621N/A# This file is part of VirtualBox Open Source Edition (OSE), as
2621N/A# available from http://www.virtualbox.org. This file is free software;
2621N/A# you can redistribute it and/or modify it under the terms of the GNU
2621N/A# General Public License (GPL) as published by the Free Software
2621N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
2621N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2621N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2621N/A#
2621N/A#/
2621N/A
2621N/A#
2621N/A# Here we add modules to be burn on iso-image
2621N/A#
2621N/ASOURCES += VBoxInterceptorDxe.efi
2621N/ASOURCES += VBoxMimicryDxe.efi
2621N/A
4450N/Aifeq ($(BUILD_ARCH), IA32)
2621N/AARCH_SUFFIX=
2621N/Aelse
2715N/AARCH_SUFFIX=$(BUILD_ARCH)
2621N/Aendif
2626N/A
2626N/ABUILD_ARCH ?= IA32
2621N/ABUILD_DIR=$(WORKSPACE)/Build/VBoxPkg$(ARCH_SUFFIX)/DEBUG_UNIXGCC/$(BUILD_ARCH)
2621N/A
2621N/AISO_DIR=efi-app
2621N/AFILES_TO_ISO=$(foreach file, $(SOURCES), $(addprefix $(ISO_DIR)/, $(file)))
2621N/A
2621N/ADEST=efi-app.iso
2621N/Aall:${DEST}
2621N/A
2621N/A$(DEST):$(FILES_TO_ISO)
4134N/A mkisofs -R -o $@ $(basename $@)
4134N/A
4134N/A$(ISO_DIR)/%.efi:$(BUILD_DIR)/%.efi
4134N/A cp $< $@
2621N/A
2621N/Aclean:
2621N/A $(RM) -rf ${DEST} $(FILES_TO_ISO)
2621N/A