python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / gcc / gcc-initial / gcc-initial.mk
bloba51e29cfc7e66480e951722ffa1d8842bc0417ac
1 ################################################################################
3 # gcc-initial
5 ################################################################################
7 GCC_INITIAL_VERSION = $(GCC_VERSION)
8 GCC_INITIAL_SITE = $(GCC_SITE)
9 GCC_INITIAL_SOURCE = $(GCC_SOURCE)
11 HOST_GCC_INITIAL_DEPENDENCIES = $(HOST_GCC_COMMON_DEPENDENCIES)
13 HOST_GCC_INITIAL_EXCLUDES = $(HOST_GCC_EXCLUDES)
14 HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_FAKE_TESTSUITE
16 ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),)
17 HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_XTENSA_OVERLAY_EXTRACT
18 endif
20 HOST_GCC_INITIAL_POST_PATCH_HOOKS += HOST_GCC_APPLY_PATCHES
22 # gcc doesn't support in-tree build, so we create a 'build'
23 # subdirectory in the gcc sources, and build from there.
24 HOST_GCC_INITIAL_SUBDIR = build
26 HOST_GCC_INITIAL_PRE_CONFIGURE_HOOKS += HOST_GCC_CONFIGURE_SYMLINK
28 HOST_GCC_INITIAL_CONF_OPTS = \
29 $(HOST_GCC_COMMON_CONF_OPTS) \
30 --enable-languages=c \
31 --disable-shared \
32 --without-headers \
33 --disable-threads \
34 --with-newlib \
35 --disable-largefile \
36 --disable-nls \
37 $(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
39 HOST_GCC_INITIAL_CONF_ENV = \
40 $(HOST_GCC_COMMON_CONF_ENV)
42 HOST_GCC_INITIAL_MAKE_OPTS = $(HOST_GCC_COMMON_MAKE_OPTS) all-gcc
43 HOST_GCC_INITIAL_INSTALL_OPTS = install-gcc
45 ifeq ($(BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE),y)
46 HOST_GCC_INITIAL_MAKE_OPTS += all-target-libgcc
47 HOST_GCC_INITIAL_INSTALL_OPTS += install-target-libgcc
48 endif
50 HOST_GCC_INITIAL_TOOLCHAIN_WRAPPER_ARGS += $(HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS)
51 HOST_GCC_INITIAL_POST_BUILD_HOOKS += TOOLCHAIN_WRAPPER_BUILD
52 HOST_GCC_INITIAL_POST_INSTALL_HOOKS += TOOLCHAIN_WRAPPER_INSTALL
53 HOST_GCC_INITIAL_POST_INSTALL_HOOKS += HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
55 $(eval $(host-autotools-package))