From fffdc1627a323f0a130fd3f639b24866f1f4dfa5 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sat, 14 May 2005 23:40:19 +0000 Subject: Add TOPDIR prefix in front of config file when getting target architecture. --- Rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rules.mak b/Rules.mak index ed57b7be0..8d47f4eb9 100644 --- a/Rules.mak +++ b/Rules.mak @@ -93,7 +93,7 @@ check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) # Make certain these contain a final "/", but no "//"s. -TARGET_ARCH:=$(shell grep -s ^TARGET_ARCH .config | sed -e 's/^TARGET_ARCH=//' -e 's/"//g') +TARGET_ARCH:=$(shell grep -s ^TARGET_ARCH $(TOPDIR)/.config | sed -e 's/^TARGET_ARCH=//' -e 's/"//g') RUNTIME_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(RUNTIME_PREFIX)))))) DEVEL_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(DEVEL_PREFIX)))))) export RUNTIME_PREFIX DEVEL_PREFIX -- cgit v1.2.3