1 | # $Id$
|
---|
2 | #* @file
|
---|
3 | # Makefile - assembling the iso image for experimenting with EFI.
|
---|
4 | #/
|
---|
5 | #
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009-2010 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 | #/
|
---|
22 |
|
---|
23 | #
|
---|
24 | # Here we add modules to be burn on iso-image
|
---|
25 | #
|
---|
26 | SOURCES += VBoxInterceptorDxe.efi
|
---|
27 | SOURCES += VBoxMimicryDxe.efi
|
---|
28 |
|
---|
29 | ifeq ($(BUILD_ARCH), IA32)
|
---|
30 | ARCH_SUFFIX=
|
---|
31 | else
|
---|
32 | ARCH_SUFFIX=$(BUILD_ARCH)
|
---|
33 | endif
|
---|
34 |
|
---|
35 | BUILD_ARCH ?= IA32
|
---|
36 | BUILD_DIR=$(WORKSPACE)/Build/VBoxPkg$(ARCH_SUFFIX)/DEBUG_UNIXGCC/$(BUILD_ARCH)
|
---|
37 |
|
---|
38 | ISO_DIR=efi-app
|
---|
39 | FILES_TO_ISO=$(foreach file, $(SOURCES), $(addprefix $(ISO_DIR)/, $(file)))
|
---|
40 |
|
---|
41 | DEST=efi-app.iso
|
---|
42 | all:${DEST}
|
---|
43 |
|
---|
44 | $(DEST):$(FILES_TO_ISO)
|
---|
45 | mkisofs -R -o $@ $(basename $@)
|
---|
46 |
|
---|
47 | $(ISO_DIR)/%.efi:$(BUILD_DIR)/%.efi
|
---|
48 | cp $< $@
|
---|
49 |
|
---|
50 | clean:
|
---|
51 | $(RM) -rf ${DEST} $(FILES_TO_ISO)
|
---|