From 5f70a007c8e5a6c1ae6a01739a53c87c0fafbe44 Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Mon, 7 Apr 2014 11:56:48 +0200 Subject: [PATCH] toolchain: add a hidden config option to enable the toolchain package The usual way to enable a package using the package infrastructure is to use a config option so instead to add the toolchain package to the TARGETS variable in the Makefile add a config option like all the other toolchain packages. [Thomas: remove comment that no longer made sense in the main Makefile, and add a comment above the new hidden Config.in option to explain what it is useful for.] Signed-off-by: Fabio Porcedda Cc: Arnout Vandecappelle Cc: Yann E. MORIN Signed-off-by: Thomas Petazzoni --- Makefile | 9 +-------- toolchain/Config.in | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 137921ca25..0f8ca72b88 100644 --- a/Makefile +++ b/Makefile @@ -294,14 +294,7 @@ unexport TERMINFO GNU_HOST_NAME:=$(shell support/gnuconfig/config.guess) -################################################################################ -# -# The list of stuff to build for the target toolchain -# along with the packages to build for the target. -# -################################################################################ - -TARGETS:= toolchain +TARGETS := # silent mode requested? QUIET:=$(if $(findstring s,$(MAKEFLAGS)),-q) diff --git a/toolchain/Config.in b/toolchain/Config.in index 44f3ac66d8..a1065ac228 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -1,5 +1,11 @@ menu "Toolchain" +# Invisible option that makes sure the toolchain package always gets +# built +config BR2_TOOLCHAIN + bool + default y + # Should be selected for glibc or eglibc config BR2_TOOLCHAIN_USES_GLIBC bool -- 2.30.2