Makefile revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
64N/A# $Id$
64N/A#* @file
64N/A# Makefile - assembling the iso image for experimenting with EFI.
64N/A#/
64N/A#
64N/A#
64N/A# Copyright (C) 2009-2012 Oracle Corporation
64N/A#
64N/A# This file is part of VirtualBox Open Source Edition (OSE), as
64N/A# available from http://www.virtualbox.org. This file is free software;
64N/A# you can redistribute it and/or modify it under the terms of the GNU
64N/A# General Public License (GPL) as published by the Free Software
64N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
64N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
64N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
64N/A#
64N/A# The contents of this file may alternatively be used under the terms
64N/A# of the Common Development and Distribution License Version 1.0
64N/A# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
64N/A# VirtualBox OSE distribution, in which case the provisions of the
75N/A# CDDL are applicable instead of those of the GPL.
75N/A#
2899N/A# You may elect to license modified versions of this file under the
64N/A# terms and conditions of either the GPL or the CDDL or both.
64N/A#
64N/A#/
64N/A
64N/A#
752N/A# Here we add modules to be burn on iso-image
618N/A#
64N/ASOURCES += VBoxInterceptorDxe.efi
64N/ASOURCES += VBoxMimicryDxe.efi
844N/A
844N/Aifeq ($(BUILD_ARCH), IA32)
64N/AARCH_SUFFIX=
1258N/Aelse
64N/AARCH_SUFFIX=$(BUILD_ARCH)
2899N/Aendif
2899N/A
64N/ABUILD_ARCH ?= IA32
64N/ABUILD_DIR=$(WORKSPACE)/Build/VBoxPkg$(ARCH_SUFFIX)/DEBUG_UNIXGCC/$(BUILD_ARCH)
64N/A
64N/AISO_DIR=efi-app
1591N/AFILES_TO_ISO=$(foreach file, $(SOURCES), $(addprefix $(ISO_DIR)/, $(file)))
1591N/A
64N/ADEST=efi-app.iso
64N/Aall:${DEST}
64N/A
64N/A$(DEST):$(FILES_TO_ISO)
1591N/A mkisofs -R -o $@ $(basename $@)
64N/A
64N/A$(ISO_DIR)/%.efi:$(BUILD_DIR)/%.efi
1591N/A cp $< $@
64N/A
1591N/Aclean:
181N/A $(RM) -rf ${DEST} $(FILES_TO_ISO)
1591N/A