17 kx
17 kx
17 kx COMPONENT_TARGETS = $(TOOLCHAIN_ARM32_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_M1000_NEWLIB)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_NEWLIB)
17 kx
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A1X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A2X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_H3_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_H5_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_IMX6_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_IMX6ULL_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_JZ47XX_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_P5600_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_M1000_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_OMAP543X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_AM335X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RK328X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A311X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RK358X_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
17 kx
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER9_GLIBC)
17 kx
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER8LE_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER9LE_GLIBC)
17 kx
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_GLIBC)
17 kx
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_I586_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_I686_GLIBC)
17 kx COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
17 kx
17 kx
17 kx include ../../../build-system/config.mk
17 kx
17 kx
17 kx SOURCE_REQUIRES = sources/GNU/gdb
17 kx
17 kx REQUIRES = core/gcc/12.2.0^full
17 kx
17 kx # ======= __END_OF_REQUIRES__ =======
17 kx
20 kx tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/gdb/gdb-13.2.tar.xz
17 kx SRC_ARCHIVE = $(tar_xz_archive)
20 kx SRC_DIR = $(TARGET_BUILD_DIR)/gdb-13.2
20 kx src_dir_name = gdb-13.2
17 kx src_done = $(TARGET_BUILD_DIR)/.source-done
17 kx
17 kx build_dir = $(TARGET_BUILD_DIR)/build
17 kx
17 kx sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
17 kx
17 kx build_target = $(TARGET_BUILD_DIR)/.built
17 kx install_target = $(TARGET_BUILD_DIR)/.installed
17 kx
17 kx environment = PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
17 kx
17 kx
17 kx BUILD_TARGETS = $(build_target)
17 kx BUILD_TARGETS += $(install_target)
17 kx
17 kx include ../../../build-system/core.mk
17 kx
17 kx
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_ARM32_NEWLIB))
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-abi=aapcs
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv6-m
17 kx extra_configure_switches += --with-tune=cortex-m0
17 kx extra_configure_switches += --with-float=soft
17 kx extra_configure_switches += --with-abi=aapcs
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB))
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv7-m
17 kx extra_configure_switches += --with-tune=cortex-m3
17 kx extra_configure_switches += --with-fpu=fpv4-sp-d16
17 kx extra_configure_switches += --with-float=hard
17 kx extra_configure_switches += --with-abi=aapcs
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
17 kx extra_configure_switches = --enable-multiarch
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
17 kx extra_configure_switches = --enable-multiarch
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
17 kx extra_configure_switches = --enable-multiarch
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_1000_NEWLIB))
17 kx extra_configure_switches = --enable-multiarch
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_NEWLIB))
17 kx extra_configure_switches = --enable-multilib
17 kx extra_configure_switches += --with-abi=lp64d
17 kx extra_configure_switches += --with-arch=rv64imafdc
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7-a
17 kx extra_configure_switches += --with-tune=cortex-a8
17 kx extra_configure_switches += --with-fpu=neon
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7ve
17 kx extra_configure_switches += --with-tune=cortex-a7
17 kx extra_configure_switches += --with-fpu=neon-vfpv4
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7ve
17 kx extra_configure_switches += --with-tune=cortex-a7
17 kx extra_configure_switches += --with-fpu=neon-vfpv4
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a53
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7-a
17 kx extra_configure_switches += --with-tune=cortex-a9
17 kx extra_configure_switches += --with-fpu=vfpv3
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7-a
17 kx extra_configure_switches += --with-tune=cortex-a7
17 kx extra_configure_switches += --with-fpu=neon-vfpv4
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
17 kx extra_configure_switches = --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch-32=mips32r2
17 kx extra_configure_switches += --with-arch-64=mips64r2
17 kx extra_configure_switches += --with-float=hard
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx extra_configure_switches += --enable-werror=no
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
17 kx extra_configure_switches = --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=mips32r5
17 kx extra_configure_switches += --with-tune=p5600
17 kx extra_configure_switches += --with-float=hard
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx extra_configure_switches += --enable-werror=no
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a57
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7ve
17 kx extra_configure_switches += --with-tune=cortex-a15
17 kx extra_configure_switches += --with-fpu=neon-vfpv4
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7-a
17 kx extra_configure_switches += --with-tune=cortex-a8
17 kx extra_configure_switches += --with-fpu=neon
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7ve
17 kx extra_configure_switches += --with-tune=cortex-a17
17 kx extra_configure_switches += --with-fpu=neon-vfpv4
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
17 kx extra_configure_switches = --enable-interwork
17 kx extra_configure_switches += --enable-multilib
17 kx extra_configure_switches += --disable-libssp
17 kx extra_configure_switches += --with-arch=armv7-a
17 kx extra_configure_switches += --with-tune=cortex-a5
17 kx extra_configure_switches += --with-fpu=neon
17 kx extra_configure_switches += --with-abi=aapcs-linux
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a53
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A9XX_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a53
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a53
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-cpu=cortex-a53
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
18 kx extra_configure_switches += --with-arch=armv8.2-a
17 kx extra_configure_switches += --with-cpu=cortex-a75
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-abi=lp64
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-arch=armv8-a
17 kx extra_configure_switches += --with-fpu=neon-fp-armv8
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC)),)
17 kx extra_configure_switches = --with-multilib-list=m64,m32
17 kx extra_configure_switches += --with-cpu=power9
17 kx extra_configure_switches += --with-tune=power9
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)),)
17 kx extra_configure_switches = --with-multilib-list=m64,m32
17 kx extra_configure_switches += --with-cpu=power8
17 kx extra_configure_switches += --with-tune=power8
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-cpu=power8
17 kx extra_configure_switches += --with-tune=power8
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC)),)
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-cpu=power9
17 kx extra_configure_switches += --with-tune=power9
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
17 kx extra_configure_switches = --disable-multilib
17 kx extra_configure_switches += --with-abi=lp64d
17 kx extra_configure_switches += --with-arch=rv64imafdc
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
17 kx extra_configure_switches = --with-arch=i586
17 kx extra_configure_switches += --with-tune=i586
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
17 kx extra_configure_switches = --with-arch=i686
17 kx extra_configure_switches += --with-tune=i686
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
17 kx extra_configure_switches = --with-multilib-list=m64,m32
17 kx extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
17 kx endif
17 kx
17 kx
17 kx
17 kx $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
17 kx $(UNPACK_SRC_ARCHIVE)
17 kx @touch $@
17 kx
17 kx $(build_target): $(src_done)
17 kx @mkdir -p $(build_dir)
17 kx @cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
17 kx --prefix=$(TOOLCHAIN_PATH) \
17 kx --target=$(TARGET) \
17 kx --datadir=$(TOOLCHAIN_PATH)/share \
17 kx --infodir=$(TOOLCHAIN_PATH)/share/info \
17 kx --mandir=$(TOOLCHAIN_PATH)/share/man \
17 kx $(extra_configure_switches)
17 kx @$(MAKE) $(environment) -C $(build_dir) all
17 kx @touch $@
17 kx
17 kx $(install_target): $(build_target)
17 kx @$(MAKE) $(environment) -j1 -C $(build_dir) install
17 kx @echo " $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
17 kx @touch $@