blob: ab3547863ec91a9b74a51fc92a89d2f2ce66e9fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# $NetBSD: bootstrap.mk,v 1.6 2015/03/06 12:11:54 tnn Exp $
#
# This file contains a map of available binary bootstrap toolchains
# and which kit to use for each supported platform.
#
# Instructions for regenerating a bootstrap kit:
# 1) Prepare a new chroot environment in which to build the kit
# 2) If the running kernel version is not a release, use pkgtools/libkver
# 3) Disable the x11 PKG_OPTION in openjdk7
# 4) "make"
# 5) cd $(make show-var VARNAME=BUILDDIR)
# 6) mv j2sdk-image bootstrap
# 7) cd bootstrap; rm -r demo man release sample src.zip
# 8) When preparing kits for NetBSD 7 and above with gcc, copy libgcc_s.so.*
# and libstdc++.so.* from base to bootstrap/jre/lib/${LIBDIR_ARCH}.
# This will ensure that MKLLVM=yes/MKGCC=no user in the future can run
# the bootstrap toolchain. For targets that use jdk-zero-vm you need
# to include libffi.so.* as well.
# 9) tar cf - bootstrap | xz -9c > bootstrap-xxx.tar.xz
# 10) gpg2 -a --detach-sign bootstrap-xxx.tar.xz
# 11) Upload archive and signature to ${MASTER_SITE_LOCAL:=openjdk7/}
#
# All binary kits from now on MUST have an accompanying PGP signature from
# the person who prepared the kit. Unsigned binaries on ftp will be purged.
ONLY_FOR_PLATFORM= NetBSD-[567].*-i386 NetBSD-[567].*-x86_64
ONLY_FOR_PLATFORM+= NetBSD-7.*-sparc64 NetBSD-7.*-earmv[67]hf
ONLY_FOR_PLATFORM+= DragonFly-[34].*-* SunOS-*-* FreeBSD-10.*-x86_64
BOOT.nb5-i386= bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
BOOT.nb5-amd64= bootstrap-jdk-1.7.76-netbsd-5-amd64-20150301.tar.xz
BOOT.nb6-i386= bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
BOOT.nb6-amd64= bootstrap-jdk-1.7.76-netbsd-6-amd64-20150301.tar.xz
BOOT.nb7-i386= bootstrap-jdk-1.7.76-netbsd-7-i386-20150301.tar.xz
BOOT.nb7-amd64= bootstrap-jdk-1.7.76-netbsd-7-amd64-20150301.tar.xz
BOOT.nb7-sparc64= bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
BOOT.nb7-earmv6hf= bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
BOOT.fbsd10-amd64= bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
#XXX should be regenerated
BOOT.dfly3.6-amd64= bootstrap-jdk7u60-bin-dragonfly-3.6-amd64-20140719.tar.bz2
BOOT.dfly3.8-amd64= bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
.if !empty(MACHINE_PLATFORM:MNetBSD-5.[0-8]*-i386) || make(distinfo)
DISTFILES+= ${BOOT.nb5-i386}
EXTRACT_ONLY+= ${BOOT.nb5-i386}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-5.[0-8]*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.nb5-amd64}
EXTRACT_ONLY+= ${BOOT.nb5-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.[0-8]*-i386) || make(distinfo)
DISTFILES+= ${BOOT.nb6-i386}
EXTRACT_ONLY+= ${BOOT.nb6-i386}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.[0-8]*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.nb6-amd64}
EXTRACT_ONLY+= ${BOOT.nb6-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.99*-i386) || !empty(MACHINE_PLATFORM:MNetBSD-7.*-i386) || make(distinfo)
DISTFILES+= ${BOOT.nb7-i386}
EXTRACT_ONLY+= ${BOOT.nb7-i386}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.99*-x86_64) || !empty(MACHINE_PLATFORM:MNetBSD-7.*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.nb7-amd64}
EXTRACT_ONLY+= ${BOOT.nb7-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-7.*-sparc64) || make(distinfo)
DISTFILES+= ${BOOT.nb7-sparc64}
EXTRACT_ONLY+= ${BOOT.nb7-sparc64}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-7.*-earmv[67]hf) || make(distinfo)
DISTFILES+= ${BOOT.nb7-earmv6hf}
EXTRACT_ONLY+= ${BOOT.nb7-earmv6hf}
.endif
.if !empty(MACHINE_PLATFORM:MDragonFly-3.6*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.dfly3.6-amd64}
EXTRACT_ONLY+= ${BOOT.dfly3.6-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MDragonFly-3.[8-9]*-x86_64) || !empty(MACHINE_PLATFORM:MDragonFly-4.*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.dfly3.8-amd64}
EXTRACT_ONLY+= ${BOOT.dfly3.8-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MFreeBSD-10.*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.fbsd10-amd64}
EXTRACT_ONLY+= ${BOOT.fbsd10-amd64}
.endif
.if ${OPSYS} == "SunOS"
BUILDLINK_DEPMETHOD.sun-jdk7?= build
.include "../../lang/sun-jdk7/buildlink3.mk"
#NB: sun-jdk7 includes sun-jre7/buildlink3.mk
post-extract: copy-bootstrap-jdk
.PHONY: copy-bootstrap-jdk
copy-bootstrap-jdk:
${MKDIR} ${ALT_BOOTDIR}
cd ${BUILDLINK_JAVA_PREFIX.sun-jre7:tA} && pax -rw . ${ALT_BOOTDIR}
.endif
ALT_BOOTDIR= ${WRKDIR}/bootstrap
|