|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 BUILD_ARCH= i386 |
|
27 BUILD_BITS= 64 |
|
28 # component fails to build with Studio |
|
29 COMPILER= gcc |
|
30 include ../../make-rules/shared-macros.mk |
|
31 |
|
32 COMPONENT_NAME= shim |
|
33 COMPONENT_VERSION= 0.9 |
|
34 COMPONENT_PROJECT_URL= https://github.com/rhinstaller/$(COMPONENT_NAME) |
|
35 COMPONENT_ARCHIVE_HASH= \ |
|
36 sha256:d277d7bea0b5d554dacf284d84252a5e995fb4ef54b6de5ec6296c6c2a9a21bd |
|
37 COMPONENT_ARCHIVE_URL= https://github.com/rhinstaller/$(COMPONENT_NAME)/archive/$(COMPONENT_VERSION).tar.gz |
|
38 COMPONENT_BUGDB= boot/shim |
|
39 |
|
40 TPNO= 25414 |
|
41 |
|
42 BUILD_STYLE= justmake |
|
43 TEST_TARGET= $(NO_TESTS) |
|
44 include $(WS_MAKE_RULES)/common.mk |
|
45 |
|
46 COMPONENT_PREP_ACTION +=(cp elf_x86_64_efi_sol2.lds $(SOURCE_DIR)) |
|
47 |
|
48 ORACLE_CERT=$(SOURCE_DIR)/../OL7Secureboot.cer |
|
49 export VENDOR_CERT_FILE=$(ORACLE_CERT) |
|
50 PATH=$(GNUBIN):/usr/bin |
|
51 |
|
52 REQUIRED_PACKAGES += developer/gcc |
|
53 REQUIRED_PACKAGES += developer/gnu-binutils |
|
54 ifeq ($(MACH), i386) |
|
55 REQUIRED_PACKAGES += developer/sbsigntool |
|
56 REQUIRED_PACKAGES += library/libgnuefi |
|
57 endif |
|
58 REQUIRED_PACKAGES += text/text-utilities |