summaryrefslogtreecommitdiffstats
path: root/rules/pre/bootloader.make
blob: 17f76723e0576938d024a74c39e8be223c0d45aa (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
# -*-makefile-*-
#
# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# handle special compiler
#
ifdef PTXCONF_BOOTLOADER
    ifneq ($(PTXCONF_COMPILER_PREFIX),$(PTXCONF_COMPILER_PREFIX_BOOTLOADER))
        ifeq ($(wildcard selected_toolchain_bootloader/$(PTXCONF_COMPILER_PREFIX_BOOTLOADER)gcc),)
            $(warning *** no 'selected_toolchain_bootloader' link found. Please create a link)
            $(warning *** 'selected_toolchain_bootloader' to the bin directory of your)
            $(warning *** '$(PTXCONF_COMPILER_PREFIX_BOOTLOADER)' toolchain)
            $(error )
        endif
        BOOTLOADER_TOOLCHAIN_LINK := $(PTXDIST_WORKSPACE)/selected_toolchain_bootloader/
    endif
endif

BOOTLOADER_CROSS_COMPILE := $(BOOTLOADER_TOOLCHAIN_LINK)$(PTXCONF_COMPILER_PREFIX_BOOTLOADER)

# vim: syntax=make