author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Fri, 07 Apr 2017 17:56:36 -0700 | |
changeset 7851 | f82a18f72950 |
parent 7812 | ffe9ca8c9421 |
permissions | -rw-r--r-- |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
1 |
# CDDL HEADER START |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
2 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
3 |
# The contents of this file are subject to the terms of the |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
4 |
# Common Development and Distribution License (the "License"). |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
5 |
# You may not use this file except in compliance with the License. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
6 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
7 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
8 |
# or http://www.opensolaris.org/os/licensing. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
9 |
# See the License for the specific language governing permissions |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
10 |
# and limitations under the License. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
11 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
12 |
# When distributing Covered Code, include this CDDL HEADER in each |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
13 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
14 |
# If applicable, add the following below this CDDL HEADER, with the |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
15 |
# fields enclosed by brackets "[]" replaced with your own identifying |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
16 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
17 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
18 |
# CDDL HEADER END |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
19 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
20 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
21 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7294
diff
changeset
|
22 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
23 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
24 |
BUILD_BITS= 64_and_32 |
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
25 |
COMPILER=gcc |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
27 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
28 |
PATH=$(dir $(CC)):$(USRBINDIR):$(GNUBIN) |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
29 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
30 |
COMPONENT_NAME= gmp |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
31 |
COMPONENT_VERSION= 6.1.2 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
219
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://gmplib.org/ |
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
33 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
35 |
sha256:87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= https://gmplib.org/download/gmp/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1048
diff
changeset
|
37 |
COMPONENT_BUGDB= library/gnump |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7294
diff
changeset
|
38 |
COMPONENT_ANITYA_ID= 1186 |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
39 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
40 |
TPNO= 33317 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
41 |
TPNO_4.3.2= 16955 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
42 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
43 |
COMPONENT_VERSION_1= 4.3.2 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
44 |
COMPONENT_SRC_1= $(COMPONENT_NAME)-$(COMPONENT_VERSION_1) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
45 |
COMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
46 |
COMPONENT_ARCHIVE_HASH_1= \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
47 |
sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
48 |
COMPONENT_ARCHIVE_URL_1= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE_1) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
49 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
50 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
51 |
COMPONENT_PREP_ACTION = (cd $(@D) ; $(AUTORECONF) -fiv) |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
52 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
53 |
# We need to build an extra static version of this library for |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
54 |
# GRUB/Wanboot support. |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
55 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
56 |
WANBOOT_CONFIGURE.amd64 = $(BUILD_DIR)/wanboot-amd64/.configured |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
57 |
WANBOOT_BUILD.amd64 = $(BUILD_DIR)/wanboot-amd64/.built |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
58 |
WANBOOT_INSTALL.amd64 = $(BUILD_DIR)/wanboot-amd64/.installed |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
59 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
60 |
CONFIGURE_32_and_64 += $(WANBOOT_CONFIGURE.$(MACH64)) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
61 |
BUILD_32_and_64 += $(WANBOOT_BUILD.$(MACH64)) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
62 |
INSTALL_32_and_64 += $(WANBOOT_INSTALL.$(MACH64)) |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
63 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
64 |
$(BUILD_DIR_64)/.installed: $(WANBOOT_INSTALL.$(MACH64)) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
65 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
66 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
67 |
# Macros to configure, build, and install the old version so we can contiune |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
68 |
# to deliver runtime support for GCC until a newer build of GCC built against |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
69 |
# the new GNU MP is part of the CBE. Once the newer GCC packages are |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
70 |
# on the build systems, we can stop building and delivering the old version. |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
71 |
BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
72 |
BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64) |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
73 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
74 |
$(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
75 |
$(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
76 |
$(BUILD_OLD_DIR_32)/.configured: BITS=32 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
77 |
$(BUILD_OLD_DIR_64)/.configured: BITS=64 |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
78 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
79 |
CONFIGURE_32 += $(BUILD_OLD_DIR_32)/.configured |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
80 |
CONFIGURE_64 += $(BUILD_OLD_DIR_64)/.configured |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
81 |
|
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
82 |
BUILD_32 += $(BUILD_OLD_DIR_32)/.built |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
83 |
BUILD_64 += $(BUILD_OLD_DIR_64)/.built |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
84 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
85 |
INSTALL_32 += $(BUILD_OLD_DIR_32)/.installed |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
86 |
INSTALL_64 += $(BUILD_OLD_DIR_64)/.installed |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
87 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
88 |
# install the old version first |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
89 |
$(BUILD_DIR_32)/.installed: $(BUILD_OLD_DIR_32)/.installed |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
90 |
$(BUILD_DIR_64)/.installed: $(BUILD_OLD_DIR_64)/.installed |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
91 |
# |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
92 |
# End old version |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
93 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
94 |
include $(WS_MAKE_RULES)/gnu-component.mk |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
95 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
96 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
97 |
MCS = mcs |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
98 |
STRIP = strip |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
99 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
100 |
# Set the wanboot CFLAGS as needed for the wanboot compilation |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
101 |
CFLAGS.wanboot += -D_BOOT |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
102 |
CFLAGS.wanboot += -g |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
103 |
CFLAGS.wanboot += -falign-jumps=1 |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
104 |
CFLAGS.wanboot += -falign-loops=1 |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
105 |
CFLAGS.wanboot += -falign-functions |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
106 |
CFLAGS.wanboot += -mno-mmx |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
107 |
CFLAGS.wanboot += -mno-3dnow |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
108 |
CFLAGS.wanboot += -fno-dwarf2-cfi-asm |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
109 |
CFLAGS.wanboot += -fno-asynchronous-unwind-tables |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
110 |
CFLAGS.wanboot += -fno-common |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
111 |
CFLAGS.wanboot += -mcmodel=large |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
112 |
CFLAGS.wanboot += -fno-stack-protector |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
113 |
CFLAGS.wanboot += -mno-stack-arg-probe |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
114 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
115 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
116 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
117 |
# We want to run tests in a stripped environment so nothing interferes |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
118 |
COMPONENT_TEST_ENV += -i |
7294
61f1f259467a
24683688 subversion fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5682
diff
changeset
|
119 |
|
3823
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
120 |
COMPONENT_TEST_TRANSFORMS += \ |
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
121 |
'-e "s/^make\[[0-9]\{1,\}\]/make/g"' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
122 |
'-n ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
123 |
'-e "/make:.*directory/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
124 |
'-e "/PASS/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
125 |
'-e "/FAIL/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
126 |
'-e "/SKIP/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
127 |
'-e "/ERROR/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
128 |
'-e "/=====/p" ' \ |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
129 |
'-e "/TOTAL/p" ' |
3823
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
130 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
131 |
PARCH.32 = $(MACH:i386=i386-pc) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
132 |
PARCH.64 = $(MACH:i386=x86_64-pc) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
133 |
GNU_TRIPLE.32 = $(PARCH.32:sparc=sparc-sun)-solaris$(SOLARIS_VERSION) |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
134 |
GNU_TRIPLE.64 = $(PARCH.64:sparc=sparcv9-sun)-solaris$(SOLARIS_VERSION) |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
135 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
136 |
CONFIGURE_OPTIONS += --host $(GNU_TRIPLE.$(BITS)) |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
137 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
138 |
CONFIGURE_OPTIONS.shared += --enable-shared |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
139 |
CONFIGURE_OPTIONS.shared += --disable-static |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
140 |
CONFIGURE_OPTIONS += --disable-libtool-lock |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
141 |
CONFIGURE_OPTIONS += --disable-alloca |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
142 |
CONFIGURE_OPTIONS.shared += --enable-cxx |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
143 |
CONFIGURE_OPTIONS += --enable-fft |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
144 |
CONFIGURE_OPTIONS += --disable-fat |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
145 |
CONFIGURE_OPTIONS.shared += --with-pic |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
146 |
|
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
147 |
# Set the wanboot configure options as needed for wanboot |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
148 |
|
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
149 |
CONFIGURE_OPTIONS.wanboot += --disable-assert |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
150 |
CONFIGURE_OPTIONS.wanboot += --disable-cxx |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
151 |
CONFIGURE_OPTIONS.wanboot += --disable-nails |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
152 |
CONFIGURE_OPTIONS.wanboot += --disable-profiling |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
153 |
CONFIGURE_OPTIONS.wanboot += --disable-minithres |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
154 |
CONFIGURE_OPTIONS.wanboot += --disable-shared |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
155 |
CONFIGURE_OPTIONS.wanboot += --enable-static |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
156 |
CONFIGURE_OPTIONS.wanboot += --disable-libtool-lock |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
157 |
CONFIGURE_OPTIONS.wanboot += --without-readline |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
158 |
CONFIGURE_OPTIONS.wanboot += --without-pic |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
159 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
160 |
COMPONENT_POST_INSTALL_ACTION.shared = \ |
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
161 |
(cd $(PROTOUSRINCDIR) ; $(MV) -f gmp.h gmp-$(BITS).h) |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
162 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
163 |
COMPONENT_POST_INSTALL_ACTION.wanboot = \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
164 |
( $(MKDIR) $(PROTOUSRLIBDIR)/grub/wanboot; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
165 |
$(MV) $(PROTOUSRLIBDIR64)/libgmp.a $(PROTO_DIR)/usr/lib/grub/wanboot/libgmp.a; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
166 |
$(STRIP) -x $(PROTOUSRLIBDIR)/grub/wanboot/libgmp.a; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
167 |
$(MCS) -d $(PROTOUSRLIBDIR)/grub/wanboot/libgmp.a; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
168 |
$(AR) ts $(PROTOUSRLIBDIR)/grub/wanboot/libgmp.a ) |
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
169 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5455
diff
changeset
|
170 |
# Skipping this during automated tests since it hangs sometimes |
4286
a7f757b12343
21077655 Several components need to be skipped during automated testing
Bill Rushmore <bill.rushmore@oracle.com>
parents:
4252
diff
changeset
|
171 |
$(SKIP_TEST_AT_TOP_LEVEL) |
a7f757b12343
21077655 Several components need to be skipped during automated testing
Bill Rushmore <bill.rushmore@oracle.com>
parents:
4252
diff
changeset
|
172 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
173 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
174 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
175 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
176 |
$(BUILD_DIR)/$(MACH32)/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.shared) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
177 |
$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.shared) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
178 |
$(BUILD_DIR)/wanboot-amd64/.configured: BITS=64 |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
179 |
$(BUILD_DIR)/wanboot-amd64/.configured: COMPILER=gcc |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
180 |
$(BUILD_DIR)/wanboot-amd64/.configured: CPPFLAGS += $(CPPFLAGS.wanboot) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
181 |
$(BUILD_DIR)/wanboot-amd64/.configured: CFLAGS += $(CFLAGS.wanboot) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
182 |
$(BUILD_DIR)/wanboot-amd64/.configured: CXXFLAGS += $(CXXFLAGS.wanboot) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
183 |
$(BUILD_DIR)/wanboot-amd64/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.wanboot) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
184 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
185 |
build: $(BUILD_32_and_64) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
186 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
187 |
install: $(INSTALL_32_and_64) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
188 |
|
5455
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
189 |
$(BUILD_DIR)/$(MACH32)/.installed: COMPONENT_POST_INSTALL_ACTION = $(COMPONENT_POST_INSTALL_ACTION.shared) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
190 |
$(BUILD_DIR)/$(MACH64)/.installed: COMPONENT_POST_INSTALL_ACTION = $(COMPONENT_POST_INSTALL_ACTION.shared) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
191 |
$(BUILD_DIR)/wanboot-amd64/.installed: COMPONENT_POST_INSTALL_ACTION = $(COMPONENT_POST_INSTALL_ACTION.wanboot) |
7d4ee55b5053
PSARC 2015/566 WANBoot GRUB2 Userland libraries
David Marx <David.M.Marx@Oracle.Com>
parents:
5125
diff
changeset
|
192 |
|
7812
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
193 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
ffe9ca8c9421
17899122 Upgrade GNU MP to 6.1.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
7687
diff
changeset
|
194 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |