2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # Main makefile for the toolchain
11 # subdirectories to descend into
12 $(curdir
)/builddirs
:= kernel-headers
$(if
$(CONFIG_GDB
),gdb
) $(if
$(CONFIG_NATIVE_TOOLCHAIN
),,binutils gcc uClibc
)
13 $(curdir
)/builddirs-compile
:=.
$(filter-out kernel-headers
,$($(curdir
)/builddirs
))
14 $(curdir
)/builddirs-install
:=$($(curdir
)/builddirs-compile
)
16 # builddir dependencies
17 $(curdir
)/uClibc
/prepare
:=$(curdir
)/kernel-headers
/prepare
18 ifeq ($(CONFIG_NATIVE_TOOLCHAIN
),)
19 $(curdir
)/binutils
/prepare
:=$(curdir
)/uClibc
/prepare
20 $(curdir
)/gcc
/prepare
:=$(curdir
)/binutils
/install
21 $(curdir
)/uClibc
/compile
:=$(curdir
)/gcc
/compile
23 $(curdir
)/gcc
/install:=$(curdir
)/uClibc
/install
25 # prerequisites for the individual targets
26 $(curdir
)/ := .config prereq
27 $(curdir
)//prepare
= $(STAGING_DIR
)/include-host
/.done
28 $(curdir
)//compile
= $(1)/prepare
29 $(curdir
)//install = $(1)/compile
31 $(eval
$(call stampfile
,$(curdir
),toolchain
,install))
32 $(eval
$(call subdir
,$(curdir
)))
This page took 0.039721 seconds and 5 git commands to generate.