Skip to contentSkip to conversation

Makefile: globally define variables used at different places

PATCH New Markus Heidelberg 2 participants 2 messages Jan 25, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Makefile: globally define variables used at different places

$(comma) and $(space) are used in packages and the toolchain.

---
 Makefile                        |    5 +++++
 package/directfb/directfb.mk    |    6 ------
 toolchain/gcc/gcc-uclibc-3.x.mk |    1 -
 3 files changed, 5 insertions(+), 7 deletions(-)
Makefile +5 -0
index 6b12c76..a55d9bb 100644
@@ -40,6 +40,11 @@ else
 BR2_LOCAL:=$(TOPDIR)/local
 endif
 
+# Variables for use in Make constructs
+comma:=,
+empty:=
+space:=$(empty) $(empty)
+
 # $(shell find . -name *_defconfig |sed 's/.*\///')
 # Pull in the user's configuration file
 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
package/directfb/directfb.mk +0 -6
index cbf15bc..1aa38c7 100644
@@ -52,9 +52,6 @@ endif
 ifeq ($(DIRECTFB_GFX),)
 DIRECTFB_GFX:=none
 else
-comma:=,
-empty:=
-space:=$(empty) $(empty)
 DIRECTFB_GFX:=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
 endif
 
@@ -75,9 +72,6 @@ endif
 ifeq ($(DIRECTFB_INPUT),)
 DIRECTFB_INPUT:=none
 else
-comma:=,
-empty:=
-space:=$(empty) $(empty)
 DIRECTFB_INPUT:=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
 endif
 
toolchain/gcc/gcc-uclibc-3.x.mk +0 -1
index fc59b6b..368ac8e 100644
@@ -233,7 +233,6 @@ gcc_initial-dirclean:
 # affect gcc-target. However, I haven't tested gcc-target yet so no
 # guarantees. mjn3
 
-comma:=,
 GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
 $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ)
 	mkdir -p $(GCC_BUILD_DIR2)
Signature · 1 line
1.6.1.288.ga6efd
#1 lore raw

PATCH 1/2 Makefile: globally define variables used at different places

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markus" == Markus Heidelberg <[email protected]> writes:

Markus> $(comma) and $(space) are used in packages and the toolchain. Markus> Signed-off-by: Markus Heidelberg <[email protected]>

Thanks, committed.

Signature · 1 line
Bye, Peter Korsgaard