From 26b44b2b0272e7f51415942c72328e9a3dbe400a Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Fri, 26 Mar 2010 20:46:37 +0100 Subject: toolchain: prepare for more than two alternatives Lay down the path to add more than two toolchain kinds: - check the type of toolchain as: ifeq (toolchain_buildroot,y) blabla buildroot-specific else ifeq (toolchain_external,y) blabla external-specific endif - prefer using positive checks, a-la: ifeq (foo,y) instead of: ifneq (bar,y) (where foo and bar are mutually exclusive) - have the toolchain_buildroot case always appear first - gettext is handled differently, because we want to add an option only if not using the buildroot toolchain, hence we use ifneq. Signed-off-by: Yann E. MORIN Acked-By: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/gettext/gettext.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/gettext') diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index dbc1f2cfa..81ab9debc 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -29,7 +29,7 @@ $(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE) $(CONFIG_UPDATE) $(GETTEXT_DIR)/build-aux touch $@ -ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) +ifneq ($(BR2_TOOLCHAIN_BUILDROOT),y) IGNORE_EXTERNAL_GETTEXT:=--with-included-gettext endif -- cgit v1.2.3