From patchwork Thu Jul 30 17:55:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 51722 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 932F822DB5 for ; Thu, 30 Jul 2015 17:55:54 +0000 (UTC) Received: by wilm20 with SMTP id m20sf481598wil.2 for ; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=WibVxlYaQHZVn4Fj+KoU2rPhraCmVKGO8EEdpF/I7vA=; b=GaRtcHI/dH1gTKrEvGsQzETPVwlTA/+bmuMPbzD9t65zHDfgiKkXhqmiC4W7f24kkA T4eO3aQFJ6PhVDoc9r3WLWZAMVkxjCnWQyoEVvAbZIBAkWQjCB0qZ7qsaruqwlzzjU1g Gjs23tLK0QH57AdMpEKF71ic1W7mio1ptPrjaIyn+d3xQ6067axRUhxgKA1U9XNg8f8k He6BsSECqawN+6cIirUAIuboUYSDBghd1pE8+WAZ59h05GoKi0ctkz7sFGs+ceIuY4gZ xRLFMq9E7RKWBTZYdyMN4otwr44274ImpkeqD4C3p0mzaYit5zEWzl15+IovM2GUfvRP tsEQ== X-Gm-Message-State: ALoCoQncX/Crcnf9U8q88qLnU7x5x2Q+TuEz/LYRuWx7mYKE83UNo2M3ePDHwJHBKX1vyQ3ae5Ya X-Received: by 10.180.11.226 with SMTP id t2mr1455965wib.0.1438278953966; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.237 with SMTP id r13ls220467lal.63.gmail; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) X-Received: by 10.152.178.229 with SMTP id db5mr46542506lac.55.1438278953682; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id ao2si1396163lac.69.2015.07.30.10.55.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 10:55:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagw2 with SMTP id w2so29794492lag.3 for ; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) X-Received: by 10.152.120.135 with SMTP id lc7mr44601501lab.41.1438278953561; Thu, 30 Jul 2015 10:55:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp765003lba; Thu, 30 Jul 2015 10:55:52 -0700 (PDT) X-Received: by 10.194.238.39 with SMTP id vh7mr17837258wjc.109.1438278948339; Thu, 30 Jul 2015 10:55:48 -0700 (PDT) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com. [209.85.212.176]) by mx.google.com with ESMTPS id b14si3216905wjz.87.2015.07.30.10.55.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 10:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.176 as permitted sender) client-ip=209.85.212.176; Received: by wicgb10 with SMTP id gb10so2098530wic.1 for ; Thu, 30 Jul 2015 10:55:48 -0700 (PDT) X-Received: by 10.194.23.167 with SMTP id n7mr86888466wjf.112.1438278948090; Thu, 30 Jul 2015 10:55:48 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by smtp.gmail.com with ESMTPSA id lm5sm257774wic.22.2015.07.30.10.55.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015 10:55:47 -0700 (PDT) From: Peter Griffin To: u-boot@lists.denx.de, albert.u.boot@aribaud.net, trini@konsulko.com, panto@antoniou-consulting.com, marex@denx.de, sjg@chromium.org, robherring2@gmail.com Cc: Peter Griffin Subject: [PATCH v4 9/9] hikey: Add hikey-u-boot.mak Date: Thu, 30 Jul 2015 18:55:25 +0100 Message-Id: <1438278925-3038-10-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438278925-3038-1-git-send-email-peter.griffin@linaro.org> References: <1438278925-3038-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Peter Griffin --- hikey-u-boot.mak | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hikey-u-boot.mak diff --git a/hikey-u-boot.mak b/hikey-u-boot.mak new file mode 100644 index 0000000..f4cd547 --- /dev/null +++ b/hikey-u-boot.mak @@ -0,0 +1,33 @@ +CROSS_COMPILE := aarch64-linux-gnu- +build_dir := $(CURDIR)/build-hikey +output_dir := $(HOME)/aarch64 + +.PHONY: have-crosscompiler +have-crosscompiler: + @echo -n "Check that $(CROSS_COMPILE)gcc is available..." + @which $(CROSS_COMPILE)gcc > /dev/null ; \ + if [ ! $$? -eq 0 ] ; then \ + echo "ERROR: cross-compiler $(CROSS_COMPILE)gcc not in PATH=$$PATH!" ; \ + echo "ABORTING." ; \ + exit 1 ; \ + else \ + echo "OK" ;\ + fi + +build: have-crosscompiler FORCE + rm -rf $(build_dir) + @mkdir -p $(build_dir) + $(MAKE) O=$(build_dir) CROSS_COMPILE=$(CROSS_COMPILE) distclean + $(MAKE) O=$(build_dir) CROSS_COMPILE=$(CROSS_COMPILE) hikey_config + $(MAKE) O=$(build_dir) CROSS_COMPILE=$(CROSS_COMPILE) + cp $(build_dir)/u-boot.bin $(output_dir)/u-boot-hikey.bin + cp $(build_dir)/u-boot.bin /tftpboot/u-boot-hikey.bin + +menuconfig: + $(MAKE) O=$(build_dir) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig + +clean: + $(MAKE) O=$(build_dir) clean + rm -rf $(build_dir) + +FORCE: