From patchwork Mon Dec 15 00:53:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 420937 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1B46D1400E2 for ; Mon, 15 Dec 2014 11:53:28 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 08EA41A0210 for ; Mon, 15 Dec 2014 11:53:28 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id B2F2B1A0165 for ; Mon, 15 Dec 2014 11:53:25 +1100 (AEDT) Received: by ozlabs.org (Postfix, from userid 1034) id 9D85614010B; Mon, 15 Dec 2014 11:53:25 +1100 (AEDT) From: Michael Ellerman To: skiboot@lists.ozlabs.org Date: Mon, 15 Dec 2014 11:53:20 +1100 Message-Id: <1418604800-12587-1-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 2.1.0 Subject: [Skiboot] [PATCH] Makefile: Support CROSS_COMPILE as well as CROSS X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" A lot of projects use CROSS_COMPILE for specifying the cross compile prefix, so support that as well as CROSS. For example this allows a user to set CROSS_COMPILE once in their environment and build both Linux & Skiboot with the same setting. Signed-off-by: Michael Ellerman --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 96c387f0bd4f..ec82317ec005 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ # Example: CROSS= powerpc64-unknown-linux-gnu- # ARCH = $(shell uname -m) +CROSS ?= $(CROSS_COMPILE) ifeq ("$(ARCH)", "ppc64") CROSS ?= else