author | michaelm |
Thu, 14 Nov 2019 10:40:08 +0000 | |
branch | unixdomainchannels |
changeset 59077 | 85df93a18fe0 |
parent 58908 | 73bb9c4002cc |
permissions | -rw-r--r-- |
18021 | 1 |
# |
58908
73bb9c4002cc
8233381: Update copyright year in build system files
ihse
parents:
58558
diff
changeset
|
2 |
# Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
18021 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
24 |
# |
|
25 |
||
26 |
########################################################################################## |
|
27 |
# |
|
28 |
# Workhorse makefile for creating ONE cross compiler |
|
20363 | 29 |
# Needs either to be from BUILD -> BUILD OR have |
18021 | 30 |
# BUILD -> HOST prebuilt |
31 |
# |
|
20363 | 32 |
# NOTE: There is a bug here. We don't limit the |
33 |
# PATH when building BUILD -> BUILD, which means that |
|
18021 | 34 |
# if you configure after you've once build the BUILD->BUILD |
35 |
# compiler THAT one will be picked up as the compiler for itself. |
|
36 |
# This is not so great, especially if you did a partial delete |
|
20363 | 37 |
# of the target tree. |
18021 | 38 |
# |
39 |
# Fix this... |
|
40 |
# |
|
41 |
||
42 |
$(info TARGET=$(TARGET)) |
|
43 |
$(info HOST=$(HOST)) |
|
44 |
$(info BUILD=$(BUILD)) |
|
45 |
||
20363 | 46 |
ARCH := $(word 1,$(subst -, ,$(TARGET))) |
50472 | 47 |
|
48 |
ifeq ($(TARGET), arm-linux-gnueabihf) |
|
49 |
ARCH=armhfp |
|
50 |
endif |
|
51 |
||
48839 | 52 |
$(info ARCH=$(ARCH)) |
18021 | 53 |
|
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
54 |
ifeq ($(BASE_OS), OL) |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
55 |
BASE_URL := http://yum.oracle.com/repo/OracleLinux/OL6/4/base/$(ARCH)/ |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
56 |
LINUX_VERSION := OL6.4 |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
57 |
else ifeq ($(BASE_OS), Fedora) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
58 |
DEFAULT_OS_VERSION := 27 |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
59 |
ifeq ($(BASE_OS_VERSION), ) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
60 |
BASE_OS_VERSION := $(DEFAULT_OS_VERSION) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
61 |
endif |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
62 |
ifeq ($(filter x86_64 armhfp, $(ARCH)), ) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
63 |
FEDORA_TYPE := fedora-secondary |
50472 | 64 |
else |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
65 |
FEDORA_TYPE := fedora/linux |
50472 | 66 |
endif |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
67 |
ARCHIVED := $(shell [ $(BASE_OS_VERSION) -lt $(DEFAULT_OS_VERSION) ] && echo true) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
68 |
ifeq ($(ARCHIVED),true) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
69 |
BASE_URL := https://archives.fedoraproject.org/pub/archive/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/ |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
70 |
else |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
71 |
BASE_URL := https://dl.fedoraproject.org/pub/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/ |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
72 |
endif |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
73 |
LINUX_VERSION := Fedora_$(BASE_OS_VERSION) |
49204
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
74 |
else |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
75 |
$(error Unknown base OS $(BASE_OS)) |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
76 |
endif |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
77 |
|
18021 | 78 |
########################################################################################## |
79 |
# Define external dependencies |
|
80 |
||
81 |
# Latest that could be made to work. |
|
58558
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
82 |
GCC_VER := 8.3.0 |
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
83 |
ifeq ($(GCC_VER), 8.3.0) |
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
84 |
gcc_ver := gcc-8.3.0 |
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
85 |
binutils_ver := binutils-2.32 |
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
86 |
ccache_ver := 3.7.3 |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
87 |
mpfr_ver := mpfr-3.1.5 |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
88 |
gmp_ver := gmp-6.1.2 |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
89 |
mpc_ver := mpc-1.0.3 |
58558
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
90 |
gdb_ver := gdb-8.3 |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
91 |
else ifeq ($(GCC_VER), 7.3.0) |
48839 | 92 |
gcc_ver := gcc-7.3.0 |
93 |
binutils_ver := binutils-2.30 |
|
58558
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
94 |
ccache_ver := 3.3.6 |
48839 | 95 |
mpfr_ver := mpfr-3.1.5 |
96 |
gmp_ver := gmp-6.1.2 |
|
97 |
mpc_ver := mpc-1.0.3 |
|
98 |
gdb_ver := gdb-8.1 |
|
99 |
else ifeq ($(GCC_VER), 4.9.2) |
|
100 |
gcc_ver := gcc-4.9.2 |
|
101 |
binutils_ver := binutils-2.25 |
|
58558
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
102 |
ccache_ver := 3.2.1 |
48839 | 103 |
mpfr_ver := mpfr-3.0.1 |
104 |
gmp_ver := gmp-4.3.2 |
|
105 |
mpc_ver := mpc-1.0.1 |
|
106 |
gdb_ver := gdb-7.12.1 |
|
107 |
else |
|
108 |
$(error Unsupported GCC version) |
|
109 |
endif |
|
18021 | 110 |
|
48839 | 111 |
GCC := http://ftp.gnu.org/pub/gnu/gcc/$(gcc_ver)/$(gcc_ver).tar.xz |
112 |
BINUTILS := http://ftp.gnu.org/pub/gnu/binutils/$(binutils_ver).tar.xz |
|
58558
67daaa6c8d2b
8232133: Change to GCC 8.3 for building on Linux at Oracle
erikj
parents:
54148
diff
changeset
|
113 |
CCACHE := https://github.com/ccache/ccache/releases/download/v$(ccache_ver)/ccache-$(ccache_ver).tar.xz |
53556 | 114 |
MPFR := https://www.mpfr.org/${mpfr_ver}/${mpfr_ver}.tar.bz2 |
20363 | 115 |
GMP := http://ftp.gnu.org/pub/gnu/gmp/${gmp_ver}.tar.bz2 |
48839 | 116 |
MPC := http://ftp.gnu.org/pub/gnu/mpc/${mpc_ver}.tar.gz |
117 |
GDB := http://ftp.gnu.org/gnu/gdb/${gdb_ver}.tar.xz |
|
118 |
||
49204
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
119 |
# RPMs used by all BASE_OS |
20363 | 120 |
RPM_LIST := \ |
121 |
kernel-headers \ |
|
34100
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
122 |
glibc glibc-headers glibc-devel \ |
20363 | 123 |
cups-libs cups-devel \ |
124 |
libX11 libX11-devel \ |
|
125 |
xorg-x11-proto-devel \ |
|
126 |
alsa-lib alsa-lib-devel \ |
|
127 |
libXext libXext-devel \ |
|
128 |
libXtst libXtst-devel \ |
|
129 |
libXrender libXrender-devel \ |
|
52357 | 130 |
libXrandr libXrandr-devel \ |
20363 | 131 |
freetype freetype-devel \ |
132 |
libXt libXt-devel \ |
|
133 |
libSM libSM-devel \ |
|
134 |
libICE libICE-devel \ |
|
135 |
libXi libXi-devel \ |
|
136 |
libXdmcp libXdmcp-devel \ |
|
137 |
libXau libXau-devel \ |
|
34592 | 138 |
libgcc \ |
42425 | 139 |
zlib zlib-devel \ |
47433
6331ad007664
8189119: Devkit for Linux needs to include fontconfig-devel
erikj
parents:
47253
diff
changeset
|
140 |
libffi libffi-devel \ |
48839 | 141 |
fontconfig fontconfig-devel \ |
142 |
systemtap-sdt-devel \ |
|
143 |
# |
|
18021 | 144 |
|
145 |
########################################################################################## |
|
146 |
# Define common directories and files |
|
147 |
||
148 |
# Ensure we have 32-bit libs also for x64. We enable mixed-mode. |
|
149 |
ifeq (x86_64,$(ARCH)) |
|
20363 | 150 |
LIBDIRS := lib64 lib |
151 |
CFLAGS_lib := -m32 |
|
18021 | 152 |
else |
20363 | 153 |
LIBDIRS := lib |
18021 | 154 |
endif |
155 |
||
156 |
# Define directories |
|
48839 | 157 |
BUILDDIR := $(OUTPUT_ROOT)/$(HOST)/$(TARGET) |
20363 | 158 |
TARGETDIR := $(PREFIX)/$(TARGET) |
23428
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
159 |
SYSROOT := $(TARGETDIR)/sysroot |
48839 | 160 |
DOWNLOAD := $(OUTPUT_ROOT)/download |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
161 |
DOWNLOAD_RPMS := $(DOWNLOAD)/rpms/$(TARGET)-$(LINUX_VERSION) |
48839 | 162 |
SRCDIR := $(OUTPUT_ROOT)/src |
18021 | 163 |
|
164 |
# Marker file for unpacking rpms |
|
20363 | 165 |
rpms := $(SYSROOT)/rpms_unpacked |
18021 | 166 |
|
20363 | 167 |
# Need to patch libs that are linker scripts to use non-absolute paths |
168 |
libs := $(SYSROOT)/libs_patched |
|
18021 | 169 |
|
48839 | 170 |
################################################################################ |
171 |
# Download RPMs |
|
172 |
download-rpms: |
|
173 |
mkdir -p $(DOWNLOAD_RPMS) |
|
174 |
# Only run this if rpm dir is empty. |
|
175 |
ifeq ($(wildcard $(DOWNLOAD_RPMS)/*.rpm), ) |
|
176 |
cd $(DOWNLOAD_RPMS) && \ |
|
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
177 |
wget -r -np -nd $(patsubst %, -A "*%*.rpm", $(RPM_LIST)) $(BASE_URL) |
48839 | 178 |
endif |
179 |
||
18021 | 180 |
########################################################################################## |
181 |
# Unpack source packages |
|
182 |
||
20363 | 183 |
# Generate downloading + unpacking of sources. |
18021 | 184 |
define Download |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
185 |
# Allow override |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
186 |
$(1)_DIRNAME ?= $(basename $(basename $(notdir $($(1))))) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
187 |
$(1)_DIR = $(abspath $(SRCDIR)/$$($(1)_DIRNAME)) |
20363 | 188 |
$(1)_CFG = $$($(1)_DIR)/configure |
189 |
$(1)_FILE = $(DOWNLOAD)/$(notdir $($(1))) |
|
18021 | 190 |
|
20363 | 191 |
$$($(1)_CFG) : $$($(1)_FILE) |
192 |
mkdir -p $$(SRCDIR) |
|
48839 | 193 |
tar -C $$(SRCDIR) -xf $$< |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
194 |
$$(foreach p,$$(abspath $$(wildcard patches/$$(notdir $$($(1)_DIR)).patch)), \ |
20363 | 195 |
echo PATCHING $$(p) ; \ |
196 |
patch -d $$($(1)_DIR) -p1 -i $$(p) ; \ |
|
197 |
) |
|
198 |
touch $$@ |
|
18021 | 199 |
|
20363 | 200 |
$$($(1)_FILE) : |
201 |
wget -P $(DOWNLOAD) $$($(1)) |
|
18021 | 202 |
endef |
203 |
||
204 |
# Download and unpack all source packages |
|
48839 | 205 |
$(foreach p,GCC BINUTILS CCACHE MPFR GMP MPC GDB,$(eval $(call Download,$(p)))) |
18021 | 206 |
|
207 |
########################################################################################## |
|
208 |
# Unpack RPMS |
|
209 |
||
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
210 |
RPM_ARCHS := $(ARCH) noarch |
48839 | 211 |
ifeq ($(ARCH),x86_64) |
212 |
ifeq ($(BUILD),$(HOST)) |
|
213 |
ifeq ($(TARGET),$(HOST)) |
|
214 |
# When building the native compiler for x86_64, enable mixed mode. |
|
215 |
RPM_ARCHS += i386 i686 |
|
216 |
endif |
|
217 |
endif |
|
49204
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
218 |
else ifeq ($(ARCH),i686) |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
219 |
RPM_ARCHS += i386 |
50472 | 220 |
else ifeq ($(ARCH), armhfp) |
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
221 |
RPM_ARCHS += armv7hl |
48839 | 222 |
endif |
223 |
||
224 |
RPM_FILE_LIST := $(sort $(foreach a, $(RPM_ARCHS), \ |
|
225 |
$(wildcard $(patsubst %,$(DOWNLOAD_RPMS)/%*$a.rpm,$(RPM_LIST))) \ |
|
226 |
)) |
|
227 |
||
20363 | 228 |
# Note. For building linux you should install rpm2cpio. |
18021 | 229 |
define unrpm |
48839 | 230 |
$(SYSROOT)/$(notdir $(1)).unpacked : $(1) |
20363 | 231 |
$$(rpms) : $(SYSROOT)/$(notdir $(1)).unpacked |
18021 | 232 |
endef |
233 |
||
20363 | 234 |
%.unpacked : |
235 |
$(info Unpacking target rpms and libraries from $<) |
|
236 |
@(mkdir -p $(@D); \ |
|
237 |
cd $(@D); \ |
|
238 |
rpm2cpio $< | \ |
|
239 |
cpio --extract --make-directories \ |
|
240 |
-f \ |
|
241 |
"./usr/share/doc/*" \ |
|
242 |
"./usr/share/man/*" \ |
|
243 |
"./usr/X11R6/man/*" \ |
|
244 |
"*/X11/locale/*" \ |
|
245 |
|| die ; ) |
|
246 |
touch $@ |
|
18021 | 247 |
|
248 |
$(foreach p,$(RPM_FILE_LIST),$(eval $(call unrpm,$(p)))) |
|
249 |
||
250 |
########################################################################################## |
|
251 |
||
23428
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
252 |
# Note: MUST create a <sysroot>/usr/lib even if not really needed. |
20363 | 253 |
# gcc will use a path relative to it to resolve lib64. (x86_64). |
254 |
# we're creating multi-lib compiler with 32bit libc as well, so we should |
|
18021 | 255 |
# have it anyway, but just to make sure... |
256 |
# Patch libc.so and libpthread.so to force linking against libraries in sysroot |
|
257 |
# and not the ones installed on the build machine. |
|
20363 | 258 |
$(libs) : $(rpms) |
259 |
@echo Patching libc and pthreads |
|
260 |
@(for f in `find $(SYSROOT) -name libc.so -o -name libpthread.so`; do \ |
|
261 |
(cat $$f | sed -e 's|/usr/lib64/||g' \ |
|
262 |
-e 's|/usr/lib/||g' \ |
|
263 |
-e 's|/lib64/||g' \ |
|
264 |
-e 's|/lib/||g' ) > $$f.tmp ; \ |
|
265 |
mv $$f.tmp $$f ; \ |
|
266 |
done) |
|
267 |
@mkdir -p $(SYSROOT)/usr/lib |
|
268 |
@touch $@ |
|
18021 | 269 |
|
270 |
########################################################################################## |
|
42425 | 271 |
# Create links for ffi header files so that they become visible by default when using the |
272 |
# devkit. |
|
48839 | 273 |
ifeq ($(ARCH), x86_64) |
274 |
$(SYSROOT)/usr/include/ffi.h: $(rpms) |
|
275 |
cd $(@D) && rm -f $(@F) && ln -s ../lib/libffi-*/include/$(@F) . |
|
42425 | 276 |
|
48839 | 277 |
$(SYSROOT)/usr/include/ffitarget.h: $(rpms) |
278 |
cd $(@D) && rm -f $(@F) && ln -s ../lib/libffi-*/include/$(@F) . |
|
42425 | 279 |
|
48839 | 280 |
SYSROOT_LINKS += $(SYSROOT)/usr/include/ffi.h $(SYSROOT)/usr/include/ffitarget.h |
281 |
endif |
|
42425 | 282 |
|
283 |
########################################################################################## |
|
18021 | 284 |
|
285 |
# Define marker files for each source package to be compiled |
|
48839 | 286 |
$(foreach t,binutils mpfr gmp mpc gcc ccache gdb,$(eval $(t) = $(TARGETDIR)/$($(t)_ver).done)) |
18021 | 287 |
|
288 |
########################################################################################## |
|
289 |
||
290 |
# Default base config |
|
20363 | 291 |
CONFIG = --target=$(TARGET) \ |
292 |
--host=$(HOST) --build=$(BUILD) \ |
|
293 |
--prefix=$(PREFIX) |
|
18021 | 294 |
|
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
295 |
PATHEXT = $(PREFIX)/bin: |
18021 | 296 |
|
20363 | 297 |
PATHPRE = PATH=$(PATHEXT)$(PATH) |
48839 | 298 |
NUM_CORES := $(shell cat /proc/cpuinfo | grep -c processor) |
299 |
BUILDPAR = -j$(NUM_CORES) |
|
18021 | 300 |
|
301 |
# Default commands to when making |
|
20363 | 302 |
MAKECMD = |
303 |
INSTALLCMD = install |
|
18021 | 304 |
|
305 |
||
20363 | 306 |
declare_tools = CC$(1)=$(2)gcc LD$(1)=$(2)ld AR$(1)=$(2)ar AS$(1)=$(2)as RANLIB$(1)=$(2)ranlib CXX$(1)=$(2)g++ OBJDUMP$(1)=$(2)objdump |
18021 | 307 |
|
308 |
ifeq ($(HOST),$(BUILD)) |
|
20363 | 309 |
ifeq ($(HOST),$(TARGET)) |
310 |
TOOLS = $(call declare_tools,_FOR_TARGET,) |
|
311 |
endif |
|
18021 | 312 |
endif |
313 |
||
20363 | 314 |
TOOLS ?= $(call declare_tools,_FOR_TARGET,$(TARGET)-) |
18021 | 315 |
|
316 |
########################################################################################## |
|
317 |
||
20363 | 318 |
# Create a TARGET bfd + libiberty only. |
18021 | 319 |
# Configure one or two times depending on mulitlib arch. |
20363 | 320 |
# If multilib, the second should be 32-bit, and we resolve |
18021 | 321 |
# CFLAG_<name> to most likely -m32. |
322 |
define mk_bfd |
|
20363 | 323 |
$$(info Libs for $(1)) |
324 |
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \ |
|
325 |
: CFLAGS += $$(CFLAGS_$(1)) |
|
326 |
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \ |
|
327 |
: LIBDIRS = --libdir=$(TARGETDIR)/$(1) |
|
18021 | 328 |
|
20363 | 329 |
bfdlib += $$(TARGETDIR)/$$(binutils_ver)-$(subst /,-,$(1)).done |
330 |
bfdmakes += $$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile |
|
18021 | 331 |
endef |
332 |
||
333 |
# Create one set of bfds etc for each multilib arch |
|
334 |
$(foreach l,$(LIBDIRS),$(eval $(call mk_bfd,$(l)))) |
|
335 |
||
336 |
# Only build these two libs. |
|
20363 | 337 |
$(bfdlib) : MAKECMD = all-libiberty all-bfd |
338 |
$(bfdlib) : INSTALLCMD = install-libiberty install-bfd |
|
18021 | 339 |
|
20363 | 340 |
# Building targets libbfd + libiberty. HOST==TARGET, i.e not |
341 |
# for a cross env. |
|
342 |
$(bfdmakes) : CONFIG = --target=$(TARGET) \ |
|
343 |
--host=$(TARGET) --build=$(BUILD) \ |
|
344 |
--prefix=$(TARGETDIR) \ |
|
345 |
--with-sysroot=$(SYSROOT) \ |
|
346 |
$(LIBDIRS) |
|
18021 | 347 |
|
20363 | 348 |
$(bfdmakes) : TOOLS = $(call declare_tools,_FOR_TARGET,$(TARGET)-) $(call declare_tools,,$(TARGET)-) |
18021 | 349 |
|
350 |
########################################################################################## |
|
351 |
||
20363 | 352 |
$(gcc) \ |
353 |
$(binutils) \ |
|
354 |
$(gmp) \ |
|
355 |
$(mpfr) \ |
|
356 |
$(mpc) \ |
|
357 |
$(bfdmakes) \ |
|
358 |
$(ccache) : ENVS += $(TOOLS) |
|
18021 | 359 |
|
360 |
# libdir to work around hateful bfd stuff installing into wrong dirs... |
|
20363 | 361 |
# ensure we have 64 bit bfd support in the HOST library. I.e our |
18021 | 362 |
# compiler on i686 will know 64 bit symbols, BUT later |
20363 | 363 |
# we build just the libs again for TARGET, then with whatever the arch |
18021 | 364 |
# wants. |
365 |
$(BUILDDIR)/$(binutils_ver)/Makefile : CONFIG += --enable-64-bit-bfd --libdir=$(PREFIX)/$(word 1,$(LIBDIRS)) |
|
366 |
||
367 |
# Makefile creation. Simply run configure in build dir. |
|
53556 | 368 |
# Setting CFLAGS to -O2 generates a much faster ld. |
20363 | 369 |
$(bfdmakes) \ |
370 |
$(BUILDDIR)/$(binutils_ver)/Makefile \ |
|
371 |
: $(BINUTILS_CFG) |
|
372 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
373 |
@mkdir -p $(@D) |
|
374 |
( \ |
|
375 |
cd $(@D) ; \ |
|
53556 | 376 |
$(PATHPRE) $(ENVS) CFLAGS="-O2 $(CFLAGS)" \ |
20363 | 377 |
$(BINUTILS_CFG) \ |
378 |
$(CONFIG) \ |
|
379 |
--with-sysroot=$(SYSROOT) \ |
|
380 |
--disable-nls \ |
|
381 |
--program-prefix=$(TARGET)- \ |
|
382 |
--enable-multilib \ |
|
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
53556
diff
changeset
|
383 |
--enable-gold=default \ |
53556 | 384 |
--enable-threads \ |
48839 | 385 |
--enable-plugins \ |
20363 | 386 |
) > $(@D)/log.config 2>&1 |
387 |
@echo 'done' |
|
18021 | 388 |
|
20363 | 389 |
$(BUILDDIR)/$(mpfr_ver)/Makefile \ |
390 |
: $(MPFR_CFG) |
|
391 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
392 |
@mkdir -p $(@D) |
|
393 |
( \ |
|
394 |
cd $(@D) ; \ |
|
395 |
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \ |
|
396 |
$(MPFR_CFG) \ |
|
397 |
$(CONFIG) \ |
|
398 |
--program-prefix=$(TARGET)- \ |
|
399 |
--enable-shared=no \ |
|
400 |
--with-gmp=$(PREFIX) \ |
|
401 |
) > $(@D)/log.config 2>&1 |
|
402 |
@echo 'done' |
|
18021 | 403 |
|
20363 | 404 |
$(BUILDDIR)/$(gmp_ver)/Makefile \ |
405 |
: $(GMP_CFG) |
|
406 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
407 |
@mkdir -p $(@D) |
|
408 |
( \ |
|
409 |
cd $(@D) ; \ |
|
410 |
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \ |
|
411 |
$(GMP_CFG) \ |
|
412 |
--host=$(HOST) --build=$(BUILD) \ |
|
413 |
--prefix=$(PREFIX) \ |
|
414 |
--disable-nls \ |
|
415 |
--program-prefix=$(TARGET)- \ |
|
416 |
--enable-shared=no \ |
|
417 |
--with-mpfr=$(PREFIX) \ |
|
418 |
) > $(@D)/log.config 2>&1 |
|
419 |
@echo 'done' |
|
18021 | 420 |
|
20363 | 421 |
$(BUILDDIR)/$(mpc_ver)/Makefile \ |
422 |
: $(MPC_CFG) |
|
423 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
424 |
@mkdir -p $(@D) |
|
425 |
( \ |
|
426 |
cd $(@D) ; \ |
|
427 |
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \ |
|
428 |
$(MPC_CFG) \ |
|
429 |
$(CONFIG) \ |
|
430 |
--program-prefix=$(TARGET)- \ |
|
431 |
--enable-shared=no \ |
|
432 |
--with-mpfr=$(PREFIX) \ |
|
433 |
--with-gmp=$(PREFIX) \ |
|
434 |
) > $(@D)/log.config 2>&1 |
|
435 |
@echo 'done' |
|
18021 | 436 |
|
437 |
# Only valid if glibc target -> linux |
|
438 |
# proper destructor handling for c++ |
|
439 |
ifneq (,$(findstring linux,$(TARGET))) |
|
20363 | 440 |
$(BUILDDIR)/$(gcc_ver)/Makefile : CONFIG += --enable-__cxa_atexit |
18021 | 441 |
endif |
442 |
||
50472 | 443 |
ifeq ($(ARCH), armhfp) |
444 |
$(BUILDDIR)/$(gcc_ver)/Makefile : CONFIG += --with-float=hard |
|
445 |
endif |
|
446 |
||
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
447 |
ifneq ($(filter ppc64 ppc64le s390x, $(ARCH)), ) |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
448 |
# We only support 64-bit on these platforms anyway |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
449 |
CONFIG += --disable-multilib |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
450 |
endif |
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
451 |
|
18021 | 452 |
# Want: |
20363 | 453 |
# c,c++ |
454 |
# shared libs |
|
455 |
# multilib (-m32/-m64 on x64) |
|
456 |
# skip native language. |
|
457 |
# and link and assemble with the binutils we created |
|
458 |
# earlier, so --with-gnu* |
|
459 |
$(BUILDDIR)/$(gcc_ver)/Makefile \ |
|
460 |
: $(GCC_CFG) |
|
461 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
462 |
mkdir -p $(@D) |
|
463 |
( \ |
|
464 |
cd $(@D) ; \ |
|
465 |
$(PATHPRE) $(ENVS) $(GCC_CFG) $(EXTRA_CFLAGS) \ |
|
466 |
$(CONFIG) \ |
|
467 |
--with-sysroot=$(SYSROOT) \ |
|
468 |
--enable-languages=c,c++ \ |
|
469 |
--enable-shared \ |
|
470 |
--disable-nls \ |
|
471 |
--with-gnu-as \ |
|
472 |
--with-gnu-ld \ |
|
473 |
--with-mpfr=$(PREFIX) \ |
|
474 |
--with-gmp=$(PREFIX) \ |
|
475 |
--with-mpc=$(PREFIX) \ |
|
476 |
) > $(@D)/log.config 2>&1 |
|
477 |
@echo 'done' |
|
18021 | 478 |
|
479 |
# need binutils for gcc |
|
20363 | 480 |
$(gcc) : $(binutils) |
18021 | 481 |
|
482 |
# as of 4.3 or so need these for doing config |
|
483 |
$(BUILDDIR)/$(gcc_ver)/Makefile : $(gmp) $(mpfr) $(mpc) |
|
20363 | 484 |
$(mpfr) : $(gmp) |
485 |
$(mpc) : $(gmp) $(mpfr) |
|
18021 | 486 |
|
48839 | 487 |
################################################################################ |
488 |
# Build gdb but only where host and target match |
|
489 |
ifeq ($(HOST), $(TARGET)) |
|
490 |
$(BUILDDIR)/$(gdb_ver)/Makefile: $(GDB_CFG) |
|
491 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
492 |
mkdir -p $(@D) |
|
493 |
( \ |
|
494 |
cd $(@D) ; \ |
|
495 |
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" $(GDB_CFG) \ |
|
496 |
$(CONFIG) \ |
|
497 |
--with-sysroot=$(SYSROOT) \ |
|
498 |
) > $(@D)/log.config 2>&1 |
|
499 |
@echo 'done' |
|
500 |
||
501 |
$(gdb): $(gcc) |
|
49204
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
502 |
else |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
503 |
$(BUILDDIR)/$(gdb_ver)/Makefile: |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
504 |
$(info Faking $@, not used when cross-compiling) |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
505 |
mkdir -p $(@D) |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
506 |
echo "install:" > $@ |
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
507 |
@echo 'done' |
48839 | 508 |
endif |
509 |
||
18021 | 510 |
########################################################################################## |
20363 | 511 |
# very straightforward. just build a ccache. it is only for host. |
512 |
$(BUILDDIR)/$(ccache_ver)/Makefile \ |
|
513 |
: $(CCACHE_CFG) |
|
514 |
$(info Configuring $@. Log in $(@D)/log.config) |
|
515 |
@mkdir -p $(@D) |
|
516 |
@( \ |
|
517 |
cd $(@D) ; \ |
|
518 |
$(PATHPRE) $(ENVS) $(CCACHE_CFG) \ |
|
519 |
$(CONFIG) \ |
|
520 |
) > $(@D)/log.config 2>&1 |
|
521 |
@echo 'done' |
|
18021 | 522 |
|
20363 | 523 |
gccpatch = $(TARGETDIR)/gcc-patched |
18021 | 524 |
|
525 |
########################################################################################## |
|
20363 | 526 |
# For some reason cpp is not created as a target-compiler |
18021 | 527 |
ifeq ($(HOST),$(TARGET)) |
20363 | 528 |
$(gccpatch) : $(gcc) link_libs |
529 |
@echo -n 'Creating compiler symlinks...' |
|
530 |
@for f in cpp; do \ |
|
531 |
if [ ! -e $(PREFIX)/bin/$(TARGET)-$$f ]; \ |
|
532 |
then \ |
|
533 |
cd $(PREFIX)/bin && \ |
|
48839 | 534 |
ln -fs $$f $(TARGET)-$$f ; \ |
20363 | 535 |
fi \ |
536 |
done |
|
537 |
@touch $@ |
|
538 |
@echo 'done' |
|
18021 | 539 |
|
20363 | 540 |
########################################################################################## |
541 |
# Ugly at best. Seems that when we compile host->host compiler, that are NOT |
|
542 |
# the BUILD compiler, the result will not try searching for libs in package root. |
|
543 |
# "Solve" this by create links from the target libdirs to where they are. |
|
544 |
link_libs: |
|
545 |
@echo -n 'Creating library symlinks...' |
|
546 |
@$(foreach l,$(LIBDIRS), \ |
|
547 |
for f in `cd $(PREFIX)/$(l) && ls`; do \ |
|
548 |
if [ ! -e $(TARGETDIR)/$(l)/$$f ]; then \ |
|
549 |
mkdir -p $(TARGETDIR)/$(l) && \ |
|
550 |
cd $(TARGETDIR)/$(l)/ && \ |
|
48839 | 551 |
ln -fs $(if $(findstring /,$(l)),../,)../../$(l)/$$f $$f; \ |
20363 | 552 |
fi \ |
553 |
done;) |
|
554 |
@echo 'done' |
|
18021 | 555 |
else |
20363 | 556 |
$(gccpatch) : |
557 |
@echo 'done' |
|
18021 | 558 |
endif |
559 |
||
560 |
########################################################################################## |
|
20363 | 561 |
# Build in two steps. |
18021 | 562 |
# make <default> |
20363 | 563 |
# make install. |
18021 | 564 |
# Use path to our build hosts cross tools |
20363 | 565 |
# Always need to build cross tools for build host self. |
566 |
$(TARGETDIR)/%.done : $(BUILDDIR)/%/Makefile |
|
567 |
$(info Building $(basename $@). Log in $(<D)/log.build) |
|
568 |
$(PATHPRE) $(ENVS) $(MAKE) $(BUILDPAR) -f $< -C $(<D) $(MAKECMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.build 2>&1 |
|
569 |
@echo -n 'installing...' |
|
570 |
$(PATHPRE) $(MAKE) $(INSTALLPAR) -f $< -C $(<D) $(INSTALLCMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.install 2>&1 |
|
48839 | 571 |
@mkdir -p $(@D) |
20363 | 572 |
@touch $@ |
573 |
@echo 'done' |
|
18021 | 574 |
|
575 |
########################################################################################## |
|
576 |
||
52665
61dcd7cd48c3
8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
simonis
parents:
52357
diff
changeset
|
577 |
$(PREFIX)/devkit.info: |
23428
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
578 |
@echo 'Creating devkit.info in the root of the kit' |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
579 |
rm -f $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
580 |
touch $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
581 |
echo '# This file describes to configure how to interpret the contents of this' >> $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
582 |
echo '# devkit' >> $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
583 |
echo '' >> $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
584 |
echo 'DEVKIT_NAME="$(gcc_ver) - $(LINUX_VERSION)"' >> $@ |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
585 |
echo 'DEVKIT_TOOLCHAIN_PATH="$$DEVKIT_ROOT/bin"' >> $@ |
49204
564802b01ded
8199451: Create linux-aarch64 cross-compilation devkit, and fix cross-compilation
ihse
parents:
48839
diff
changeset
|
586 |
echo 'DEVKIT_SYSROOT="$$DEVKIT_ROOT/$(TARGET)/sysroot"' >> $@ |
48839 | 587 |
echo 'DEVKIT_EXTRA_PATH="$$DEVKIT_ROOT/bin"' >> $@ |
588 |
||
589 |
########################################################################################## |
|
590 |
# Copy these makefiles into the root of the kit |
|
591 |
$(PREFIX)/Makefile: ./Makefile |
|
592 |
rm -rf $@ |
|
593 |
cp $< $@ |
|
594 |
||
595 |
$(PREFIX)/Tools.gmk: ./Tools.gmk |
|
596 |
rm -rf $@ |
|
597 |
cp $< $@ |
|
598 |
||
599 |
THESE_MAKEFILES := $(PREFIX)/Makefile $(PREFIX)/Tools.gmk |
|
23428
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
600 |
|
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
601 |
########################################################################################## |
3c8a05bf4656
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
21759
diff
changeset
|
602 |
|
34100
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
603 |
ifeq ($(TARGET), $(HOST)) |
48839 | 604 |
# To build with dtrace support, the build needs access to the dtrace executable from the |
605 |
# sysroot. Generally we don't want to add binaries in the sysroot to the path, but |
|
606 |
# luckily this seems to execute well enough on a different host Linux distro, so symlink |
|
607 |
# it into the main bin dir. |
|
608 |
$(PREFIX)/bin/dtrace: |
|
609 |
@echo 'Creating dtrace soft link' |
|
610 |
ln -s ../$(HOST)/sysroot/usr/bin/dtrace $@ |
|
611 |
||
34100
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
612 |
$(PREFIX)/bin/%: |
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
613 |
@echo 'Creating missing $* soft link' |
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
614 |
ln -s $(TARGET)-$* $@ |
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
615 |
|
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
616 |
missing-links := $(addprefix $(PREFIX)/bin/, \ |
49357
aaedb8343784
8198243: Add build time check for global operator new/delete in object files
erikj
parents:
48839
diff
changeset
|
617 |
addr2line ar as c++ c++filt dwp elfedit g++ gcc gcc-$(GCC_VER) gprof ld ld.bfd \ |
aaedb8343784
8198243: Add build time check for global operator new/delete in object files
erikj
parents:
48839
diff
changeset
|
618 |
ld.gold nm objcopy objdump ranlib readelf size strings strip) |
34100
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
619 |
endif |
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
620 |
|
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
621 |
########################################################################################## |
e3293031f83d
8143236: Update devkit creation makefiles for linux
erikj
parents:
33029
diff
changeset
|
622 |
|
20363 | 623 |
bfdlib : $(bfdlib) |
624 |
binutils : $(binutils) |
|
625 |
rpms : $(rpms) |
|
626 |
libs : $(libs) |
|
627 |
sysroot : rpms libs |
|
628 |
gcc : sysroot $(gcc) $(gccpatch) |
|
48839 | 629 |
gdb : $(gdb) |
630 |
all : binutils gcc bfdlib $(PREFIX)/devkit.info $(missing-links) $(SYSROOT_LINKS) \ |
|
631 |
$(THESE_MAKEFILES) gdb |
|
18021 | 632 |
|
20363 | 633 |
# this is only built for host. so separate. |
634 |
ccache : $(ccache) |
|
18021 | 635 |
|
20363 | 636 |
.PHONY : gcc all binutils bfdlib link_libs rpms libs sysroot |