|
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= sbsigntool |
|
33 COMPONENT_VERSION= 0.6 |
|
34 COMPONENT_PROJECT_URL= https://launchpad.net/ubuntu/+source/sbsigntool |
|
35 COMPONENT_ARCHIVE= $(COMPONENT_NAME)_$(COMPONENT_VERSION).orig.tar.gz |
|
36 COMPONENT_ARCHIVE_HASH= \ |
|
37 sha256:84fb0c8f6fb1e79aa418a4f70a3139b38d5630043b28291c875f383e9b4294b8 |
|
38 COMPONENT_ARCHIVE_URL= https://launchpad.net/ubuntu/+archive/primary/+files/$(COMPONENT_ARCHIVE) |
|
39 |
|
40 TPNO= 27912 |
|
41 |
|
42 include $(WS_MAKE_RULES)/common.mk |
|
43 |
|
44 studio_C99MODE= $(studio_C99_ENABLE) |
|
45 CFLAGS += -I. -I/usr/gnu/include -I/usr/include/ -I/usr/include/efi/x86_64 -I/usr/include/efi/ |
|
46 CONFIGURE_OPTIONS += uuid_CFLAGS="-I/usr/include/uuid" uuid_LIBS="-luuid" |
|
47 PATH=/usr/gnu/bin:/usr/bin |
|
48 |
|
49 COMPONENT_PREP_ACTION = \ |
|
50 (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv) |
|
51 |
|
52 COMPONENT_PRE_TEST_ACTION = \ |
|
53 (cp test-x86_64_sol2.lds $(SOURCE_DIR)/tests/.) |
|
54 |
|
55 include $(WS_MAKE_RULES)/shared-targets.mk |
|
56 |
|
57 COMPONENT_TEST_TRANSFORMS += \ |
|
58 '-n -e "/tests passed/p" ' \ |
|
59 '-e "/PASS/p" ' \ |
|
60 '-e "/FAIL/p" ' |
|
61 |
|
62 ifeq ($(MACH), i386) |
|
63 REQUIRED_PACKAGES += library/libgnuefi |
|
64 endif |
|
65 REQUIRED_PACKAGES += library/security/openssl |
|
66 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |